-
Notifications
You must be signed in to change notification settings - Fork 137
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] slsa-framework/slsa-github-generator/.github/actions/secure-builder-checkout fails when using a hash for the action version #3498
Comments
I think the problem comes down to: This ref is set: slsa-github-generator/.github/actions/detect-workflow-js/dist/index.js Lines 116 to 148 in e8c2dcf
But it's used as is. Not reversed back to a tag if there's one. We then use this as ref:
|
Because of slsa-framework/slsa-github-generator#3498 we can't use hash in the action so we use version instead Signed-off-by: Charly Molter <charly.molter@konghq.com>
Because of slsa-framework/slsa-github-generator#3498 we can't use hash in the action so we use version instead Signed-off-by: Charly Molter <charly.molter@konghq.com>
Thanks for reporting this. It also doesn't work for me to reference the workflow by hash I think as a fix maybe we can merge these two outer if-blocks with an elif
|
Thanks for finding that. Since we've learned that this is intentional. I'll close this issue for now since we're still keeping the other open |
Describe the bug
When using
slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.ym@c747fe7769adf3656dc7d588b161cb614d7abfee
the run fails with:c747... matches v1.10.0 and it is good security practice to use git hashes instead of tags to reference external github actions.
Job output for reference:
https://github.com/kumahq/kuma/actions/runs/8521526542/job/23348470597
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I should be able to do this to keep my actions reference to use hashes instead of tags.
I
The text was updated successfully, but these errors were encountered: