Skip to content

Commit e282abb

Browse files
ci: synced file(s) with honestbank/.github
1 parent e069206 commit e282abb

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/trivy.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Trivy Security Scan
3+
4+
# permissions required for the action, restricting to read-only for repository contents.
5+
permissions:
6+
contents: read
7+
8+
on:
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
trivy-security-scan:
15+
name: Run Trivy Security Scan
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout Repository
20+
uses: actions/checkout@v4
21+
with:
22+
submodules: "recursive" # Ensure any submodules are included in the scan.
23+
token: ${{ secrets.ENGINEERING_GITHUB_PERSONAL_ACCESS_TOKEN }}
24+
25+
# Run Trivy Configuration Scan with specified options.
26+
- name: Run Trivy Security Scan
27+
uses: aquasecurity/[email protected]
28+
with:
29+
scan-type: 'config'
30+
trivy-config: 'trivy.yaml'

0 commit comments

Comments
 (0)