diff --git a/.github/workflows/gitleaks.yaml b/.github/workflows/gitleaks.yaml new file mode 100644 index 0000000..70bd25b --- /dev/null +++ b/.github/workflows/gitleaks.yaml @@ -0,0 +1,20 @@ +name: gitleaks +on: + pull_request: + push: + workflow_dispatch: +permissions: + contents: read + pull-requests: write +jobs: + scan: + name: gitleaks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: gitleaks/gitleaks-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}