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

fix: restore SBOM creation #53

Merged
merged 1 commit into from
Dec 19, 2023
Merged

fix: restore SBOM creation #53

merged 1 commit into from
Dec 19, 2023

Conversation

flavio
Copy link
Member

@flavio flavio commented Dec 18, 2023

The update to actions/upload-artifact v4 introduces a breaking change:

Uploading to the same named Artifact multiple times.

Due to how Artifacts are created in this new version, it is no longer possible to upload to the same named Artifact multiple times. You must either split the uploads into multiple Artifacts with different names, or only upload once. Otherwise you will encounter an error.

This is good security improvement.

This commit fixes the build failures we've seen by:

  • Uploading x86_64 and ARM64 SBOMs as individual artifacts
  • When creating the GitHub release, download all the artifacts produced during the run. The pre-existing code was already looking for the specific SBOM files

Copy link

@voigt voigt left a comment

Choose a reason for hiding this comment

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

lgtm

Thank you! :)

The update to `actions/upload-artifact` v4 introduces a breaking change:

> Uploading to the same named Artifact multiple times.
>
> Due to how Artifacts are created in this new version, it is no longer
> possible to upload to the same named Artifact multiple times.
> You must either split the uploads into multiple Artifacts with different names,
> or only upload once.
> Otherwise you will encounter an error.

This is good security improvement.

This commit fixes the build failures we've seen by:

- Uploading x86_64 and ARM64 SBOMs as individual artifacts
- When creating the GitHub release, download all the artifacts produced
  during the run. The pre-existing code was already looking for the
  specific SBOM files

Signed-off-by: Flavio Castelli <[email protected]>
@flavio
Copy link
Member Author

flavio commented Dec 19, 2023

There was an updated of the "download artifact action" that simplifies things. I've updated the PR to consume this action. I've also tested the change on my fork. Everything is working fine

@flavio flavio merged commit a94c44e into KWasm:main Dec 19, 2023
4 checks passed
@flavio flavio deleted the fix-sbom-creation branch December 19, 2023 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants