Update SBOM-gen add artifact upload + bugfix (#6779)

This commit is contained in:
Erik Bershel
2022-12-15 19:02:05 +01:00
committed by GitHub
parent 9c544f4701
commit ad0880f33b

View File

@@ -19,7 +19,7 @@ jobs:
version-check:
runs-on: ${{ github.event.client_payload.agentSpec }}
steps:
- name: Available image version check
- name: Available image version check for ${{ github.event.client_payload.ReleaseBranchName }}
run: |
if ($env:ImageVersion -ne '${{ github.event.client_payload.imageVersion }}') {
throw "Current runner $env:ImageVersion image version don't match ${{ github.event.client_payload.imageVersion }}."
@@ -49,6 +49,12 @@ jobs:
#Preparing artifact (raw SBOM.json is too big)
- name: Compress SBOM file
run: Compress-Archive sbom.json sbom.json.zip
#Upload artifact action
- uses: actions/upload-artifact@v3
with:
name: sbom-${{ github.event.client_payload.ReleaseBranchName }}
path: sbom.json.zip
if-no-files-found: warn
#Upload release asset action
#Might be changed to softprops/action-gh-release after additional check
- name: Upload release asset