Skip to content

Commit 4fa5d32

Browse files
authored
Fix Aqua workflow targets, update Aqua workflow (#152)
1 parent 8a79c74 commit 4fa5d32

File tree

1 file changed

+29
-10
lines changed

1 file changed

+29
-10
lines changed

.github/workflows/aqua.yml

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,49 @@
11
name: Aqua
2+
23
on:
34
pull_request:
45
branches:
5-
- main
6+
- master
67

78
jobs:
89
aqua:
9-
name: Aqua scanner
10+
name: Code scanning
1011
runs-on: ubuntu-24.04
12+
13+
permissions:
14+
contents: read
15+
id-token: write
16+
1117
steps:
1218
- name: Checkout code
1319
uses: actions/checkout@v4
20+
with:
21+
show-progress: false
22+
23+
- name: Authenticate to Google Cloud
24+
id: gcloud-auth
25+
uses: google-github-actions/auth@v2
26+
with:
27+
token_format: access_token
28+
workload_identity_provider: projects/699052769907/locations/global/workloadIdentityPools/github-identity-pool-shared/providers/github-identity-provider-shared # yamllint disable-line
29+
service_account: [email protected]
30+
31+
- name: Authenticate to Artifact Registry
32+
uses: docker/login-action@v3
33+
with:
34+
registry: europe-docker.pkg.dev
35+
username: oauth2accesstoken
36+
password: ${{ steps.gcloud-auth.outputs.access_token }}
1437

1538
- name: Run Aqua scanner
1639
uses: docker://aquasec/aqua-scanner
17-
with:
18-
args: trivy fs --sast --reachability --scanners misconfig,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
2340
env:
2441
AQUA_KEY: ${{ secrets.AQUA_KEY }}
2542
AQUA_SECRET: ${{ secrets.AQUA_SECRET }}
2643
GITHUB_TOKEN: ${{ github.token }}
2744
AQUA_URL: https://api.eu-1.supply-chain.cloud.aquasec.com
2845
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)
46+
TRIVY_RUN_AS_PLUGIN: aqua
47+
TRIVY_DB_REPOSITORY: europe-docker.pkg.dev/lyrical-carver-335213/ghcr-remote-cache/aquasecurity/trivy-db:2
48+
with:
49+
args: trivy fs --sast --reachability --scanners misconfig,vuln,secret .

0 commit comments

Comments
 (0)