You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not reporting a bug (crash, false positive/negative, etc). These must be filed via the bug report template.
I have looked through the open issues for a duplicate request.
What's the problem this feature will solve?
When shell: bash isn't set, pipefail and friends aren't enabled. This makes it easy for failing ci to go undetected. Not a security issue per se, but it could be probably be exploited.
Describe the solution you'd like
Warn when there's a runs: clause without an explicit shell argument (ideally suggest using defaults.run.shell, which is much less verbose and leads people into the pit of sucess).
Additional context
I discovered zizmor yesterday, and it's great! It automates a lot of the audits I do and pointed out a lot of others I hadn't considered.
The text was updated successfully, but these errors were encountered:
This is an interesting one: I agree that this isn't a security issue per se, but is potentially worth flagging at the "auditor" level (since that level is intended for things that need manual review).
I also think that it would be a useful addition. See actions/runner-images#6668 for problem of swallowing exit codes in cmd and pwsh shells on Windows runners.
An even more pedantic suggestion would be to enforce -u as well, so shell: bash -noprofile --norc -euo pipefail {0}.
(-u fails on undefined variables, which is also a potential footgun).
Pre-submission checks
What's the problem this feature will solve?
When
shell: bash
isn't set, pipefail and friends aren't enabled. This makes it easy for failing ci to go undetected. Not a security issue per se, but it could be probably be exploited.Describe the solution you'd like
Warn when there's a
runs:
clause without an explicit shell argument (ideally suggest usingdefaults.run.shell
, which is much less verbose and leads people into the pit of sucess).Additional context
I discovered zizmor yesterday, and it's great! It automates a lot of the audits I do and pointed out a lot of others I hadn't considered.
The text was updated successfully, but these errors were encountered: