-
Notifications
You must be signed in to change notification settings - Fork 510
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
Scorecard doesn't penalize unpinned reusable workflows in "Pinned-Dependencies" check #2174
Comments
It also does not find issues in local actions (e.g. |
Should probably be a separate issue - but local actions not being penalized is ok since running your own action can be considered trustworthy? |
@azeemshaikh38 Local composite actions or local Docker actions could refer to third party Docker containers and third party GitHub actions without pinning. This is why the code scanner should discover all of the GitHub action code (incl. reusable workflows and composite actions / docker actions), not just the workflows themselves. But I think you're right, this is a separate issue and I will open it separately |
So currently we assume every reference to an action will be as a step scorecard/checks/raw/pinned_dependencies.go Lines 524 to 531 in 0b9dfb6
We miss the syntax used in your example file which is covered by: Luckily our workflow parser seems to support this via the WorkflowCall field, so should be a straighforward fix. |
Describe the bug
A clear and concise description of what the bug is.
Reproduction steps
slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml
)@v1.2.0
)Pinned-Dependencies
($ scorecard-linux-amd64 --repo https://github.com/sethmlarson/python-slsa-release-test --checks Pinned-Dependencies
Expected behavior
To not receive a 10/10, instead would be penalized for not pinning the workflow to SHA.
Additional context
Related and unfortunately in direct contention with: slsa-framework/slsa-github-generator#722
The text was updated successfully, but these errors were encountered: