23 lines
576 B
YAML
23 lines
576 B
YAML
name: gitleaks
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
|
|
# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
|
|
jobs:
|
|
gitleaks:
|
|
#runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Run Gitleaks
|
|
uses: docker://zricethezav/gitleaks:v8.18.4
|
|
with:
|
|
args: detect --no-git --verbose --source ${{ github.workspace }}
|