Repository navigation
Conversation
Contributor
PR validation — ✅ 3 passing
AI Session Checks —
|
| Status | Policy | Messages |
|---|---|---|
| ✅ Passed | secrets-detection |
- |
✅ sast-scan
| Status | Policy | Messages |
|---|---|---|
| ✅ Passed | owasp-top10-2025 |
- |
| ✅ Passed | sast |
- |
| ✅ Passed | cwe-top25 |
- |
| ✅ Passed | cwe-top26-40-cusp |
- |
Scans not applied (3)
| Scan | Reason |
|---|---|
vulnerability-scan |
no manifest/lockfile changed |
github-actions-scan |
no workflow files changed |
iac-scan |
no IaC files changed |
Powered by Chainloop and Chainloop Trace
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 8 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
Adding a material with a name that is already in the attestation silently overwrote the previous one. It now fails and tells the user to use a different --name, or to pass the new --replace flag to overwrite it. Closes chainloop-dev#3824 Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev> Chainloop-Trace-Sessions: c0141405-13fa-4976-8c09-9cbdb55cdc07
migmartri
force-pushed
the
fix/attestation-add-duplicate-material
branch
from
November 17, 2026 12:26
ca0f5d9 to
73eb044
Compare
jiparis
approved these changes
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
chainloop attestation addsilently overwrote a material when another material with the same name was added to the same attestation. Only the last piece of evidence was kept.With this change, adding a material whose name is already in the attestation fails with an error that tells the user to use a different
--nameor to pass--replace. The new--replaceflag onattestation addkeeps the previous overwrite behavior on purpose, the same wayattestation init --replacedoes. The rule applies to materials in the contract, to materials not in the contract, and to materials whose kind is detected automatically. The duplicate is rejected before anything is uploaded.Evidence that the CLI generates by itself (PR/MR metadata, AI agent configuration, and Chainloop Trace materials) keeps overwriting by name, so its behavior does not change.
Closes #3824
This contribution was made with AI assistance (Claude Code).