Commit abab4bf
committed
ci: tighten Token-Permissions + add SLSA build provenance to releases
Targets three Scorecard checks:
Token-Permissions (was 0/10)
build.yml gains an explicit 'permissions: contents: read' top-level
block. release.yml moves write permissions out of the workflow scope
into the only job that needs them, and adds id-token + attestations
for the new provenance step. dev-build.yml, codeql.yml, and
scorecard.yml were already minimal.
Signed-Releases (was 0/10)
Adds actions/attest-build-provenance to release.yml. After every
Release, a SLSA Build Provenance attestation is generated for the
installer, the portable EXE, and SHA256SUMS.txt; signed via Sigstore
OIDC and stored in GitHub's public attestation log. Anyone can verify
a downloaded binary was built from this exact source commit by this
exact workflow with:
gh attestation verify GamerGuardian-Setup-x.y.z.exe --owner carterscode
Branch-Protection (was -1, internal error)
scorecard.yml's analysis step now consumes an optional SCORECARD_TOKEN
secret (a fine-grained PAT with metadata:read + administration:read).
When set, Scorecard can read branch-protection rules and score them.
Falls back to GITHUB_TOKEN when SCORECARD_TOKEN is absent so existing
runs don't break before the secret is added.1 parent 5706d08 commit abab4bf
3 files changed
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
166 | 183 | | |
167 | 184 | | |
168 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
| |||
0 commit comments