Skip to content

fix(ci): remove shell-injection risk in release workflows, re-enable semgrep --error#10

Merged
ralyodio merged 1 commit into
masterfrom
fix/workflow-shell-injection
May 30, 2026
Merged

fix(ci): remove shell-injection risk in release workflows, re-enable semgrep --error#10
ralyodio merged 1 commit into
masterfrom
fix/workflow-shell-injection

Conversation

@ralyodio
Copy link
Copy Markdown
Contributor

Follow-up to #9. Resolves the 9 semgrep run-shell-injection ERROR findings so the gate can be strict again.

Changes

  • desktop-release.yml / submit-packages.yml: 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 instead of interpolating ${{ }} directly into run: blocks.
  • security.yml: restore --error on semgrep now that the findings are fixed, so real issues block CI again.

🤖 Generated with Claude Code

…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 ralyodio merged commit e8491f9 into master May 30, 2026
8 checks passed
@ralyodio ralyodio deleted the fix/workflow-shell-injection branch May 30, 2026 12:45
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>
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.

1 participant