Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 6aa94810 authored by Romain Hunault's avatar Romain Hunault 🚴🏻
Browse files

ci(security): add trivy fs scan job

parent d96797f9
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -148,6 +148,24 @@ secret-scan:
    paths:
      - gitleaks-junit.xml

high-critical-scan:
  image:
    name: aquasec/trivy:latest
    entrypoint: [""]
  stage: code-quality
  <<: *build_rules
  needs: []
  variables:
    TRIVY_CACHE_DIR: ".trivycache/"
  script:
    - trivy fs --severity HIGH,CRITICAL --exit-code 1 --no-progress --format template --template "@/contrib/junit.tpl" --output trivy-fs-junit.xml .
  artifacts:
    when: always
    reports:
      junit: trivy-fs-junit.xml
    paths:
      - trivy-fs-junit.xml

generate-apks:
  stage: build
  <<: *rules_publish