mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
[workflow] Update SBOM report workflow to use agentSpec + imageVersion (#13151)
This commit is contained in:
9
.github/workflows/create_sbom_report.yml
vendored
9
.github/workflows/create_sbom_report.yml
vendored
@@ -3,11 +3,10 @@ name: Create SBOM for the release
|
|||||||
# github.event.client_payload.agentSpec - Current YAML Label
|
# github.event.client_payload.agentSpec - Current YAML Label
|
||||||
# github.event.client_payload.ReleaseID - Current release ID
|
# github.event.client_payload.ReleaseID - Current release ID
|
||||||
# github.event.client_payload.imageVersion - AzDO image version "major.minor"
|
# github.event.client_payload.imageVersion - AzDO image version "major.minor"
|
||||||
# github.event.client_payload.ReleaseBranchName - Necessary to identify workflow run
|
|
||||||
#
|
#
|
||||||
# Current SYFT tool issues:
|
# Current SYFT tool issues:
|
||||||
# macOS (major): prompt privilegies that blocking process indefinetely (https://github.com/anchore/syft/issues/1367)
|
# macOS (major): prompt privileges that blocking process indefinitely (https://github.com/anchore/syft/issues/1367)
|
||||||
run-name: Collecting SBOM for ${{ github.event.client_payload.ReleaseBranchName || 'unknown release' }}
|
run-name: Collecting SBOM for ${{ github.event.client_payload.agentSpec || 'unknown image' }} - ${{ github.event.client_payload.imageVersion || 'unknown version' }}
|
||||||
on:
|
on:
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [generate-sbom]
|
types: [generate-sbom]
|
||||||
@@ -21,7 +20,7 @@ jobs:
|
|||||||
check_status: ${{ steps.check.outputs.status }}
|
check_status: ${{ steps.check.outputs.status }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check release for ${{ github.event.client_payload.ReleaseBranchName }}
|
- name: Check release for ${{ github.event.client_payload.agentSpec }}
|
||||||
id: check
|
id: check
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
@@ -46,7 +45,7 @@ jobs:
|
|||||||
if: ${{ needs.sbom-check.outputs.check_status == 'okay' }}
|
if: ${{ needs.sbom-check.outputs.check_status == 'okay' }}
|
||||||
runs-on: ${{ github.event.client_payload.agentSpec }}
|
runs-on: ${{ github.event.client_payload.agentSpec }}
|
||||||
steps:
|
steps:
|
||||||
- name: Available image version check for ${{ github.event.client_payload.ReleaseBranchName }}
|
- name: Available image version check for ${{ github.event.client_payload.agentSpec }} - ${{ github.event.client_payload.imageVersion }}
|
||||||
run: |
|
run: |
|
||||||
$imageVersionComponents = $env:ImageVersion.Split('.')
|
$imageVersionComponents = $env:ImageVersion.Split('.')
|
||||||
$imageMajorVersion = $imageVersionComponents[0]
|
$imageMajorVersion = $imageVersionComponents[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user