-
Notifications
You must be signed in to change notification settings - Fork 8
PYTHON-5141 Update SBOM usage for Kondukto #73
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
Changes from 2 commits
01e48d4
3c69897
58700f3
18df4cd
d7d93c6
f479bd8
1d41cab
380ca5b
d6693fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,37 @@ | ||
| name: Download the Augmented SBOM | ||
| description: Downloads the Augmented SBOM for the project | ||
| name: Augment the SBOM | ||
| description: Augments the SBOM for the project | ||
| inputs: | ||
| # no longer used | ||
| silk_asset_group: | ||
| description: The Silk Asset Group for the Project | ||
| required: true | ||
| required: false | ||
| sbom_in_path: | ||
| description: The path of the input sbom file. | ||
| default: sbom.json | ||
| sbom_file_name: | ||
| description: The name of the augmented sbom file. | ||
| default: cyclonedx.sbom.json | ||
| kondukto_sub_project: | ||
| description: The Kondukto sub-project name (appended to the branch name) | ||
| required: false | ||
| artifactory_image: | ||
| description: Image to use for artifactory | ||
| default: artifactory.corp.mongodb.com/release-tools-container-registry-public-local/silkbomb:1.0 | ||
| default: artifactory.corp.mongodb.com/release-tools-container-registry-public-local/silkbomb:2.0 | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Download the Augmented SBOM file to the release assets and s3 assets folders | ||
| - name: Augments the SBOM file and writes it to the release assets and s3 assets folders | ||
| shell: bash | ||
| run: | | ||
| set -eux | ||
| if [ -n "${{ inputs.kondukto_sub_project }}" ]; then | ||
| KONDUKTO_BRANCH="${GITHUB_REF_NAME}_${{ inputs.kondukto_sub_project }}" | ||
|
||
| else | ||
| KONDUKTO_BRANCH="${GITHUB_REF_NAME}" | ||
| fi | ||
| podman run --platform="linux/amd64" -it --rm -v ${RELEASE_ASSETS}:/pwd \ | ||
| --env-file=${SILKBOMB_ENVFILE} \ | ||
|
||
| ${{ inputs.artifactory_image }} \ | ||
| download --silk-asset-group ${{ inputs.silk_asset_group }} --sbom-out /pwd/cyclonedx.sbom.json | ||
| augment --sbom-in /pwd/${{ inputs.sbom_in_path }} --repo ${GITHUB_REPOSITORY} --branch ${KONDUKTO_BRANCH} --sbom-out /pwd/cyclonedx.sbom.json | ||
| cp ${RELEASE_ASSETS}/cyclonedx.sbom.json ${S3_ASSETS}/${{ inputs.sbom_file_name }} | ||
Check failureCode scanning / zizmor code injection via template expansion Error
code injection via template expansion
Check failureCode scanning / zizmor code injection via template expansion Error
code injection via template expansion
Check failureCode scanning / zizmor code injection via template expansion Error
code injection via template expansion
Check failureCode scanning / zizmor code injection via template expansion Error
code injection via template expansion
Check failureCode scanning / zizmor code injection via template expansion Error
code injection via template expansion
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar w/ GHA, but I assume that removing it would be breaking