Skip to content

Display SLSA provenance level shield badge next to package versions - #9550

Draft
mosuem wants to merge 1 commit into
require-attestation-policyfrom
website-slsa-badges
Draft

Display SLSA provenance level shield badge next to package versions#9550
mosuem wants to merge 1 commit into
require-attestation-policyfrom
website-slsa-badges

Conversation

@mosuem

@mosuem mosuem commented Aug 20, 2026

Copy link
Copy Markdown
Member

Website UI Support for Signed Packages

  • Adds slsaLevel property to PackageVersion and VersionInfo.
  • In backend.dart, automatically populates slsaLevel when an attestation bundle is cryptographically verified during upload.
  • Adds slsaShieldBadgeNode in views/pkg/badge.dart rendering an SVG shield icon with the SLSA level number centered inside.
  • Displays the SLSA shield badge in the package page title/header and the versions tab table next to signed versions.
  • Adds .package-badge-slsa CSS styling in _pkg.scss.

@mosuem
mosuem force-pushed the website-slsa-badges branch from 3b11092 to 8eee090 Compare August 20, 2026 09:38
@mosuem
mosuem force-pushed the website-slsa-badges branch from 8eee090 to 17ba928 Compare August 20, 2026 11:17
@mosuem
mosuem force-pushed the website-slsa-badges branch from 17ba928 to 1cdb4b0 Compare August 20, 2026 11:34
@mosuem
mosuem force-pushed the website-slsa-badges branch from 1cdb4b0 to cf7dc13 Compare August 20, 2026 11:40
@mosuem
mosuem force-pushed the website-slsa-badges branch 2 times, most recently from c23df80 to aae1d61 Compare August 20, 2026 12:27
@mosuem
mosuem changed the base branch from integration-test-attestations to require-attestation-policy August 20, 2026 12:28
@mosuem
mosuem force-pushed the website-slsa-badges branch from aae1d61 to 73bce6c Compare August 21, 2026 16:17
@mosuem
mosuem force-pushed the website-slsa-badges branch 2 times, most recently from 0ea9f1e to 2670ca1 Compare August 24, 2026 08:32
- Adds `slsaLevel` property to `PackageVersion` and `VersionInfo`.
- In `backend.dart`, populates `slsaLevel` when an attestation bundle is verified during upload.
- Adds `slsaShieldBadgeNode` in `views/pkg/badge.dart` rendering a shield icon with the SLSA level number.
- Displays SLSA shield badge in package page title and version rows.
- Styles `.package-badge-slsa` in `_pkg.scss`.
@mosuem
mosuem force-pushed the website-slsa-badges branch from 2670ca1 to a85a8a5 Compare August 24, 2026 08:49
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