Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: replace option for same attestation #1039

Merged
merged 2 commits into from
Nov 15, 2021
Merged

Conversation

developer-guy
Copy link
Member

@developer-guy developer-guy commented Nov 12, 2021

Signed-off-by: Furkan [email protected]

feat: replace option for same attestation

Signed-off-by: Batuhan Apaydın [email protected]

Summary

replace option for same attestation

Ticket Link

Fixes #923

Release Note

feat: replace option for same attestation

Huge thanks tho @imjasonh !!

cc: @JimBugwadia @dlorenc @cpanato

ezgif com-gif-maker(5)

Signed-off-by: Furkan <[email protected]>
Signed-off-by: Batuhan Apaydın <[email protected]>
@developer-guy
Copy link
Member Author

we also added a target for fmt operation to the Makefile, PTAL @cpanato 🙏

@dlorenc
Copy link
Member

dlorenc commented Nov 13, 2021

Close!

# github.com/sigstore/cosign/test [github.com/sigstore/cosign/test.test]
test/e2e_test.go:186:23: not enough arguments in call to attest.AttestCmd
test/e2e_test.go:187:13: undefined: ftime

@developer-guy
Copy link
Member Author

Close!

# github.com/sigstore/cosign/test [github.com/sigstore/cosign/test.test]
test/e2e_test.go:186:23: not enough arguments in call to attest.AttestCmd
test/e2e_test.go:187:13: undefined: ftime

seems okay right now, thanks, I missed it due to build tags 🤦

Signed-off-by: Batuhan Apaydın <[email protected]>
@dlorenc dlorenc merged commit ccc4468 into sigstore:main Nov 15, 2021
@github-actions github-actions bot added this to the v1.4.0 milestone Nov 15, 2021
@developer-guy
Copy link
Member Author

@dlorenc should we do the same for signatures?

@@ -211,6 +211,13 @@ func (si *signedImage) Attestations() (oci.Signatures, error) {
return base, nil
}
}
if si.so.ro != nil {
replace, err := si.so.ro.Replace(base, si.att)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like these paths aren't covered by current unit tests, can we get some unit tests for these, please? 🙏

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.

option to replace attestations
6 participants