fix(ci): remove shell-injection risk in release workflows, re-enable semgrep --error#10
Merged
Merged
Conversation
…semgrep --error Move untrusted github-context values (event.inputs.version, event.inputs.package_managers, event.inputs.dry_run, ref_name, event.release.tag_name) into step-level env: vars and reference them as quoted shell variables, per semgrep run-shell-injection. With all 9 findings resolved, restore --error on semgrep so real findings block CI. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ralyodio
added a commit
that referenced
this pull request
May 30, 2026
…e semgrep --error (#11) Completes #10: the Chocolatey job's Determine version / Submit / Summary steps and both Linux/Chocolatey Summary steps still interpolated github.event.inputs.* directly in run: blocks. Move them all into step-level env: vars referenced as quoted shell variables, and restore --error on semgrep so findings block CI. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ralyodio
added a commit
that referenced
this pull request
May 30, 2026
…semgrep --error (#10) Move untrusted github-context values (event.inputs.version, event.inputs.package_managers, event.inputs.dry_run, ref_name, event.release.tag_name) into step-level env: vars and reference them as quoted shell variables, per semgrep run-shell-injection. With all 9 findings resolved, restore --error on semgrep so real findings block CI. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ralyodio
added a commit
that referenced
this pull request
May 30, 2026
…e semgrep --error (#11) Completes #10: the Chocolatey job's Determine version / Submit / Summary steps and both Linux/Chocolatey Summary steps still interpolated github.event.inputs.* directly in run: blocks. Move them all into step-level env: vars referenced as quoted shell variables, and restore --error on semgrep so findings block CI. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #9. Resolves the 9 semgrep
run-shell-injectionERROR findings so the gate can be strict again.Changes
githubcontext values (event.inputs.version,event.inputs.package_managers,event.inputs.dry_run,ref_name,event.release.tag_name) into step-levelenv:vars and reference them as quoted shell variables instead of interpolating${{ }}directly intorun:blocks.--erroron semgrep now that the findings are fixed, so real issues block CI again.🤖 Generated with Claude Code