Skip to content

semgrep

semgrep #998

name: semgrep
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '28 6 * * 4'
jobs:
analyze:
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v3
- run: semgrep ci --sarif --output=semgrep.sarif || true
env:
SEMGREP_RULES: p/default
- uses: github/codeql-action/upload-sarif@v2
if: always()
with:
sarif_file: semgrep.sarif