Skip to content

Commit

Permalink
chore: Split sempgrep CI into OSS and pro
Browse files Browse the repository at this point in the history
At the moment, pro is failing so this is an experiment to see if we can get the OSS version working. The rules they use and the results may differ too, so it might be worth having both.
  • Loading branch information
maxmilton committed Mar 5, 2025
1 parent 8af0564 commit f437b37
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/semgrep-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4
- run: semgrep ci --sarif > semgrep.sarif
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
SEMGREP_RULES: p/default
- uses: github/codeql-action/upload-sarif@v3
if: always()
with:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/semgrep-pro-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: semgrep
on:
push:
branches: [master, next]
pull_request: {}
workflow_dispatch: {}
schedule:
- cron: "28 6 * * 4"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.head.label || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 5
container:
image: semgrep/semgrep
permissions:
actions: read
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
- run: semgrep ci --sarif > semgrep.sarif
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
- uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: semgrep.sarif

0 comments on commit f437b37

Please sign in to comment.