From bc6b6ca078c4adbfcba20ec7f8a32d823a00114c Mon Sep 17 00:00:00 2001 From: Jayachandhar Date: Fri, 13 Jun 2025 10:04:25 +0530 Subject: [PATCH] feat: add Gitleaks secrets scan workflow --- .github/workflows/secrets-scan.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/secrets-scan.yaml diff --git a/.github/workflows/secrets-scan.yaml b/.github/workflows/secrets-scan.yaml new file mode 100644 index 0000000..7ba0135 --- /dev/null +++ b/.github/workflows/secrets-scan.yaml @@ -0,0 +1,27 @@ +name: Secrets Scan + +on: + pull_request: + types: [opened, synchronize, reopened] + branches: + - master + push: + branches: + - master + +jobs: + secrets-scan: + 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_KEY }} + GITLEAKS_NOTIFY_USER_LIST: ${{ vars.GITLEAKS_NOTIFY_USER_LIST }} + GITLEAKS_ENABLE_COMMENTS: 'true' + GITLEAKS_ENABLE_UPLOAD_ARTIFACT: 'false' +