Commit b7c0ebdf authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

fix(ci): use alpine:latest with git for secret-scan

alpine/git has git as ENTRYPOINT, breaking sh-based script execution.
Use alpine:latest and install git via apk instead.
parent ff6c75f5
Loading
Loading
Loading
Loading
Loading
+3 −1
Changes for .gitlab-ci.yml: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -26,7 +26,9 @@ cache:

secret-scan:
  stage: lint
  image: alpine/git:2.49.0
  image: alpine:latest
  before_script:
    - apk add --no-cache git
  script:
    - |
      if git grep -nE 'g[l]pat-|g[h]p_|github_[p]at_' -- . ':!ansible/secrets.example.yml'; then