+
Skip to content

fix: handle booleans for insecure-commands correctly #840

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

Merged
merged 4 commits into from
May 21, 2025
Merged

Conversation

woodruffw
Copy link
Member

TL;DR: We previously (incorrectly) treated any nonempty string as a "true" value for insecure-commands, when in reality the GitHub Actions runner uses C#'s Boolean.TryParse for this.

We fix our handling by reproducing Boolean.TryParse's behavior.

Fixes #839.

Signed-off-by: William Woodruff <william@yossarian.net>
@woodruffw woodruffw self-assigned this May 21, 2025
@woodruffw woodruffw added the bugfix Fixes a known bug label May 21, 2025
@woodruffw
Copy link
Member Author

woodruffw commented May 21, 2025

Signed-off-by: William Woodruff <william@yossarian.net>
woodruffw added 2 commits May 21, 2025 19:20
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
@woodruffw woodruffw enabled auto-merge (squash) May 21, 2025 23:23
@woodruffw woodruffw merged commit cb91ab9 into main May 21, 2025
8 checks passed
@woodruffw woodruffw deleted the ww/fix-839 branch May 21, 2025 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a known bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: insecure_commands audit doesn't account for boolean as value
1 participant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载