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: populate p.sbomViewFiles on deploy and mirror #2386

Merged
merged 2 commits into from Mar 19, 2024

Conversation

lucasrod16
Copy link
Member

Description

Refactoring that took place in #2223 introduced a bug on deploy where the user is not prompted to view SBOMs. This occurs because p.sbomViewFiles is not being populated correctly. This PR fixes this issue by populating p.sbomViewFiles.

Related Issue

N/A

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Other (security config, docs update, etc)

Checklist before merging

Copy link

netlify bot commented Mar 19, 2024

Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit 42a4d90
🔍 Latest deploy log https://app.netlify.com/sites/zarf-docs/deploys/65f9ca5cd51167000883794e

@lucasrod16 lucasrod16 self-assigned this Mar 19, 2024
@lucasrod16 lucasrod16 changed the title fix: populate p.sbomViewFiles on deploy and mirror fix: populate p.sbomViewFiles on deploy and mirror Mar 19, 2024
@lucasrod16 lucasrod16 marked this pull request as ready for review March 19, 2024 15:59
AustinAbro321
AustinAbro321 previously approved these changes Mar 19, 2024
Copy link
Contributor

@AustinAbro321 AustinAbro321 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Noxsios Noxsios left a comment

Choose a reason for hiding this comment

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

let's throw a require.NotContains in the init package test (or in a test we know for sure must contains SBOMs) to ensure it always has SBOMs. Not a 100% great test, but should prevent this regression in the future.

@lucasrod16
Copy link
Member Author

let's throw a require.NotContains in the init package test (or in a test we know for sure must contains SBOMs) to ensure it always has SBOMs. Not a 100% great test, but should prevent this regression in the future.

Good call. Adding that now

@Noxsios Noxsios merged commit 6d2378d into main Mar 19, 2024
23 checks passed
@Noxsios Noxsios deleted the fix-sbomViewFiles-on-deploy branch March 19, 2024 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants