diff --git a/.github/workflows/secret-scan.yml b/.github/workflows/secret-scan.yml new file mode 100644 index 0000000..0ac0931 --- /dev/null +++ b/.github/workflows/secret-scan.yml @@ -0,0 +1,24 @@ +name: GitLeaks Security Scan + +on: + push: + branches: [ '*' ] + pull_request: + branches: [ '*' ] + +jobs: + gitleaks: + name: Secret Detection + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Run GitLeaks + uses: gitleaks/gitleaks-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}