This commit is contained in:
Michael Grote 2024-02-06 19:48:55 +01:00
parent 5d7486fa32
commit 1c7c4630ee
1 changed files with 9 additions and 8 deletions

View File

@ -5,12 +5,9 @@ steps:
commands:
- gitleaks detect --no-git --verbose --source $CI_WORKSPACE
when:
- evaluate: 'CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH'
# when:
# branch:
# include: [master, master]
# exclude: [renovate/*]
branch:
include: [master, main]
exclude: [renovate/*]
hadolint:
@ -19,7 +16,9 @@ steps:
- hadolint Dockerfile
- echo $$CI_PIPELINE_EVENT
when:
- evaluate: 'CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH'
branch:
include: [master, main]
exclude: [renovate/*]
shellcheck:
image: "koalaman/shellcheck-alpine:latest@sha256:7b0682c5786633fc075f69852e5c7521767e8dcb512c43cf8041b022bdc98198"
@ -32,5 +31,7 @@ steps:
fi
done
when:
- evaluate: 'CI_PIPELINE_EVENT == "push" && CI_COMMIT_BRANCH == CI_REPO_DEFAULT_BRANCH'
branch:
include: [master, main]
exclude: [renovate/*]
...