security(races): serialize approval transitions with select_for_update + idempotency guard (F-027/028/029) #1022
Workflow file for this run
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: Semgrep | |
| permissions: | |
| contents: read | |
| security-events: write | |
| on: | |
| pull_request: {} | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/semgrep.yml | |
| schedule: | |
| # random HH:MM to avoid a load spike on GitHub Actions at 00:00 | |
| - cron: 0 7 * * * | |
| jobs: | |
| semgrep: | |
| name: Scan | |
| runs-on: ubuntu-24.04 | |
| container: | |
| image: returntocorp/semgrep:1.166.0 | |
| if: (github.actor != 'dependabot[bot]') | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - run: semgrep --error --config "p/cwe-top-25" --config "p/owasp-top-ten" --config "p/r2c-security-audit" |