| 1 | # Name of this GitHub Actions workflow. |
| 2 | name: Semgrep |
| 3 | |
| 4 | on: |
| 5 | pull_request: {} |
| 6 | |
| 7 | jobs: |
| 8 | semgrep: |
| 9 | name: Scan |
| 10 | runs-on: ubuntu-latest |
| 11 | container: |
| 12 | image: returntocorp/semgrep |
| 13 | # Skip any PR created by dependabot to avoid permission issues |
| 14 | if: (github.actor != 'dependabot[bot]') |
| 15 | steps: |
| 16 | - uses: actions/checkout@v6 |
| 17 | |
| 18 | - run: semgrep ci |
| 19 | env: |
| 20 | SEMGREP_RULES: p/default p/golang p/secrets |