diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ccccaf2..7ec2c37 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,17 +1,13 @@ --- -# gitLab ci stages +# gitlab stages stages: - "gitleaks" - "linting" -# include jobs +# include components include: - - # code plumbing - - local: ".gitlab/gitleaks.yaml" - - # linting - component: "$CI_SERVER_FQDN/components/ansible/linting@v3.0.3" + - component: "$CI_SERVER_FQDN/components/gitleaks/gitleaks@v1.0.0" - component: "$CI_SERVER_FQDN/components/markdownlint/markdownlint@1.0.0" - component: "$CI_SERVER_FQDN/components/yamllint/yamllint@1.0.2" diff --git a/.gitlab/gitleaks.yaml b/.gitlab/gitleaks.yaml deleted file mode 100644 index b369d97..0000000 --- a/.gitlab/gitleaks.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- - -# gitleaks -gitleaks: - stage: "gitleaks" - image: - name: "ghcr.io/gitleaks/gitleaks:latest" - variables: - GIT_DEPTH: 1 - rules: - - # run only on push to default branch - - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - - when: "never" - - # start linting - script: - - "gitleaks detect --source . --verbose --redact"