fix(p0-7): run_validation default-safe output + symlink-resistant containment #1057
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 | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| scan: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: semgrep/semgrep@sha256:a3d49dc967b8534a6a76628e50c51cbfe33eb7195dc2feab1fdc0f100852c8ef | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run Semgrep | |
| run: | | |
| if [ "${{ github.event_name }}" = "pull_request" ]; then | |
| semgrep scan --config auto --error --baseline-commit ${{ github.event.pull_request.base.sha }} | |
| else | |
| semgrep scan --config auto | |
| fi | |
| env: | |
| SEMGREP_RULES: p/default |