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

Use the correct tag when signing the sbom #729

Merged
merged 4 commits into from
Sep 28, 2021

Conversation

natalieparellano
Copy link
Member

Also there is no need to parse the digest from crane tag because it does not change.
This will make the code less brittle.

Signed-off-by: Natalie Arellano [email protected]

Also there is no need to parse the digest from `crane tag` because it does not change.
This will make the code less brittle.

Signed-off-by: Natalie Arellano <[email protected]>
@natalieparellano natalieparellano requested a review from a team as a code owner September 28, 2021 15:55
Signed-off-by: Natalie Arellano <[email protected]>
Signed-off-by: Natalie Arellano <[email protected]>
@natalieparellano
Copy link
Member Author

@natalieparellano natalieparellano merged commit 0de4cff into release/0.12.0 Sep 28, 2021
@natalieparellano natalieparellano deleted the fix-sbom-attach branch September 28, 2021 18:34
natalieparellano added a commit that referenced this pull request Oct 26, 2021
* Run image should be locked to a digest in analyzed.toml (#720)

* Run image should be locked to a digest in analyzed.toml

Signed-off-by: Natalie Arellano <[email protected]>

* Use more flexible matcher for other test

Signed-off-by: Natalie Arellano <[email protected]>

* Update github actions to use cosign v1.2.0 (#708)

* Introduce new api version helpers (#705)

* Introduce new api version helpers

This makes the code a little easier to read.

Signed-off-by: Natalie Arellano <[email protected]>

* Fix

Signed-off-by: Natalie Arellano <[email protected]>

* Remove comment

Signed-off-by: Natalie Arellano <[email protected]>

* Fix lint

Signed-off-by: Natalie Arellano <[email protected]>

* Update github actions to use cosign v1.2.0

Signed-off-by: Sambhav Kothari <[email protected]>

Co-authored-by: Natalie Arellano <[email protected]>

* Add information about buildpacksio/lifecycle (#707)

* Introduce new api version helpers (#705)

* Introduce new api version helpers

This makes the code a little easier to read.

Signed-off-by: Natalie Arellano <[email protected]>

* Fix

Signed-off-by: Natalie Arellano <[email protected]>

* Remove comment

Signed-off-by: Natalie Arellano <[email protected]>

* Fix lint

Signed-off-by: Natalie Arellano <[email protected]>

* Add information about buildpacksio/lifecycle

This information should be copied to the Docker Hub repo "about" section.

Signed-off-by: Natalie Arellano <[email protected]>

* Small fix

Signed-off-by: Natalie Arellano <[email protected]>

* Small fix

Signed-off-by: Natalie Arellano <[email protected]>

* Update steps for verifying SBOM

Signed-off-by: Natalie Arellano <[email protected]>

* Update the README for platform 0.7 (#704)

Signed-off-by: Natalie Arellano <[email protected]>

* Fix umask race (#722)

* Set umask before extracting layers to avoid race condition

Signed-off-by: Natalie Arellano <[email protected]>

* Add comment

Signed-off-by: Natalie Arellano <[email protected]>

* Update archive/extract.go

Signed-off-by: Natalie Arellano <[email protected]>

Co-authored-by: Anthony Emengo <[email protected]>

* Don't try to set the umask outside of extract

Signed-off-by: Natalie Arellano <[email protected]>

* Don't try to read umask in extract

Signed-off-by: Natalie Arellano <[email protected]>

Co-authored-by: Anthony Emengo <[email protected]>

* Buildpack api 0.7 is not supported (#726)

* Buildpack api 0.7 is not supported

We missed this when backing out asset packages.

Signed-off-by: Natalie Arellano <[email protected]>

* Fix

Signed-off-by: Natalie Arellano <[email protected]>

* Use the correct tag when signing the sbom (#729)

* Use the correct tag when signing the sbom

Also there is no need to parse the digest from `crane tag` because it does not change.
This will make the code less brittle.

Signed-off-by: Natalie Arellano <[email protected]>

* Add manifest sha when validating semver

Signed-off-by: Natalie Arellano <[email protected]>

* Fix

Signed-off-by: Natalie Arellano <[email protected]>

* Fix

Signed-off-by: Natalie Arellano <[email protected]>

* Ensure umask is unset when extracting archive (#727)

* Ensure umask is unset when extracting archive

Signed-off-by: Natalie Arellano <[email protected]>

* Add test

Signed-off-by: Natalie Arellano <[email protected]>

* Fix

Signed-off-by: Natalie Arellano <[email protected]>

* Get the current umask without changing it

Signed-off-by: Natalie Arellano <[email protected]>

* Fix

Signed-off-by: Natalie Arellano <[email protected]>

* Fix windows

Signed-off-by: Natalie Arellano <[email protected]>

* Fix windows

Signed-off-by: Natalie Arellano <[email protected]>

* Update per review comments

Signed-off-by: Natalie Arellano <[email protected]>

* Less confusing wording

Signed-off-by: Natalie Arellano <[email protected]>

* Reduce the diff

Signed-off-by: Natalie Arellano <[email protected]>

* Fix

Signed-off-by: Natalie Arellano <[email protected]>

* Added comments

Signed-off-by: Natalie Arellano <[email protected]>

* Better wording

Signed-off-by: Natalie Arellano <[email protected]>

* Add test that system umask is used to create non existent directory not in tar file

Signed-off-by: Natalie Arellano <[email protected]>

* Variable names and formatting

Signed-off-by: Natalie Arellano <[email protected]>

* Try to fix windows

Signed-off-by: Natalie Arellano <[email protected]>

* Avoid direct dependency on archive

Signed-off-by: Natalie Arellano <[email protected]>

* Make test setup simpler and update comment

Signed-off-by: Natalie Arellano <[email protected]>

* Add build directive

Signed-off-by: Natalie Arellano <[email protected]>

* Apply suggestions from code review

Signed-off-by: Natalie Arellano <[email protected]>

* Fix Codecov

Signed-off-by: Natalie Arellano <[email protected]>

* Fix lint

Signed-off-by: Natalie Arellano <[email protected]>

* Set Umask as part of archive.Extract

Signed-off-by: Natalie Arellano <[email protected]>

* Move the unlock methods to be under defer
instead at the end of the function in case setUmask will panic.

Signed-off-by: Natalie Arellano <[email protected]>

* Bump imgutil (#731)

Signed-off-by: Natalie Arellano <[email protected]>

* Fix merge

Signed-off-by: Natalie Arellano <[email protected]>

Co-authored-by: Sambhav Kothari <[email protected]>
Co-authored-by: Anthony Emengo <[email protected]>
Co-authored-by: Yael Harel <[email protected]>
Co-authored-by: Yael Harel <[email protected]>
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.

2 participants