diff --git a/.github/workflows/gitleaks.yaml b/.github/workflows/gitleaks.yaml new file mode 100644 index 0000000..9cdad5b --- /dev/null +++ b/.github/workflows/gitleaks.yaml @@ -0,0 +1,30 @@ +name: gitleaks +on: + push: + branches: + - 'track/dev' + - 'track/test' + - 'track/prod' + - 'main' + - 'master' + pull_request: + types: + - synchronize + - opened + branches: + - 'track/dev' + - 'track/prod' + - 'main' + - 'master' +jobs: + scan: + name: gitleaks + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: gitleaks/gitleaks-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} + GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}