Repository navigation
Commit 69e3636
ci: grant publishing permissions to the deploy job only (#5)
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 e72f232 commit 69e3636
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | | - | |
28 | | - | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
| |||
0 commit comments