Repository navigation
Commit 075ea2f
ci: harden publish job — no persisted git creds, --ignore-scripts on npm
Two more defense-in-depth findings from the Copilot re-review under the
new GHA credential-safety instructions:
- persist-credentials: false on the check and publish checkouts — those
jobs don't push, so don't leave GITHUB_TOKEN in the local git config
(smaller blast radius if a later step uses git/network).
- --ignore-scripts on the pinned `npm install -g` so no dependency
lifecycle code executes while the publish job holds id-token: write.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 9da37e3 commit 075ea2f
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| 121 | + | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| |||
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
130 | | - | |
| 134 | + | |
| 135 | + | |
131 | 136 | | |
132 | 137 | | |
133 | 138 | | |
| |||
0 commit comments