feat(auth): adopt OAuth credentials from co-installed CLIs #345
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 SAST" | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "src/**" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "src/**" | |
| schedule: | |
| # Weekly scan (Wednesdays 06:00 UTC) | |
| - cron: "0 6 * * 3" | |
| permissions: | |
| security-events: write | |
| contents: read | |
| jobs: | |
| semgrep: | |
| name: Semgrep Rust SAST | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| container: | |
| image: semgrep/semgrep:1.144.0 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Run Semgrep | |
| run: semgrep scan --config auto --sarif --output semgrep-results.sarif src/ | |
| env: | |
| SEMGREP_RULES: >- | |
| p/rust | |
| p/secrets | |
| p/owasp-top-ten | |
| - name: Upload SARIF | |
| if: always() | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: semgrep-results.sarif | |
| category: semgrep |