Shubham rag fix #71
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Secret Scanning | |
| # ============================================================================= | |
| # Gitleaks Secret Scanning Workflow | |
| # | |
| # Scans every push to main and every pull request for leaked secrets, | |
| # API keys, tokens, and internal URLs. Uses the project-level | |
| # .gitleaks.toml for RunAnywhere-specific patterns on top of gitleaks' | |
| # built-in detectors. | |
| # ============================================================================= | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| secret-scan: | |
| name: Gitleaks Secret Scan | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run Gitleaks | |
| uses: gitleaks/gitleaks-action@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITLEAKS_CONFIG: .gitleaks.toml |