Commit c3bf92d
ci: gate triggers on PR author instead of github.actor
SonarCloud flagged the use of github.actor in the actor gate as
forgeable — on a re-run by a maintainer, github.actor becomes that
maintainer rather than the original PR author, which would let a
malicious PR bypass the gate. Switch to
github.event.pull_request.user.login, which is the immutable original
author set by GitHub from the authenticated session.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f83fd60 commit c3bf92d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments