Audit rule: Pinned commit hash not pointing to tag #689
Closed
Marcono1234
started this conversation in
Ideas
Replies: 2 comments 7 replies
-
|
Hey @Marcono1234, thanks for filing this! This is an interesting idea, but it's got a few challenges:
TL;DR: I think this would be a good "pedantic" or "auditor"-only audit, but it'd be hard to expose by default since there will be a decent amount of real-world innocent noise that'll trip it up 🙂 |
Beta Was this translation helpful? Give feedback.
7 replies
-
|
Done with #713. Thanks a ton @Marcono1234! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
(I am creating this as Discussion because I am not sure if this is worth an audit rule; but feel free to convert this to an Issue if you want.)
Related:
impostor-commitandknown-vulnerable-actionsaudit rulesProblem
An action pinned by commit hash could point to a commit which is not a tag. That could be a problem because:
In both cases there will likely not be a security advisory because that broken / vulnerable commit was never part of a release.
So there are two cases where this could become a problem:
Suggested audit rule
The audit rule should check if an action is pinned by commit hash, and if the hash does not point to a Git tag, emit a finding.
Beta Was this translation helpful? Give feedback.
All reactions