Skip to content

Commit 48efb67

Browse files
[2024b] NO-JIRA: add(gha): trivy security scanning of sources (#1425)
* NO-JIRA: add(gha): trivy security scanning of sources * Update security.yaml --------- Co-authored-by: Jiri Daněk <[email protected]>
1 parent 0346c25 commit 48efb67

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/security.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# https://github.com/ruivieira/trustyai-explainability-python/blob/main/.github/workflows/security.yaml
2+
---
3+
name: Security
4+
"on":
5+
push:
6+
branches:
7+
- 2024b
8+
- release-2024b
9+
pull_request:
10+
workflow_dispatch:
11+
jobs:
12+
build:
13+
name: Trivy scan (fs)
14+
runs-on: ubuntu-24.04
15+
permissions:
16+
contents: read
17+
security-events: write
18+
steps:
19+
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Trivy scan
24+
uses: aquasecurity/trivy-action@dc5a429b52fcf669ce959baa2c2dd26090d2a6c4 # 0.32.0
25+
with:
26+
scan-type: 'fs'
27+
format: 'sarif'
28+
output: 'trivy-results.sarif'
29+
severity: 'MEDIUM,HIGH,CRITICAL'
30+
exit-code: '0'
31+
ignore-unfixed: false
32+
33+
- name: Update Security tab
34+
uses: github/codeql-action/upload-sarif@v3
35+
with:
36+
sarif_file: 'trivy-results.sarif'

0 commit comments

Comments
 (0)