This commit is contained in:
Michael Grote 2024-02-06 19:47:12 +01:00
parent b1218292fd
commit 5d7486fa32

View file

@ -6,7 +6,6 @@ steps:
- gitleaks detect --no-git --verbose --source $CI_WORKSPACE - gitleaks detect --no-git --verbose --source $CI_WORKSPACE
when: when:
- evaluate: 'CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH' - evaluate: 'CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH'
- evaluate: 'CI_PIPELINE_EVENT == "pull_request"'
# when: # when:
# branch: # branch:
@ -20,9 +19,7 @@ steps:
- hadolint Dockerfile - hadolint Dockerfile
- echo $$CI_PIPELINE_EVENT - echo $$CI_PIPELINE_EVENT
when: when:
event: - evaluate: 'CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH'
exclude:
- tag
shellcheck: shellcheck:
image: "koalaman/shellcheck-alpine:latest@sha256:7b0682c5786633fc075f69852e5c7521767e8dcb512c43cf8041b022bdc98198" image: "koalaman/shellcheck-alpine:latest@sha256:7b0682c5786633fc075f69852e5c7521767e8dcb512c43cf8041b022bdc98198"
@ -34,4 +31,6 @@ steps:
shellcheck "$file_path" shellcheck "$file_path"
fi fi
done done
when:
- evaluate: 'CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH'
... ...