switch gitleaks to gitea-actions
This commit is contained in:
parent
9643d1a3f6
commit
a9b69de5ef
2 changed files with 16 additions and 8 deletions
16
.gitea/workflows/gitleaks.yaml
Normal file
16
.gitea/workflows/gitleaks.yaml
Normal file
|
@ -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 }}
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue