From d4c7d6bfab5107a5ac79eaa425407d89bfec34b0 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 13 Sep 2024 19:31:34 +0200 Subject: [PATCH] ci: fix ansible-lint (#178) Reviewed-on: https://git.mgrote.net///mg/homeserver/pulls/178 Co-authored-by: Michael Grote Co-committed-by: Michael Grote --- .ansible-lint | 2 -- .gitea/workflows/ansible-lint.yaml | 21 ------------------- .gitea/workflows/ci.yaml | 33 ++++++++++++++++++++++++++++++ .gitea/workflows/gitleaks.yaml | 16 --------------- 4 files changed, 33 insertions(+), 39 deletions(-) delete mode 100644 .gitea/workflows/ansible-lint.yaml create mode 100644 .gitea/workflows/ci.yaml delete mode 100644 .gitea/workflows/gitleaks.yaml diff --git a/.ansible-lint b/.ansible-lint index a96bb516..b4c2cf06 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -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/ diff --git a/.gitea/workflows/ansible-lint.yaml b/.gitea/workflows/ansible-lint.yaml deleted file mode 100644 index b658a90a..00000000 --- a/.gitea/workflows/ansible-lint.yaml +++ /dev/null @@ -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 diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 00000000..d32c5d4b --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -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 diff --git a/.gitea/workflows/gitleaks.yaml b/.gitea/workflows/gitleaks.yaml deleted file mode 100644 index 9302ab56..00000000 --- a/.gitea/workflows/gitleaks.yaml +++ /dev/null @@ -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 }}