Commit 07d7a80c authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

ci(trivy): skip trivy scan on feature branches

parent 08252f91
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -61,7 +61,6 @@ scan-images:
  stage: codegen
  script:
    - ./scan-images.sh
  allow_failure: true
  artifacts:
    when: always
    paths:
@@ -69,6 +68,14 @@ scan-images:
      - docs/secu/
    # reports:
    #   container_scanning: "reports/trivy-*.gitlab.json"
  rules:
    # on prod branch: auto & allow failure
    - if: '$CI_COMMIT_REF_NAME =~ $PROD_REF'
      allow_failure: true
    # on non-prod branch: manual
    - if: '$CI_COMMIT_REF_NAME'
      when: manual
      allow_failure: true

check-links:
  image: