Skip to content

ci: harden release workflow against version-input shell injection#4

Merged
Cmochance merged 1 commit into
mainfrom
harden-release-workflow
Jun 1, 2026
Merged

ci: harden release workflow against version-input shell injection#4
Cmochance merged 1 commit into
mainfrom
harden-release-workflow

Conversation

@Cmochance
Copy link
Copy Markdown
Owner

Follow-up to #3. Pass the workflow_dispatch version input (and the derived steps.ver.outputs.version) through env: vars and reference $INPUT_VERSION / $VERSION in shell, instead of interpolating ${{ ... }} directly into run: blocks — closes the script-injection vector (CWE-78) flagged by the PR #3 bot review. matrix.* (repo-controlled) and with: block uses (not shell-evaluated) are left as-is.

YAML validated locally.

Pass github.event.inputs.version / steps.ver.outputs.version through env vars
instead of interpolating ${{ }} directly into run: shell blocks (CWE-78). A
workflow_dispatch version like $(...) would otherwise be evaluated by the shell.
matrix.* / with: usages are repo-controlled or not shell-evaluated and unchanged.

Addresses devin-ai-integration PR #3 review.
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@Cmochance Cmochance merged commit 6f0c311 into main Jun 1, 2026
2 checks passed
@Cmochance Cmochance deleted the harden-release-workflow branch June 1, 2026 08:55
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