Skip to content

fix: gate oc mention job on comment author write access - #914

Merged
n24q02m merged 2 commits into
mainfrom
fix/oc-mention-author-gate
Jul 13, 2026
Merged

fix: gate oc mention job on comment author write access#914
n24q02m merged 2 commits into
mainfrom
fix/oc-mention-author-gate

Conversation

@n24q02m

@n24q02m n24q02m commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Only the mention job is affected; auto-issue/auto-pr keep serving outside contributors by design. Closes the non-writer prompt-injection path and the loud CI failures on bot /oc comments. Mirrors n24q02m/.github#3.

🤖 Generated with Claude Code

https://claude.ai/code/session_01F9w18hRCCpz3Z73wQHMGhd

Bots and outside users quoting /oc (e.g. coderabbitai review comments)
triggered the mention job, which fails at the opencode action permission
check and needlessly exposes the model bearer token to untrusted comment
text. Gate at the job level on comment.author_association.
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@n24q02m
n24q02m merged commit 8764f0c into main Jul 13, 2026
25 checks passed
@n24q02m
n24q02m deleted the fix/oc-mention-author-gate branch July 13, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant