Commit 27fbaf0
chore: Trusted environment publish hardening (#70)
* build: split CI/publish workflows, add trusted publishing
- Rename build.yml → ci.yml (lint + build + test on push/PR only)
- Remove version-munging job and manifest_version.py script; version is
now solely what's in Cargo.toml
- Create publish.yml triggered on v* tags with:
- OIDC trusted publishing (id-token: write, no stored credentials)
- pypi-publish environment (requires manual approval + tag restriction)
- pypa/gh-action-pypi-publish for upload
- GitHub Release creation with checksums
- Remove dev/main branch publish logic and prerelease handling
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* build: add tag-on-main verification to publish workflow
Ensures the tagged commit exists on the main branch before building
and publishing. Combined with tag protection rules (v* restricted to
maintainers) and environment approval, this provides defense-in-depth.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: address PR #70 review feedback on publish workflow
- Scope workflow-level permissions to contents:read; only publish job
gets id-token:write and contents:write
- Add tag/version mismatch check (tag v1.3.0 must match Cargo.toml 1.3.0)
- Add skip-existing to pypi-publish for idempotent re-runs
- Add Rust and Python unit tests to the release build job
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 017e81c commit 27fbaf0
3 files changed
Lines changed: 140 additions & 140 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 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 | + | |
Lines changed: 48 additions & 87 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
3 | 11 | | |
4 | | - | |
5 | | - | |
| 12 | + | |
| 13 | + | |
6 | 14 | | |
7 | 15 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | | - | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 76 | + | |
80 | 77 | | |
81 | 78 | | |
82 | 79 | | |
| |||
113 | 110 | | |
114 | 111 | | |
115 | 112 | | |
| 113 | + | |
116 | 114 | | |
117 | 115 | | |
118 | | - | |
119 | | - | |
| 116 | + | |
| 117 | + | |
120 | 118 | | |
| 119 | + | |
121 | 120 | | |
122 | 121 | | |
123 | 122 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | 123 | | |
146 | 124 | | |
147 | | - | |
| 125 | + | |
| 126 | + | |
148 | 127 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 128 | + | |
| 129 | + | |
154 | 130 | | |
155 | | - | |
156 | | - | |
| 131 | + | |
157 | 132 | | |
158 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
159 | 136 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
174 | 141 | | |
175 | 142 | | |
176 | 143 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 144 | + | |
| 145 | + | |
183 | 146 | | |
184 | | - | |
185 | 147 | | |
186 | 148 | | |
187 | | - | |
0 commit comments