Skip to content

security(ci): SHA-pin GitHub Actions + add permissions blocks (F-014/F-015, CTO-4862/4863) #1001

security(ci): SHA-pin GitHub Actions + add permissions blocks (F-014/F-015, CTO-4862/4863)

security(ci): SHA-pin GitHub Actions + add permissions blocks (F-014/F-015, CTO-4862/4863) #1001

Workflow file for this run

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-20.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"