diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..484126f --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,26 @@ +name: Secret Scanning + +on: + pull_request: + push: + branches: [main] + workflow_dispatch: + +permissions: + contents: read + pull-requests: read + +jobs: + scan: + name: Gitleaks Scan + 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 }} \ No newline at end of file