Skip to content
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

GnuComment: zizmor: ignore[dangerous-triggers] #6974

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

dcampbell24
Copy link
Contributor

This looks like a false positive.

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

@sylvestre
Copy link
Contributor

maybe it should be reported to upstream as a bug

@sylvestre sylvestre merged commit db332e5 into uutils:main Dec 19, 2024
61 of 62 checks passed
@woodruffw
Copy link

woodruffw commented Dec 19, 2024

FWIW, this is not a false positive: the impact is low in your case, but any third-party fork can declare a new foo.yml with name: GnuTests and trigger your workflow in an upstream context.

(In your case the attacker can run a workflow with upstream repo credentials, which they can then use to submit an arbitrary comment/contents as if it was your normal "testsuite comparison" response. This is pretty low-impact, but it's probably not something you intended 🙂)

@dcampbell24
Copy link
Contributor Author

Thanks for the information! If we were going to fix this what would we do?

@dcampbell24 dcampbell24 deleted the zizmor-fix-00 branch December 19, 2024 20:44
@woodruffw
Copy link

My recommendation would be to switch from workflow_run to workflow_call -- there are some recommendations and links here: https://woodruffw.github.io/zizmor/audits/#remediation_1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants