Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/semgrep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Adapted from https://semgrep.dev/docs/semgrep-ci/sample-ci-configs
# Name of this GitHub Actions workflow.
name: Semgrep CE scan

on:
# Scan changed files in PRs (diff-aware scanning):
- pull_request

permissions:
contents: read

jobs:
semgrep:
name: semgrep/scan

container:
# A Docker image with Semgrep installed. Do not change this.
image: semgrep/semgrep

# Skip any PR created by dependabot to avoid permission issues:
if: (github.actor != 'dependabot[bot]')

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Semgrep
run: semgrep ci --config auto --sarif-output=semgrep.sarif
- name: Upload SARIF results
if: failure()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: semgrep.sarif