From 41670489adab83478a641080563be2d44f8763b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Charbonnel?= Date: Mon, 18 Dec 2023 11:35:53 +0100 Subject: [PATCH] Add Aqua scanner on PR. --- .github/workflows/aqua.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/aqua.yml diff --git a/.github/workflows/aqua.yml b/.github/workflows/aqua.yml new file mode 100644 index 0000000..352d50c --- /dev/null +++ b/.github/workflows/aqua.yml @@ -0,0 +1,30 @@ +name: Aqua +on: + pull_request: + branches: + - main + +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)