File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change 1- name : Download the Augmented SBOM
2- description : Downloads the Augmented SBOM for the project
1+ name : Augment the SBOM
2+ description : Augments the SBOM for the project
33inputs :
4+ # no longer used
45 silk_asset_group :
56 description : The Silk Asset Group for the Project
6- required : true
7+ required : false
8+ sbom_in :
9+ description : The name of the input sbom file.
10+ default : sbom.json
711 sbom_file_name :
812 description : The name of the augmented sbom file.
913 default : cyclonedx.sbom.json
14+ kondukto_sub_project :
15+ description : The Kondukto sub-project name (appended to the branch name)
16+ required : false
1017 artifactory_image :
1118 description : Image to use for artifactory
12- default : artifactory.corp.mongodb.com/release-tools-container-registry-public-local/silkbomb:1 .0
19+ default : artifactory.corp.mongodb.com/release-tools-container-registry-public-local/silkbomb:2 .0
1320
1421runs :
1522 using : composite
1623 steps :
17- - name : Download the Augmented SBOM file to the release assets and s3 assets folders
24+ - name : Augments the SBOM file and writes it to the release assets and s3 assets folders
1825 shell : bash
1926 run : |
2027 set -eux
28+ if [ -n "${{ inputs.kondukto_sub_project }}" ]; then
29+ KONDUKTO_BRANCH="${GITHUB_REF_NAME}_${{ inputs.kondukto_sub_project }}"
30+ else
31+ KONDUKTO_BRANCH="${GITHUB_REF_NAME}"
32+ fi
2133 podman run --platform="linux/amd64" -it --rm -v ${RELEASE_ASSETS}:/pwd \
2234 --env-file=${SILKBOMB_ENVFILE} \
2335 ${{ inputs.artifactory_image }} \
24- download --silk-asset-group ${{ inputs.silk_asset_group } } --sbom-out /pwd/cyclonedx.sbom.json
36+ augment --sbom-in /pwd/ ${{ inputs.sbom_in }} --repo ${GITHUB_REPOSITORY} --branch ${KONDUKTO_BRANCH } --sbom-out /pwd/cyclonedx.sbom.json
2537 cp ${RELEASE_ASSETS}/cyclonedx.sbom.json ${S3_ASSETS}/${{ inputs.sbom_file_name }}
You can’t perform that action at this time.
0 commit comments