-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1023 Bytes
/
trivy.yml
File metadata and controls
43 lines (36 loc) · 1023 Bytes
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
name: Container Security
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
security-events: write
jobs:
trivy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Build image
run: docker build -t airlock-gateway:scan .
- name: Trivy vulnerability scan (SARIF)
uses: aquasecurity/trivy-action@v0.36.0
with:
image-ref: airlock-gateway:scan
format: sarif
output: trivy-results.sarif
severity: CRITICAL,HIGH
- name: Upload Trivy SARIF to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: trivy-results.sarif
category: trivy-container
- name: Trivy scan (table for PR review)
uses: aquasecurity/trivy-action@v0.36.0
with:
image-ref: airlock-gateway:scan
format: table
severity: CRITICAL,HIGH
exit-code: "0"