-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experimental: Use SLSA generic workflow for generating provenances #3166
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
base64-subjects: '${{ needs.build_provenance.outputs.hashes }}' | ||
# Set a custom name for the provenance attestation. | ||
attestation-name: 'oak_functions_loader_base.intoto.jsonl' | ||
# Upload provenance to a new release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiousity: Where does this upload to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is GitHub's internal storage or something. These files get attached to the action. Similar to the SARIF file in this action: https://github.com/project-oak/oak/actions/runs/2920567892.
@@ -18,6 +21,7 @@ jobs: | |||
OAK_FUNCTIONS_BASE_PATH: './target/x86_64-unknown-linux-musl/release/oak_functions_loader_base' | |||
OAK_FUNCTIONS_UNSAFE_PATH: './target/x86_64-unknown-linux-musl/release/oak_functions_loader_unsafe' | |||
OAK_BAREMETAL_CROSVM_PATH: './experimental/oak_baremetal_app_crosvm/target/x86_64-unknown-none/release/oak_baremetal_app_crosvm' | |||
OAK_FUNCTIONS_RELEASE_PATH: './target/x86_64-unknown-linux-musl/release' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use the we could use the OAK_FUNCTIONS_RELEASE_PATH
in OAK_FUNCTIONS_BASE_PATH
and OAK_FUNCTIONS_UNSAFE_PATH
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly. I thought I'd fix this after I am done with the experiment :)
Reproducibility Index:
Reproducibility Index diff: |
This PR adds a new job to the provenance workflow to generate a signed provenance using the generic SLSA generator (based on the instructions for using generator_generic_slsa3). This is in an experimental state, since it is not possible to trigger the generator on pull-request events. I have added
workflow_dispatch
as a trigger for the provenance workflow. Once this is merged it is possible to experiment with provenance generation.If that is successful, I'll cleanup and complete the added step.
For more context also see: slsa-framework/slsa-github-generator#731
Ref #2626.