mirror of
https://github.com/actions/runner-images.git
synced 2025-12-26 11:28:17 +08:00
Update SBOM workflow to use syft with bash shell for macOS (#7322)
This commit is contained in:
1
.github/workflows/create_sbom_report.yml
vendored
1
.github/workflows/create_sbom_report.yml
vendored
@@ -46,6 +46,7 @@ jobs:
|
||||
- name: Run SYFT on macOS
|
||||
if: ${{ runner.os == 'macOS' }}
|
||||
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)
|
||||
- name: Compress SBOM file
|
||||
run: Compress-Archive sbom.json sbom.json.zip
|
||||
|
||||
Reference in New Issue
Block a user