Repository navigation
Commit 96bdf82
ci: grant publishing permissions to the deploy job only (#10)
The workflow-level permissions block applied to every job, so the build that
runs on a pull request held a token able to publish the site. Nothing leaked:
the deploy job is gated on the branch and a pull request never reaches it. But
a pull request build is exactly where third-party code runs -- a dependency
resolved during the build, an action at a floating tag -- and it should not run
holding a token it has no use for.
The publishing grant moves down to the deploy job. The workflow keeps only what
the build actually reads.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 09c7d04 commit 96bdf82
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | | - | |
17 | | - | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | 63 | | |
| |||
0 commit comments