Skip to content

Commit 923ebaa

Browse files
committed
Revert testing
1 parent 1937dec commit 923ebaa

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/generate-augmented-sbom.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
- name: Download Linux ARM64 binary
3838
run: |
39-
curl -L "https://github.com/mongodb/mongodb-atlas-cli/releases/download/atlascli%2Fv${{ inputs.release_version || '1.42.2' }}/mongodb-atlas-cli_${{ inputs.release_version || '1.42.2' }}_linux_arm64.tar.gz" \
39+
curl -L "https://github.com/mongodb/mongodb-atlas-cli/releases/download/atlascli%2Fv${{ inputs.release_version }}/mongodb-atlas-cli_${{ inputs.release_version }}_linux_arm64.tar.gz" \
4040
-o release.tar.gz
4141
4242
- name: Extract binary
@@ -45,7 +45,7 @@ jobs:
4545
4646
- name: Generate PURLs from binary
4747
run: |
48-
go version -m ./mongodb-atlas-cli_${{ inputs.release_version || '1.42.2' }}_linux_arm64/bin/atlas | \
48+
go version -m ./mongodb-atlas-cli_${{ inputs.release_version }}_linux_arm64/bin/atlas | \
4949
awk '$1 == "dep" || $1 == "=>" { print "pkg:golang/" $2 "@" $3 }' | \
5050
LC_ALL=C sort > purls.txt
5151
cat purls.txt
@@ -80,19 +80,20 @@ jobs:
8080
--sbom-in "/pwd/sbom_lite.json" \
8181
--repo "${KONDUKTO_REPO}" \
8282
--branch "${KONDUKTO_BRANCH_PREFIX}-linux-arm64" \
83-
--sbom-out "/pwd/linux-amd64-augmented-sbom-v${{ inputs.release_version || '1.42.2' }}-${{ env.date }}.json"
83+
--sbom-out "/pwd/linux-amd64-augmented-sbom-v${{ inputs.release_version }}-${{ env.date }}.json"
8484
- name: Generate SSDLC report
8585
env:
8686
AUTHOR: ${{ github.actor }}
87-
VERSION: ${{ inputs.release_version || '1.42.2' }}
87+
VERSION: ${{ inputs.release_version }}
8888
AUGMENTED_SBOM_TEXT: " - See Augmented SBOM manifests (CycloneDX in JSON format):
89-
\n - This file has been provided along with this report under the name 'linux_amd64_augmented_sbom_v${{ inputs.release_version || '1.42.2' }}.json'
89+
\n - This file has been provided along with this report under the name 'linux_amd64_augmented_sbom_v${{ inputs.release_version }}.json'
9090
\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"
9191
run: ./build/package/gen-ssdlc-report.sh
9292
- name: Upload augmented SBOM as artifact
9393
uses: actions/upload-artifact@v4
9494
with:
9595
name: augmented_sbom_and_ssdlc_report
9696
path: |
97-
linux-amd64-augmented-sbom-v${{ inputs.release_version || '1.42.2' }}-${{ env.date }}.json
98-
ssdlc-compliance-${{ inputs.release_version || '1.42.2' }}-${{ env.date }}.md
97+
linux-amd64-augmented-sbom-v${{ inputs.release_version }}-${{ env.date }}.json
98+
ssdlc-compliance-${{ inputs.release_version }}-${{ env.date }}.md
99+
if-no-files-found: error

0 commit comments

Comments
 (0)