Repository navigation
build(deps-dev): bump phpstan/phpstan from 2.2.8 to 2.3.5 #28
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| - cron: '17 4 * * 1' | |
| permissions: | |
| contents: read | |
| security-events: write | |
| jobs: | |
| semgrep: | |
| name: PHP security scan | |
| runs-on: ubuntu-latest | |
| container: | |
| image: semgrep/semgrep | |
| if: github.actor != 'dependabot[bot]' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Run Semgrep | |
| run: | | |
| semgrep scan \ | |
| --config=p/php \ | |
| --config=p/security-audit \ | |
| --config=p/owasp-top-ten \ | |
| --sarif --output=semgrep.sarif \ | |
| --error || true | |
| - name: Upload findings to Code Scanning | |
| uses: github/codeql-action/upload-sarif@v4 | |
| if: always() | |
| with: | |
| sarif_file: semgrep.sarif | |
| category: semgrep |