Skip to content

Conversation

@lucasrod16
Copy link
Contributor

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

@netlify
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
Member

@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
Contributor 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
@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

None yet

Development

Successfully merging this pull request may close these issues.

4 participants