Skip to content

Commit e8fa969

Browse files
authored
Add Aqua scanner on PR. (#15)
1 parent 557c793 commit e8fa969

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/aqua.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Aqua
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
jobs:
8+
aqua:
9+
name: Aqua scanner
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Run Aqua scanner
16+
uses: docker://aquasec/aqua-scanner
17+
with:
18+
args: trivy fs --sast --reachability --scanners config,vuln,secret .
19+
# To customize which severities add the following flag: --severity UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL
20+
# To enable SAST scanning, add: --sast
21+
# To enable reachability scanning, add: --reachability
22+
# To enable npm/dotnet non-lock file scanning, add: --package-json / --dotnet-proj
23+
env:
24+
AQUA_KEY: ${{ secrets.AQUA_KEY }}
25+
AQUA_SECRET: ${{ secrets.AQUA_SECRET }}
26+
GITHUB_TOKEN: ${{ github.token }}
27+
AQUA_URL: https://api.eu-1.supply-chain.cloud.aquasec.com
28+
CSPM_URL: https://eu-1.api.cloudsploit.com
29+
TRIVY_RUN_AS_PLUGIN: "aqua"
30+
# For http/https proxy configuration add env vars: HTTP_PROXY/HTTPS_PROXY, CA-CRET (path to CA certificate)

0 commit comments

Comments
 (0)