Skip to content

ci(sbom): CycloneDX SBOM artifacts + job-scoped audit token (OSTIF T-10, T-20) - #85

Merged
tonibergholm merged 2 commits into
mainfrom
ci/sbom-and-token-scoping
Jul 18, 2026
Merged

tonibergholm merged 2 commits into
mainfrom
ci/sbom-and-token-scoping

Conversation

@tonibergholm

Copy link
Copy Markdown
Member

Executes T-10 (G-005/G-033) and the workflow half of T-20 (G-025) from the OSTIF audit (#76):

  • sbom.yml — weekly + lockfile-change job producing three CycloneDX SBOMs as a 90-day artifact: sc binary (all target platforms), desktop binary, desktop npm frontend (from lockfile). --target all keeps the Linux GTK stack (incl. vendored glib) represented regardless of runner OS.
  • annotate_sbom_glib.py — records the in-tree glib patch as pedigree (backport resolving RUSTSEC-2024-0429, diff → PROVENANCE.md), closing the G-033 misrepresentation trap before any SBOM is published. Fails loudly when the vendored copy is removed (GTK4 gate) so the step gets deleted with it. Verified locally: glib found, annotated, JSON valid.
  • audit.yml — checks:write/issues:write moved from workflow-level to job-level (Scorecard Token-Permissions finding, alert Disposition: protected-path equality leak (ADR-0014) #5).

All actions SHA-pinned, no event interpolation, contents: read everywhere.

…oken (OSTIF T-10, T-20)

- New sbom.yml (weekly + on lockfile change): cargo-cyclonedx binary
  SBOMs with --target all (so the Linux-only GTK stack incl. vendored
  glib is represented on any runner), the desktop frontend via npm sbom
  from the lockfile, uploaded as a 90-day artifact. Not a PR gate;
  release attachment waits on the deferred release pipeline (T-24).
- .github/scripts/annotate_sbom_glib.py records the in-tree glib patch
  as CycloneDX pedigree (backport resolving RUSTSEC-2024-0429, diff URL
  → PROVENANCE.md) so version-keyed consumers don't misread the patched
  fork as unpatched upstream (audit G-033). Fails loudly when glib
  leaves the tree. Verified locally end-to-end.
- audit.yml: checks:write + issues:write moved from workflow level to
  the job (Scorecard Token-Permissions; audit T-20/G-025).
- .gitignore: generated *.cdx.json never committed.
@tonibergholm
tonibergholm merged commit b94811c into main Jul 18, 2026
8 checks passed
@tonibergholm
tonibergholm deleted the ci/sbom-and-token-scoping branch July 18, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant