Skip to content

docs: note the pull_request_target safety invariant in pr-labels - #76

Merged
versnic merged 1 commit into
mainfrom
fix/pr-labels-guardrail
Nov 7, 2026
Merged

versnic merged 1 commit into
mainfrom
fix/pr-labels-guardrail

Conversation

@versnic

@versnic versnic commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Adds a maintenance note to the pr-labels workflow recording why its pull_request_target trigger is safe and what must never change.

Aikido (and zizmor's dangerous-triggers) flag pull_request_target by heuristic. The usage here is the documented-safe pattern: the job never checks out or runs PR code, and every untrusted field (title, author) is passed through env rather than interpolated into a run: block. Permissions are minimal (pull-requests: write only).

The risk is drift. This note states the invariant inline so a future edit does not silently reintroduce it: no checkout of the PR, and no ${{ github.event.* }} interpolated into a run: block.

Comment-only change; no behaviour change. Mirrored in nuxt-core.

🤖 Generated with Claude Code

@github-actions github-actions Bot added documentation README, guides and code comments release: none Merging publishes nothing labels Nov 7, 2026
@versnic
versnic merged commit 931ecc1 into main Nov 7, 2026
18 checks passed
@versnic
versnic deleted the fix/pr-labels-guardrail branch November 7, 2026 14:06
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 0.9.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions Bot added the released Included in a published release (added by semantic-release) label Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation README, guides and code comments release: none Merging publishes nothing released Included in a published release (added by semantic-release)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant