-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46cf70d
commit d619dcb
Showing
16 changed files
with
36 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,8 +64,7 @@ jobs: | |
set -o pipefail | ||
source ${{ matrix.buildconfig }} | ||
echo "package-name=${PACKAGE_NAME}" >> "${GITHUB_OUTPUT}" | ||
echo "binary-path=${BINARY_PATH}" >> "${GITHUB_OUTPUT}" | ||
echo "additional-subjects=${ADDITIONAL_SUBJECTS}" >> "${GITHUB_OUTPUT}" | ||
echo "subject-paths=${SUBJECT_PATHS}" >> "${GITHUB_OUTPUT}" | ||
- name: Show values | ||
run: | | ||
|
@@ -74,8 +73,7 @@ jobs: | |
set -o pipefail | ||
gsutil --version | ||
echo "package_name: ${{ steps.parse.outputs.package-name }}" | ||
echo "binary_path: ${{ steps.parse.outputs.binary-path }}" | ||
echo "additional_subjects: ${{ steps.parse.outputs.additional-subjects }}" | ||
echo "subject_paths: ${{ steps.parse.outputs.subject-paths }}" | ||
echo "GITHUB_SHA: ${GITHUB_SHA}" | ||
- name: Build | ||
|
@@ -93,39 +91,20 @@ jobs: | |
- name: Show build artifact | ||
run: | | ||
echo "${{ steps.parse.outputs.binary-path }}" | ||
ls -la "${{ steps.parse.outputs.binary-path }}" | ||
subjects="${{ steps.parse.outputs.additional-subjects }}" | ||
if [ -n "${subjects}" ]; then | ||
echo "${subjects}" | ||
ls -la ${subjects} | ||
fi | ||
- name: Attest main binary | ||
id: attest1 | ||
uses: actions/[email protected] | ||
with: | ||
subject-path: ${{ steps.parse.outputs.binary-path }} | ||
echo "${{ steps.parse.outputs.subject-paths }}" | ||
ls -la "${{ steps.parse.outputs.subject-paths }}" | ||
- name: Attest additional subjects | ||
id: attest2 | ||
if: ${{ steps.parse.outputs.additional-subjects != '' }} | ||
- name: Attest | ||
id: attest | ||
uses: actions/[email protected] | ||
with: | ||
subject-path: ${{ steps.parse.outputs.additional-subjects }} | ||
subject-path: ${{ steps.parse.outputs.subject-paths }} | ||
|
||
- name: Show bundle | ||
run: | | ||
echo "${{ steps.attest1.outputs.bundle-path }}" | ||
ls -la "${{ steps.attest1.outputs.bundle-path }}" | ||
cat "${{ steps.attest1.outputs.bundle-path }}" | ||
- name: Show additional bundle | ||
if: ${{ steps.parse.outputs.additional-subjects != '' }} | ||
run: | | ||
echo "${{ steps.attest2.outputs.bundle-path }}" | ||
ls -la "${{ steps.attest2.outputs.bundle-path }}" | ||
cat "${{ steps.attest2.outputs.bundle-path }}" | ||
echo "${{ steps.attest.outputs.bundle-path }}" | ||
ls -la "${{ steps.attest.outputs.bundle-path }}" | ||
cat "${{ steps.attest.outputs.bundle-path }}" | ||
# Upload binary and provenance to GCS and index via http://static.space | ||
# so that, regardless of the GCS bucket and path, it can easily be | ||
|
@@ -145,7 +124,7 @@ jobs: | |
bucket=oak-bins | ||
package_name=${{ steps.parse.outputs.package-name }} | ||
binary_path=${{ steps.parse.outputs.binary-path }} | ||
provenance_path=${{ steps.attest1.outputs.bundle-path }} | ||
provenance_path=${{ steps.attest.outputs.bundle-path }} | ||
gcs_binary_path="binary/${GITHUB_SHA}/${package_name}/binary" | ||
gcs_provenance_path="provenance/${GITHUB_SHA}/${package_name}/attestation.jsonl" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters