-
Notifications
You must be signed in to change notification settings - Fork 138
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
[bug] Problem using SLSA3+ provenance generator for arbitrary projects #731
Comments
It is true that this happens because of the Can we support a dry-run option that is only valid for pull_request triggers? It depends what you would like to test here: If you want to test provenance generation, but not signature validation, we can do something similar to how the CI tests here work in which they do not actually create sigs. |
A dry-run option would be great. For the pull-request, I only care about provenance generation. |
That would be an easy fix, we can modify
@laurentsimon any oppposition to allowing all |
|
Must be |
Got it. Is this something we should give an option for so that's it's more explicit? I'm worried users won't realize that signature fails. /cc @ianlewis |
Yes, exactly: only if a dry-run input option is passed in. |
That'd work for me. So the dry-run would generate the signatures on triggers that support it, and not for triggers like |
I was thinking yes, that it would end up making the workflow compatible with I agree there's a risk that users may assume this would be valid provenance. No upload or no new release would be done in the case that a dry run is being performed. |
I think having a dry-run option is fine if we document it. We should also probably put in some kind of warning in the output that the provenance is not signed. I'm thinking:
|
Does the signature actually fail, or is it possible to skip it? My assumption was that the provenance is first generated, and then signed in a separate, possibly optional step. If the two must happen together, perhaps the dry-run does not even need to generate the provenance, but just give a signal the the workflow job is set up correctly. For instance, for my PR, what I want to know is that I have configured the permissions correctly, and am passing in the right inputs. For the permissions, by the way, I had to change Also, the current error message says |
Would using the
We fixed the documentation yesterday. |
Good idea. I'll try that, and will update this issue with the result.
Nice. Thanks. |
Thanks for the help. I was able to use the workflow and generate a provenance. My first attempt failed, because I had not set the subject correctly. That is the kind of issue that a dry-run option can detect :) Should I close this bug, or do you prefer to keep it open for more discussion about a dry-run option? Perhaps #358 is a better place for that discussion? |
Let's keep here. Dry-run option is more general than the pull_request. Thanks again for the issue |
Describe the bug
I am following the instructions for using generator_generic_slsa3 to generate provenances for Oak. The call to the workflow fails with the following error:
The workflow is running and failing on a
pull_request
trigger. I know thatpull_request
triggers are not supported, but since this is the first time I am using this workflow, I was hoping to experiment with it before merging this PR to main. If this is the expected behaviour on pull requests, it would help to have the behaviour described in the documentation.To Reproduce
Here is the PR that uses the
generator_generic_slsa3
workflow: project-oak/oak#3166This is the failed action: https://github.com/project-oak/oak/runs/7953028722?check_suite_focus=true. The step that fails is the "Generate builder" step.
Screenshots
The text was updated successfully, but these errors were encountered: