Skip to content

Semgrep

Semgrep #275

Workflow file for this run

name: Semgrep
on:
pull_request: {}
push:
branches:
- main
- master
paths:
- .github/workflows/semgrep.yml
schedule:
- cron: '0 0 * * 0'
workflow_call:
permissions: read-all
jobs:
semgrep:
name: Scan
runs-on: ubuntu-24.04
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
actions: read
contents: read
container:
image: returntocorp/semgrep
if: (github.actor != 'dependabot[bot]')
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v1
with:
egress-policy: audit
disable-telemetry: false
allowed-endpoints:
github.com:443
semgrep.dev:443
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
# Run Semgrep as CI
- run: semgrep ci
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}