Sign release assets with SLSA provenance before the first release
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 57/100
Research direction
Start with .github/workflows/release.yml and config/tests/test_supply_chain.py; compare the two provenance approaches and keep the existing OpenAPI check ahead of signing. Grant signing permissions only to the job that needs them, then document how partners verify the release asset in CONTRIBUTING.md or docs/. Run uv run pytest --no-cov config/tests/test_supply_chain.py; done when a test release includes verifiable provenance or a signature and the documented check rejects a modified asset.
Written by the indexing model from the issue text.
Description
Epic: #397
Problem: Scorecard's Signed-Releases check is -1 today only because there are no releases. .github/workflows/release.yml attaches openapi/openapi.json to each published release with no signature or provenance. The first release cut as things stand drops the check to 0. Partners will build against the released OpenAPI document (#184), so they should be able to verify it came from this repository's workflow and the tagged commit.
Scorecard looks at the last releases' assets for a signature file (*.sig, *.asc, *.minisig, *.sigstore, *.sigstore.json) for 8/10, or a SLSA provenance file (*.intoto.jsonl) on every release for 10/10. It does not verify them.
Approach (pick one, recommendation first):
- SLSA provenance with
slsa-framework/slsa-github-generator's generic generator (generator_generic_slsa3.yml), fed the SHA-256 of each asset, uploadingopenapi.intoto.jsonlto the release. Scores 10. The generator must be called by its version tag, not a commit SHA (its verifier checks the tag), soconfig/tests/test_actions_are_pinned_to_commit_shasneeds a narrow, commented exception for that one reusable workflow. Scorecard's Pinned-Dependencies check already exempts it. actions/attest-build-provenance, then attach the Sigstore bundle asopenapi.json.sigstore.json. Scores 8, keeps every action pinned to a SHA, and adds a GitHub attestation thatgh attestation verifycan check.
Scope:
- Add the provenance step to
release.yml(a separate job is fine). Grantid-token: write(andattestations: writefor option 2) only to the job that needs it; keep top-levelpermissions:read-only - Keep the existing
export_openapi_schema --checkgate before anything is signed - Update the supply chain test only as far as the chosen option needs, with a reason in the code
- Document how a partner verifies the asset (
slsa-verifier verify-artifactorgh attestation verify) inCONTRIBUTING.mdordocs/, and mention it to partner-docs (#184) - Cut the first release only after this lands
Acceptance criteria:
- A test release (on a fork or a pre-release tag) has the OpenAPI document and its provenance or signature as assets
- The documented verification command succeeds against that asset and fails on a modified copy
uv run pytest --no-cov config/tests/test_supply_chain.pypasses- After a real release, Scorecard shows Signed-Releases 8 or 10
Out of scope:
- Publishing or signing the container image (App Platform builds from the repository)
- SBOM release assets
Related: #184 (partner-docs publishes the OpenAPI document), #104
Size: S
- Dominant language
- Python
- Stars
- 0
- Forks
- 1
- Avg merge
- 1h 7m
- Merged PRs (30d)
- 206
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openpickleball/backend
-
area:infra documentation priority:p2 size:S
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/backend#472 ·
Maintainers usually reply within 1 day
-
Show doctl's error when the Deploy workflow's update failsPossibly taken @GeoBradDev claimed this today. Openarea:infra bug priority:p2 size:S
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/backend#471 ·
Maintainers usually reply within 1 day
-
area:infra documentation type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
openpickleball/backend#196 ·
Maintainers usually reply within 1 day
-
area:infra type:chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openpickleball/backend#195 ·
Maintainers usually reply within 1 day
-
area:api enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
openpickleball/backend#470 ·
Maintainers usually reply within 1 day
All issues in openpickleball/backend
Similar issues
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPossibly taken @jejjohnson claimed this today. Opentype:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jejjohnson/integrix#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
finos/ai-governance-framework#459 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
freelawproject/litigant-portal#1307 ·
Maintainers usually reply within 2 days
-
type/bug
Difficulty 1/5 Under an hour Newbie friendliness 86/100
h2oai/h2o-llmstudio#1163 ·
Maintainers usually reply within 1 day