mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Update SBOM report workflow's version-check job (#7793)
This commit is contained in:
committed by
GitHub
parent
635b6468df
commit
7d99ce2cad
7
.github/workflows/create_sbom_report.yml
vendored
7
.github/workflows/create_sbom_report.yml
vendored
@@ -20,8 +20,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Available image version check for ${{ github.event.client_payload.ReleaseBranchName }}
|
- name: Available image version check for ${{ github.event.client_payload.ReleaseBranchName }}
|
||||||
run: |
|
run: |
|
||||||
if ($env:ImageVersion -ne '${{ github.event.client_payload.imageVersion }}') {
|
$imageVersionComponents = $env:ImageVersion.Split('.')
|
||||||
throw "Current runner $env:ImageVersion image version don't match ${{ github.event.client_payload.imageVersion }}."
|
$imageMajorVersion = $imageVersionComponents[0]
|
||||||
|
$imageMinorVersion = $imageVersionComponents[1]
|
||||||
|
if ("$imageMajorVersion.$imageMinorVersion" -ne '${{ github.event.client_payload.imageVersion }}') {
|
||||||
|
throw "Current runner $imageMajorVersion.$imageMinorVersion image version doesn't match ${{ github.event.client_payload.imageVersion }}."
|
||||||
}
|
}
|
||||||
#Install and run SYFT, compress SBOM, upload it to release assets
|
#Install and run SYFT, compress SBOM, upload it to release assets
|
||||||
create-sbom:
|
create-sbom:
|
||||||
|
|||||||
Reference in New Issue
Block a user