Allow PNC SLSA build type for PipelineRun attestations - #1816
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe test suite adds a PNC SLSA v1 attestation fixture and verifies that ChangesPNC attestation coverage
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change enables recognition of the PNC SLSA build type with a targeted regression test; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🤖 Finished Review · ✅ Success · Started 3:11 AM UTC · Completed 3:24 AM UTC Commit: |
ReviewFindingsMedium
Low
Previous runReviewFindingsLow
Previous run (2)ReviewFindingsLow
Labels: PR adds support for a new SLSA provenance build type (PNC) |
|
Hi @vnadempa, i get your intentions here, but adding this build type to the default will enable it for everyone, and it is not ideal imho. |
|
🤖 Finished Review · ✅ Success · Started 2:54 PM UTC · Completed 3:05 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.03 |
|
I think it's fine, but do you want to squash it into a single commit? |
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 11 files with indirect coverage changes 🚀 New features to boost your workflow:
|
9030faa to
59955a0
Compare
|
🤖 Finished Review · ✅ Success · Started 8:18 AM UTC · Completed 8:31 AM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.62 |
Remove PNC build type from default provenance allowlist
59955a0 to
5ca7dc0
Compare
|
🤖 Finished Review · ✅ Success · Started 3:21 AM UTC · Completed 3:33 AM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $2.68 |
|
|
🤖 Finished Retro · ✅ Success · Started 3:28 AM UTC · Completed 3:43 AM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $3.86 |
Thanks for pointing this out. You're right — adding the PNC build type to the global default would enable it for everyone, which isn't what we want. I updated the change to remove the PNC build type from the default provenance allowlist and instead explicitly provide it through I also added/updated the test to verify that the PNC build type is recognized when supplied through Thanks for the guidance! |
|
Review skipped — this PR is already closed. The Posted by fullsend post-review check |
Retro: PR #1816 — Allow PNC SLSA build type for PipelineRun attestationsTimeline
Total estimated review cost: ~$12–13 across 4 runs. Agents repo: Key FindingsThe review agent missed the most important issue on this PR. The critical feedback — that a vendor-specific (PNC) build type should not be added to the universal defaults list — came from a human reviewer 10 hours after the agent approved and labeled the PR The agent's intent-vs-implementation-mismatch finding (run 3) was valid but late. It correctly flagged that the PR metadata was stale after the scope change, but this observation came 7 days after st3penta had already caused the scope change. It did appropriately trigger the The test-adequacy finding was low-value. simonbaird correctly dismissed it — the negative case for custom build types is already covered by Existing Issue Coverage
Proposals filed
|
What:
The goal of this change is to make Conforma work with the PNC SLSA v1 attestation build type.
This is a targeted compatibility change. It allows the PNC build type to be recognized as a PipelineRun attestation and adds a regression test for this specific attestation format.
This change does not make all rules defined in this repository automatically work with the PNC attestation. Additional rules may require separate future work, either in this repository or through custom Enterprise Contract definitions, where applicable.
Why:
PNC produces an SLSA v1 attestation using the PNC-specific build type:
https://project-ncl.github.io/slsa-pnc-cli-buildtypes/workflow/v1The change is needed so that Conforma recognizes this attestation as a supported PipelineRun attestation.
The existing
attestation_type.known_attestation_typerule already recognizes the PNC attestation's_type, so this change does not modify that rule.Testing
attestation_type.known_attestation_type: PASSlib.json_test.test_validate_argsfailure is also present on the clean baseline and is unrelated to this change.Tickets:
MMENG-4662