mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
Update SBOM-gen add artifact upload + bugfix (#6779)
This commit is contained in:
8
.github/workflows/create_sbom_report.yml
vendored
8
.github/workflows/create_sbom_report.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
version-check:
|
version-check:
|
||||||
runs-on: ${{ github.event.client_payload.agentSpec }}
|
runs-on: ${{ github.event.client_payload.agentSpec }}
|
||||||
steps:
|
steps:
|
||||||
- name: Available image version check
|
- name: Available image version check for ${{ github.event.client_payload.ReleaseBranchName }}
|
||||||
run: |
|
run: |
|
||||||
if ($env:ImageVersion -ne '${{ github.event.client_payload.imageVersion }}') {
|
if ($env:ImageVersion -ne '${{ github.event.client_payload.imageVersion }}') {
|
||||||
throw "Current runner $env:ImageVersion image version don't match ${{ 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)
|
#Preparing artifact (raw SBOM.json is too big)
|
||||||
- name: Compress SBOM file
|
- name: Compress SBOM file
|
||||||
run: Compress-Archive sbom.json sbom.json.zip
|
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
|
#Upload release asset action
|
||||||
#Might be changed to softprops/action-gh-release after additional check
|
#Might be changed to softprops/action-gh-release after additional check
|
||||||
- name: Upload release asset
|
- name: Upload release asset
|
||||||
|
|||||||
Reference in New Issue
Block a user