diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml new file mode 100644 index 0000000..9300c60 --- /dev/null +++ b/.github/workflows/gitleaks.yml @@ -0,0 +1,29 @@ +name: Gitleaks Scan + +on: + push + +permissions: + contents: read + pull-requests: read + +jobs: + gitleaks: + name: Run Gitleaks + runs-on: ubuntu-24.04 + steps: + - name: Checkout PR code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Run Gitleaks + uses: gitleaks/gitleaks-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.GHA_PAT }} + GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE_PUBLIC }} + GITLEAKS_ENABLE_UPLOAD_ARTIFACT: "false" + GITLEAKS_VERSION: 8.26.0 \ No newline at end of file