Skip to content

Commit 01e48d4

Browse files
committed
silkbomb 2.0 updates
1 parent 22d707f commit 01e48d4

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

sbom/action.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,37 @@
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
33
inputs:
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

1421
runs:
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 }}

0 commit comments

Comments
 (0)