Skip to content

CLOUDP-315270: Generate SSDLC report with augmented SBOM on-demand #3916

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

cveticm
Copy link
Collaborator

@cveticm cveticm commented May 27, 2025

Proposed changes

Successful run of augment sbom action.

Verifying changes to report script and template do not effect update-ssdlc-report workflow.

Jira ticket: CLOUDP-315270

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
  • I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
  • I have updated test/README.md (if an e2e test has been added)
  • I have run make fmt and formatted my code

@cveticm cveticm marked this pull request as ready for review May 27, 2025 15:11
@cveticm cveticm requested a review from a team as a code owner May 27, 2025 15:11
@cveticm cveticm marked this pull request as draft May 27, 2025 15:12
@cveticm cveticm force-pushed the CLOUDP-315270_generate_augmented_sbom_and_report branch from df320bb to de75701 Compare May 28, 2025 14:54
cveticm added 2 commits May 28, 2025 16:33
Fixes sbom file name
@cveticm cveticm force-pushed the CLOUDP-315270_generate_augmented_sbom_and_report branch from ea89146 to 923ebaa Compare May 28, 2025 15:34
VERSION: ${{ inputs.release_version }}
AUGMENTED_SBOM_TEXT: " - See Augmented SBOM manifests (CycloneDX in JSON format):
\n - This file has been provided along with this report under the name 'linux_amd64_augmented_sbom_v${{ inputs.release_version }}.json'
\n - Please note that this file was generated on ${{ env.date }} and may not reflect the latest security information of all third party dependencies.\n"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Looking for reviewers' opinions on this:

I have the date the augmented SBOM is generated in the report as well as including the date in the file names of the report and augmented sbom.

Do you think this is sufficient to flag to the reader that this file can become out-of-date?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think so, but I'm OK with keeping this note.

@cveticm cveticm marked this pull request as ready for review May 28, 2025 15:41
@cveticm cveticm requested a review from a team as a code owner May 28, 2025 15:41
@@ -18,7 +18,7 @@ Overview:
- **Dependency Information**
- See SBOM Lite manifests (CycloneDX in JSON format):
- https://github.com/mongodb/mongodb-atlas-cli/releases/download/atlascli%2Fv${VERSION}/sbom.json
Copy link
Collaborator

Choose a reason for hiding this comment

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

[Q] Should we keep the Release sbom for the on-demand report? If not, we can update the script + template to display the right depending if its triggered or not

From the current example we generate this:

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, will rework the script to only print sbom lite for release and only aug sbom for on-demand

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done, replaces variable AUGMENTED_SBOM_TEXT string with AUGMENTED_REPORT bool which is then used to determine of the report refers to sbom lite in release or augmented sbom.
Has the added bonus of making more clear how variable change is the report is augmented.

VERSION: ${{ inputs.release_version }}
AUGMENTED_SBOM_TEXT: " - See Augmented SBOM manifests (CycloneDX in JSON format):
\n - This file has been provided along with this report under the name 'linux_amd64_augmented_sbom_v${{ inputs.release_version }}.json'
\n - Please note that this file was generated on ${{ env.date }} and may not reflect the latest security information of all third party dependencies.\n"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think so, but I'm OK with keeping this note.

@cveticm cveticm force-pushed the CLOUDP-315270_generate_augmented_sbom_and_report branch from a2a1a60 to 958392e Compare May 29, 2025 12:09
@cveticm cveticm requested a review from blva May 29, 2025 12:13
Copy link
Contributor

Coverage Report 📈

Branch Commit Coverage
master e2f1531 25.1%
CLOUDP-315270_generate_augmented_sbom_and_report aa13ec2 25.1%
Difference 0%

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