ci: fix ansible-lint #178

Merged
mg merged 18 commits from al into master 2024-09-13 19:31:39 +02:00
4 changed files with 33 additions and 39 deletions

View file

@ -9,7 +9,6 @@ quiet: true
exclude_paths:
- .cache/ # implicit unless exclude_paths is defined in config
- collections/
- .gitlab-ci.yml
- friedhof/
- playbooks/on-off
- playbooks/base
@ -26,5 +25,4 @@ exclude_paths:
- roles/ansible-ufw
- roles/ansible_role_gitea
- roles/ansible-role-postgresql
- .woodpecker/
- .gitea/

View file

@ -1,21 +0,0 @@
name: ansible-lint
on:
push:
branches: [ master ]
pull_request:
jobs:
ansible-lint:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: write vault-pass
run: echo ${{ secrets.VAULTPASS }} > ./vault-pass
- name: run ansible-lint
uses: docker://registry.mgrote.net/ansible-devspace:latest
with:
args: ansible-lint --force-color --format pep8 --show-relpath
# VAULTPASS ist als Secrets auf Repo-Ebene angelegt

33
.gitea/workflows/ci.yaml Normal file
View file

@ -0,0 +1,33 @@
name: ansible-lint
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
jobs:
ansible-lint:
name: Ansible Lint
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: write vault-pass
run: echo ${{ secrets.VAULTPASS }} > ./vault-pass
- name: Run ansible-lint
uses: docker://registry.mgrote.net/ansible-devspace:latest
with:
args: /home/ansible-dev/.local/bin/ansible-lint --force-color --format pep8 --show-relpath
gitleaks:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Gitleaks
uses: docker://zricethezav/gitleaks:v8.18.4
with:
args: detect --no-git --verbose --source ${{ github.workspace }}
# VAULTPASS ist als Secrets auf Repo-Ebene angelegt

View file

@ -1,16 +0,0 @@
name: gitleaks
on:
push:
branches: [ master ]
pull_request:
jobs:
gitleaks:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Gitleaks
uses: docker://zricethezav/gitleaks:v8.18.4
with:
args: detect --no-git --verbose --source ${{ github.workspace }}