-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Split sempgrep CI into OSS and pro
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
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |