Commit 480fd87
authored
chore(ci): split release.yml into build/publish/release-notes/notify jobs (#128)
Splits the single release job into 4 jobs so the `id-token: write` scope
is held only by a publish job that runs `npm publish` exclusively (no
install/test/build/exec).
- **build** (no `id-token`): install, typecheck, test, build, validate,
upload `dist/` + package metadata as artifact.
- **publish** (`id-token: write`): download artifact, `npm publish
--ignore-scripts`.
- **release-notes** (`contents: write`, no `id-token`): `npx
changelogithub`.
- **notify** (`if: always()`): slack notification, aggregates
`needs.*.result`.
Workflow-level permissions are tightened to `contents: read`; each job
opts in to only the scopes it needs.
Resolves the supply-chain audit `oidc-publish-fused` finding. Motivated
by the TanStack npm supply-chain compromise (May 2026). Mirrors
marimo-team/codemirror-ai#111.1 parent e24f371 commit 480fd87
1 file changed
Lines changed: 59 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
| 12 | + | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
28 | 26 | | |
29 | 27 | | |
30 | | - | |
31 | 28 | | |
32 | | - | |
| 29 | + | |
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
| |||
64 | 61 | | |
65 | 62 | | |
66 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
67 | 97 | | |
68 | | - | |
| 98 | + | |
69 | 99 | | |
70 | 100 | | |
71 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
72 | 116 | | |
73 | 117 | | |
74 | | - | |
| 118 | + | |
75 | 119 | | |
76 | | - | |
| 120 | + | |
77 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
78 | 127 | | |
79 | | - | |
80 | 128 | | |
81 | 129 | | |
82 | | - | |
| 130 | + | |
83 | 131 | | |
84 | 132 | | |
0 commit comments