-
-
Notifications
You must be signed in to change notification settings - Fork 9
64 lines (57 loc) · 1.92 KB
/
vulnerabilitiesScanner.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Vulnerabilities Scanner
on: push
jobs:
deployToGitHubPages:
name: Vulnerabilities Scanner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - name: Scan fs
# run: |
# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
# aquasec/trivy fs \
# --severity HIGH,CRITICAL \
# --exit-code 1 \
# ./
- name: Scan repo
run: |
docker run --rm -v\
/var/run/docker.sock:/var/run/docker.sock \
aquasec/trivy repo \
--severity HIGH,CRITICAL \
https://github.com/guzhongren/Powerboard
- name: pwd
run: ls ../
- name: Scan config
run: |
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
aquasec/trivy fs \
--security-checks vuln,config \
--severity HIGH,CRITICAL \
./
# - name: Run Trivy vulnerability scanner in repo mode
# uses: aquasecurity/trivy-action@master
# with:
# scan-type: 'fs'
# ignore-unfixed: true
# format: 'template'
# template: '@/contrib/sarif.tpl'
# output: 'trivy-results.sarif'
# severity: '*'
# - name: Upload Trivy scan results to GitHub Security tab
# uses: github/codeql-action/upload-sarif@v1
# with:
# sarif_file: 'trivy-results.sarif'
# - name: Run Trivy vulnerability scanner in IaC mode
# uses: aquasecurity/trivy-action@master
# with:
# scan-type: 'config'
# hide-progress: false
# format: 'table'
# exit-code: '1'
# ignore-unfixed: true
# severity: 'CRITICAL,HIGH'
# - name: Upload Trivy scan results to GitHub Security tab
# uses: github/codeql-action/upload-sarif@v1
# with:
# sarif_file: 'trivy-results.sarif'