Skip to content

Fix artifact poisoning in gen-release-pr workflow - #470

Merged
doron050 merged 1 commit into
mainfrom
fix/artifact-poisoning-release-pr
Oct 24, 2026
Merged

doron050 merged 1 commit into
mainfrom
fix/artifact-poisoning-release-pr

Conversation

@doron050

Copy link
Copy Markdown
Collaborator

Fixes code scanning alert #1 (actions/artifact-poisoning/critical).

On workflow_dispatch, dawidd6/action-download-artifact got an empty run_id and could fall back to an artifact from an arbitrary run (e.g. a PR/fork build). That plugin.wasm is then hashed and written into the release docs.

Changes: replaced the third-party action with gh run download from an explicitly resolved run id. The run must be a successful push build on main in this repo (taken from the workflow_run event, or the latest such run for manual dispatch). The step fails if none is found.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@doron050 doron050 added the skip-release Exclude this pull request from the next release changelog. label Oct 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Release Assistant - Passed

PR marked as skip-release. No release will be triggered.

@doron050
doron050 merged commit a6f4ce6 into main Oct 24, 2026
14 checks passed
@doron050
doron050 deleted the fix/artifact-poisoning-release-pr branch October 24, 2026 15:25
@github-actions github-actions Bot mentioned this pull request Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-release Exclude this pull request from the next release changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant