-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set Trivy container image scan to output to Code Scanning
- Loading branch information
1 parent
339fe4f
commit 5eb8ff5
Showing
5 changed files
with
81 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,6 @@ jobs: | |
build_alpine: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
|
@@ -53,6 +47,22 @@ jobs: | |
severity: "MEDIUM,HIGH,CRITICAL" | ||
skip-files: "/usr/bin/geckodriver,/usr/local/bin/geckodriver" | ||
|
||
- name: Upload Trivy scan results to GitHub Security | ||
uses: github/codeql-action/upload-sarif@v2 | ||
if: always() | ||
with: | ||
# Path to SARIF file relative to the root of the repository | ||
sarif_file: trivy-alpine-image-scan.sarif | ||
# Optional category for the results | ||
# Used to differentiate multiple results for one commit | ||
category: alpine-image-scan | ||
|
||
- name: Set up QEMU | ||
uses: docker/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,12 +19,6 @@ jobs: | |
build_debian: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
|
@@ -54,6 +48,22 @@ jobs: | |
vuln-type: "os,library" | ||
severity: "MEDIUM,CRITICAL,HIGH" | ||
|
||
- name: Upload Trivy scan results to GitHub Security | ||
uses: github/codeql-action/upload-sarif@v2 | ||
if: always() | ||
with: | ||
# Path to SARIF file relative to the root of the repository | ||
sarif_file: trivy-debian-image-scan.sarif | ||
# Optional category for the results | ||
# Used to differentiate multiple results for one commit | ||
category: debian-image-scan | ||
|
||
- name: Set up QEMU | ||
uses: docker/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Login to DockerHub | ||
uses: docker/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
name: Isort | ||
|
||
on: | ||
- push | ||
push: | ||
paths: | ||
- renew.py | ||
|
||
jobs: | ||
isort: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters