-
Notifications
You must be signed in to change notification settings - Fork 128
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] Generic workflow fails on repositories that don't use Go #376
Comments
The code you linked is to build the builder, not the project. Maybe you're using a trigger we have not tested yet. Can you link to a workflow you use to call the generic workflow? |
Hi again @behnazh-w! Thanks for the bug report and for the links. Those were super helpful for figuring out what happened. This is caused by the fact that we don't support the What happened in this case is that our detect-workflow action returned empty strings for the repository and ref which then got fed into the @behnazh-w Note also that you want to include the asset name in the digest you send to the workflow so you don't really want to use awk here. I believe the workflow will error out if the name isn't present. |
Thanks. I had missed it in the docs that |
Great to hear. I'll go ahead and close this but feel free to reopen or create a new issue if you find something else! |
Describe the bug
If I understand correctly the generic workflow is meant to generate provenance for any language as long as the encoded hash digest of the built artifact is provided as input. However, when I try it on a repository that doesn't use Go (e.g., uses Python) it fails because it tries to download the Go module dependencies.
slsa-github-generator/.github/workflows/generator_generic_slsa3.yml
Lines 71 to 88 in 668a339
Why does the workflow need to download Go modules of the target repository? Please let me know if I'm missing something.
To Reproduce
Run the generic workflow on a repo that doen't use Go.
Screenshots
The text was updated successfully, but these errors were encountered: