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

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

ci(security): add gitleaks scan job

parent 943bfdbd
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -132,6 +132,22 @@ code-security:
      - semgrep-report.json
      - semgrep-junit.xml

secret-scan:
  image:
    name: zricethezav/gitleaks:latest
    entrypoint: [""]
  stage: code-quality
  <<: *build_rules
  needs: []
  script:
    - gitleaks detect --source . --no-git --redact --exit-code 1 --report-format junit --report-path gitleaks-junit.xml
  artifacts:
    when: always
    reports:
      junit: gitleaks-junit.xml
    paths:
      - gitleaks-junit.xml

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