Skip to content

Commit

Permalink
Add Semgrep CI
Browse files Browse the repository at this point in the history
  • Loading branch information
semgrep-bot committed Aug 23, 2024
1 parent 1c3e878 commit 361307d
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
name: Semgrep Scan

on:
workflow_dispatch: {}
pull_request: {}
push:
branches: [master]
pull_request:
branches: [master]

branches:
- main
- master
paths:
- .github/workflows/semgrep.yml
schedule:
# random HH:MM to avoid a load spike on GitHub Actions at 00:00
- cron: 36 3 * * *
name: Semgrep
jobs:
semgrep:
runs-on: ubuntu-latest
name: semgrep/ci
runs-on: ubuntu-20.04
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
image: returntocorp/semgrep
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install Semgrep
run: pip install semgrep
- name: Run Semgrep
run: semgrep --config .semgrep.yml .
- uses: actions/checkout@v4
- run: semgrep ci

0 comments on commit 361307d

Please sign in to comment.