Skip to content

Commit

Permalink
update: disable sbom on windows
Browse files Browse the repository at this point in the history
	- seems it could not find the image it built from previou step
  • Loading branch information
zdtsw committed Aug 18, 2022
1 parent 0169222 commit a6ce50d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ jobs:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
steps:
# - name: Enable WSL on Windows for sbom
# if: runner.os == 'Windows'
# uses: Vampire/setup-wsl@v1
# with:
# distribution: Alpine
- uses: actions/checkout@v3
- name: Prepare Environment
run: ${{ matrix.runs.prepare }}
Expand All @@ -61,13 +66,14 @@ jobs:
format: 'sarif'
output: 'scan_dockerimage_result.sarif'
severity: 'CRITICAL,HIGH'
- name: Upload Trivy scan results to GitHub Security tab
- name: Upload Trivy scan results to GitHub Security tab for Linux
if: steps.scan.conclusion == 'success'
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'scan_dockerimage_result.sarif'
- name: Generate SBOM
- name: Generate SBOM for Linux
uses: anchore/sbom-action@v0
if: steps.scan.conclusion == 'success'
with:
image: '${{ matrix.meta.entries[0].tags[0] }}'
format: 'cyclonedx-json'
Expand Down

0 comments on commit a6ce50d

Please sign in to comment.