Skip to content

Commit

Permalink
ci(secscan): Introduce security scanning (#196)
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Seager <[email protected]>
  • Loading branch information
merkata and jnsgruk committed Aug 1, 2023
1 parent b073926 commit 523aa06
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/.trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# ignore known CVEs that are not backported before Go 1.17

CVE-2022-41721
CVE-2022-41717
CVE-2022-41723
CVE-2022-32149
4 changes: 4 additions & 0 deletions .github/trivy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
timeout: 20m
scan:
offline-scan: true
ignore-file: .github/.trivyignore
22 changes: 22 additions & 0 deletions .github/workflows/scanning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Vulnerability scanning

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
scan:
name: Scan for known vulnerabilities
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Run Github Trivy FS Action
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
scan-ref: '.'
trivy-config: .github/trivy.yaml

0 comments on commit 523aa06

Please sign in to comment.