Commit bddca07
Let security-audit prefer AUDIT_PAT when present
Wires `${{ secrets.AUDIT_PAT || github.token }}` into the audit's
`$GH_TOKEN`. When the repo has an AUDIT_PAT secret (fine-grained,
read-only Administration + Secrets + Environments), the audit's
`gh api` queries against /rulesets, /actions/secrets, and
/environments succeed and those checks return PASS/FAIL instead of
UNVERIFIABLE. Without the secret, the audit still runs against the
default workflow token and degrades gracefully.
Prompt updated to describe both modes so Claude's report stays
accurate about why a check is UNVERIFIABLE when it is.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent be03273 commit bddca07
1 file changed
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
| |||
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
| |||
0 commit comments