Skip to content

Commit 11476d4

Browse files
committed
Add job trivy
1 parent aba73df commit 11476d4

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/main.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -102,26 +102,26 @@ jobs:
102102
runs-on: self-hosted
103103
needs: [build]
104104
steps:
105-
- name: Trivy image (CRITICAL,HIGH)
106-
uses: aquasecurity/trivy-action@0.28.0
107-
with:
108-
scan-type: fs
109-
image-ref: demo-app:local
110-
format: sarif
111-
output: trivy-image.sarif
112-
ignore-unfixed: true
113-
severity: CRITICAL,HIGH
114-
- uses: github/codeql-action/upload-sarif@v3
115-
with: { sarif_file: trivy-image.sarif }
116-
117-
# - name: Trivy fs (SCA sobre el repo)
105+
# - name: Trivy image (CRITICAL,HIGH)
118106
# uses: aquasecurity/trivy-action@0.28.0
119107
# with:
120108
# scan-type: fs
121-
# scan-ref: .
109+
# image-ref: demo-app:local
122110
# format: sarif
123-
# output: trivy-fs.sarif
111+
# output: trivy-image.sarif
124112
# ignore-unfixed: true
125113
# severity: CRITICAL,HIGH
126114
# - uses: github/codeql-action/upload-sarif@v3
127-
# with: { sarif_file: trivy-fs.sarif }
115+
# with: { sarif_file: trivy-image.sarif }
116+
117+
- name: Trivy fs (SCA sobre el repo)
118+
uses: aquasecurity/trivy-action@0.28.0
119+
with:
120+
scan-type: fs
121+
scan-ref: .
122+
format: sarif
123+
output: trivy-fs.sarif
124+
ignore-unfixed: true
125+
severity: CRITICAL,HIGH
126+
- uses: github/codeql-action/upload-sarif@v3
127+
with: { sarif_file: trivy-fs.sarif }

0 commit comments

Comments
 (0)