Skip to content

ci: Secure SemVer check workflow - #769

Open
jschwe wants to merge 1 commit into
servo:mainfrom
jschwe:ci_semver
Open

ci: Secure SemVer check workflow#769
jschwe wants to merge 1 commit into
servo:mainfrom
jschwe:ci_semver

Conversation

@jschwe

@jschwe jschwe commented Aug 6, 2026

Copy link
Copy Markdown
Member

We can't trust any cargo commands in potentially attacker controlled code, see https://shnatsel.medium.com/do-not-run-any-cargo-commands-on-untrusted-projects-4c31c89a78d6. We avoid such attacks by moving the potential malicous command (which could do anything with our tokens) to an unprivileged workflow.

We can't trust any `cargo` commands in potentially attacker controlled code, see
<https://shnatsel.medium.com/do-not-run-any-cargo-commands-on-untrusted-projects-4c31c89a78d6>.
We avoid such attacks by moving the potential malicous command (which could do anything with
our tokens) to an unprivileged workflow.
@github-actions github-actions Bot added the V-non-breaking A non-breaking change label Aug 7, 2026
@jschwe
jschwe marked this pull request as ready for review August 7, 2026 05:45
@jschwe

jschwe commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

Tested in my fork: https://github.com/jschwe/html5ever/actions/runs/31150532800/job/92782128612 (Note: Needed to add the labels to my fork first, before being able to test)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

V-non-breaking A non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant