Skip to content

Commit 7836998

Browse files
committed
docs: add pull_request_target security comment
1 parent 22be29f commit 7836998

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/pr-linked-issue.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ permissions:
2020

2121
jobs:
2222
# ── Job 1: validate linked issue on PR events ─────────────────────────
23+
# SECURITY: This workflow uses pull_request_target to get write access for
24+
# posting comments on fork PRs. It MUST NOT check out or execute code from
25+
# the PR branch. All inputs from the PR (body, author) are read via API
26+
# only. Adding actions/checkout here would run untrusted fork code with
27+
# base repo write permissions.
2328
check:
2429
if: >-
2530
github.repository_owner == 'NVIDIA-NeMo'

0 commit comments

Comments
 (0)