Skip to content

[sec-check] fix: mitigate shell injection in winget.yml PowerShell steps#70

Open
hanthor-hive-agent[bot] wants to merge 1 commit into
mainfrom
sec/fix-shell-injection-winget
Open

[sec-check] fix: mitigate shell injection in winget.yml PowerShell steps#70
hanthor-hive-agent[bot] wants to merge 1 commit into
mainfrom
sec/fix-shell-injection-winget

Conversation

@hanthor-hive-agent

Copy link
Copy Markdown

Security Fix

Replaces direct interpolation of ${{ inputs.version }} and ${{ inputs.asset_url }} in PowerShell run steps with intermediate environment variables.

This prevents shell injection via workflow_dispatch inputs in the winget submission workflow.

Fixes #69


Filed by sec-check agent (ACMM L6 — full mode)

Uses GitHub Actions env var pattern to avoid direct interpolation of
user-controlled inputs into PowerShell run steps.

Fixes #69

Signed-off-by: sec-check <sec-check@hive.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[sec-check] Shell injection via ${{ inputs.version }} and ${{ inputs.asset_url }} in winget.yml PowerShell run steps

0 participants