From 5916ffe0f990208d9f7e912b6668bb2ff69a8223 Mon Sep 17 00:00:00 2001 From: DK09876 Date: Tue, 10 Jun 2025 12:34:54 -0700 Subject: [PATCH] Create secret-scan.yml --- .github/workflows/secret-scan.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/secret-scan.yml 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 }}