Skip to content

Commit 75ff45c

Browse files
authored
Merge pull request #49 from FlowFuse/ci-enable-sast-scan
ci: Enable SAST
2 parents 1868db7 + 44311d4 commit 75ff45c

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

.github/.trivyignore.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Trivy ignore file
2+
# Add patterns to ignore specific vulnerabilities

.github/trivy.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Trivy Security Scanner Configuration
2+
# Documentation: https://aquasecurity.github.io/trivy/latest/docs/configuration/
3+
4+
scan:
5+
scanners:
6+
- vuln
7+
- secret
8+
9+
skip-dirs:
10+
- node_modules
11+
- .git
12+
- coverage
13+
- ci
14+
15+
severity:
16+
- CRITICAL
17+
- HIGH
18+
- MEDIUM
19+
- LOW
20+
21+
pkg:
22+
types:
23+
- os
24+
- library
25+
include-dev-deps: true
26+
27+
format: "sarif"
28+
ignorefile: ".github/.trivyignore.yaml"
29+
exit-code: 0

.github/workflows/sast-scan.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: SAST Scan
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
scan:
18+
name: SAST Scan
19+
uses : flowfuse/github-actions-workflows/.github/workflows/[email protected]

0 commit comments

Comments
 (0)