Update SBOM workflow to use syft with bash shell for macOS (#7322)
This commit is contained in:
@@ -46,6 +46,7 @@ jobs:
|
|||||||
- name: Run SYFT on macOS
|
- name: Run SYFT on macOS
|
||||||
if: ${{ runner.os == 'macOS' }}
|
if: ${{ runner.os == 'macOS' }}
|
||||||
run: syft dir:/ -vv -o spdx-json=sbom.json --exclude ./Users --exclude ./System/Volumes --exclude ./private
|
run: syft dir:/ -vv -o spdx-json=sbom.json --exclude ./Users --exclude ./System/Volumes --exclude ./private
|
||||||
|
shell: bash
|
||||||
#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
|
||||||
|
|||||||
Reference in New Issue
Block a user