mirror of
https://github.com/tommytran732/Matrix.to-Docker
synced 2024-11-22 01:51:33 -05:00
Switch Clair to Grype
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
0924408ecd
commit
7d3dd174af
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
@ -88,24 +88,23 @@ jobs:
|
|||||||
uses: github/codeql-action/upload-sarif@v3
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
with:
|
with:
|
||||||
sarif_file: 'trivy-results.sarif'
|
sarif_file: 'trivy-results.sarif'
|
||||||
category: trivy
|
category: 'trivy'
|
||||||
|
|
||||||
clair:
|
grype:
|
||||||
name: Scan current image with Clair
|
name: Scan current image with Grype
|
||||||
needs: build
|
needs: build
|
||||||
permissions:
|
permissions:
|
||||||
security-events: write
|
security-events: write
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
steps:
|
steps:
|
||||||
- name: Run Clair vulnerability scanner
|
- name: Run Grype vulnerability scanner
|
||||||
uses: quay/clair-action@main
|
uses: anchore/scan-action@v3
|
||||||
|
id: grype
|
||||||
with:
|
with:
|
||||||
image-ref: 'ghcr.io/tommytran732/matrix.to'
|
image: "ghcr.io/tommytran732/matrix.to"
|
||||||
format: sarif
|
|
||||||
output: clair_results.sarif
|
|
||||||
|
|
||||||
- name: Upload Trivy scan results to GitHub Security tab
|
- name: Upload Grype scan results to GitHub Security tab
|
||||||
uses: github/codeql-action/upload-sarif@v3
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
with:
|
with:
|
||||||
sarif_file: 'clair_results.sarif'
|
sarif_file: ${{ steps.scan.outputs.sarif }}
|
||||||
category: clair
|
category: grype
|
Loading…
Reference in New Issue
Block a user