-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from alma/security/enable_scan_on_pr_develop
[Security] Enable Vulnerability scanner on PR targeting develop
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Aqua | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
|
||
jobs: | ||
aqua: | ||
name: Aqua scanner | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Aqua scanner | ||
uses: docker://aquasec/aqua-scanner | ||
with: | ||
args: trivy fs --sast --reachability --scanners config,vuln,secret . | ||
# To customize which severities add the following flag: --severity UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL | ||
# To enable SAST scanning, add: --sast | ||
# To enable reachability scanning, add: --reachability | ||
# To enable npm/dotnet non-lock file scanning, add: --package-json / --dotnet-proj | ||
env: | ||
AQUA_KEY: ${{ secrets.AQUA_KEY }} | ||
AQUA_SECRET: ${{ secrets.AQUA_SECRET }} | ||
GITHUB_TOKEN: ${{ github.token }} | ||
AQUA_URL: https://api.eu-1.supply-chain.cloud.aquasec.com | ||
CSPM_URL: https://eu-1.api.cloudsploit.com | ||
TRIVY_RUN_AS_PLUGIN: "aqua" | ||
# For http/https proxy configuration add env vars: HTTP_PROXY/HTTPS_PROXY, CA-CRET (path to CA certificate) |