Skip to content

Commit 2824753

Browse files
Jonathan D.A. Jewellclaude
andcommitted
feat: add Semgrep SAST workflow for OpenSSF compliance
Adds Semgrep static analysis to satisfy SAST scorecard check. CodeQL doesn't support Scheme, Semgrep provides broader coverage. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent cf4bf1d commit 2824753

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/semgrep.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SPDX-License-Identifier: AGPL-3.0-or-later
2+
name: Semgrep SAST
3+
4+
on:
5+
push:
6+
branches: [main, master]
7+
pull_request:
8+
branches: [main, master]
9+
schedule:
10+
- cron: '0 5 * * 1'
11+
workflow_dispatch:
12+
13+
permissions: read-all
14+
15+
jobs:
16+
semgrep:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
security-events: write
20+
contents: read
21+
container:
22+
image: semgrep/semgrep
23+
steps:
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
26+
- name: Run Semgrep
27+
run: semgrep scan --sarif --output=semgrep.sarif --config=auto .
28+
env:
29+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
30+
31+
- name: Upload SARIF
32+
uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
33+
with:
34+
sarif_file: semgrep.sarif
35+
if: always()

0 commit comments

Comments
 (0)