This commit is contained in:
Michael Grote 2024-01-25 20:34:35 +01:00
parent fd311282f0
commit add939d434
4 changed files with 11 additions and 53 deletions

View File

@ -12,3 +12,14 @@ jobs:
steps:
- name: gitleaks
run: gitleaks detect --no-git --verbose --source $GITHUB_WORKSPACE
ansible-lint:
container:
image: quay.io/ansible/creator-ee
env:
VAULT-PASS: ${{ secrets.vault_pass }} # Repo-Secret
steps:
- ansible-lint --version
- echo $VAULT-PASS > ./vault-pass.yml # nach des Secret in Großschreibung
- ansible-galaxy install -r requirements.yml
- ansible-lint --force-color --format pep8

View File

@ -1,16 +0,0 @@
---
depends_on:
- gitleaks
steps:
- name: ansible-lint
image: quay.io/ansible/creator-ee
commands:
- ansible-lint --version
- echo $VAULT-PASS > ./vault-pass.yml # nach des Secret in Großschreibung
- ansible-galaxy install -r requirements.yml
- ansible-lint --force-color --format pep8
when:
event:
exclude:
- tag

View File

@ -1,10 +0,0 @@
---
steps:
gitleaks:
image: zricethezav/gitleaks:latest
commands:
- gitleaks detect --no-git --verbose --source $CI_WORKSPACE
when:
event:
exclude:
- tag

View File

@ -1,27 +0,0 @@
---
depends_on:
- gitleaks
- ansible-lint
runs_on:
- failure
skip_clone: true
steps:
- name: notify
image: registry.mgrote.net/allzweckcontainer:latest
commands:
- |
s-nail \
-s "CI: [$CI_PIPELINE_STATUS] $CI_REPO" \
-S mta=smtp://docker10.mgrote.net:1025 \
-S smtp-auth=none \
-S v15-compat \
-S from=ci@mgrote.net \
$CI_COMMIT_AUTHOR_EMAIL <<EOF
Repository: $CI_REPO
Commit: $CI_COMMIT_SHA
URL: $CI_PIPELINE_URL
URL-Git: $CI_PIPELINE_FORGE_URL
Status: $CI_PIPELINE_STATUS
EOF