diff --git a/.github/workflows/gitleaks-scan.yml b/.github/workflows/gitleaks-scan.yml new file mode 100644 index 0000000..1859321 --- /dev/null +++ b/.github/workflows/gitleaks-scan.yml @@ -0,0 +1,32 @@ +name: Gitleaks Secret Scanning +on: + push: + branches: [ '**' ] + pull_request: + merge_group: + +permissions: + contents: read + +jobs: + gitleaks-scan: + name: gitleaks-scan + runs-on: ubuntu-latest + timeout-minutes: 15 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: + contents: read + pull-requests: write + steps: + - name: Checkout code + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6 + with: + fetch-depth: 0 + - name: Run Gitleaks + uses: gitleaks/gitleaks-action@e0c47f4f8be36e29cdc102c57e68cb5cbf0e8d1e # v3.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE_PUBLIC }} + GITLEAKS_NOTIFY_USER_LIST: '@salemove/tm-devsec'