From a9b69de5ef622b7c4681017ce4b54841a8247c79 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 27 Aug 2024 21:19:51 +0200 Subject: [PATCH] switch gitleaks to gitea-actions --- .gitea/workflows/gitleaks.yaml | 16 ++++++++++++++++ .woodpecker/lint.yml | 8 -------- 2 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 .gitea/workflows/gitleaks.yaml diff --git a/.gitea/workflows/gitleaks.yaml b/.gitea/workflows/gitleaks.yaml new file mode 100644 index 0000000..9302ab5 --- /dev/null +++ b/.gitea/workflows/gitleaks.yaml @@ -0,0 +1,16 @@ +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 }} diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml index bf7074c..07402af 100644 --- a/.woodpecker/lint.yml +++ b/.woodpecker/lint.yml @@ -1,13 +1,5 @@ --- steps: - gitleaks: - image: zricethezav/gitleaks:v8.18.4 - commands: - - gitleaks detect --no-git --verbose --source $CI_WORKSPACE - when: - - event: [push, pull_request, cron] - evaluate: 'CI_COMMIT_AUTHOR_EMAIL != "renovate@mgrote.net"' - hadolint: image: pipelinecomponents/hadolint:0.26.4 commands: