File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Semgrep OSS scan
12on :
3+ pull_request : {}
4+ push :
5+ branches : [main, master]
26 workflow_dispatch : {}
37 schedule :
4- - cron : ' 0 4 * * *'
5- name : Semgrep config
8+ - cron : ' 0 0 15 * *'
9+ concurrency :
10+ group : semgrep-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
11+ cancel-in-progress : true
12+ permissions :
13+ contents : read
614jobs :
715 semgrep :
8- name : semgrep/ci
9- runs-on : ubuntu-latest
10- env :
11- SEMGREP_APP_TOKEN : ${{ secrets.SEMGREP_APP_TOKEN }}
12- SEMGREP_URL : https://cloudflare.semgrep.dev
13- SEMGREP_APP_URL : https://cloudflare.semgrep.dev
14- SEMGREP_VERSION_CHECK_URL : https://cloudflare.semgrep.dev/api/check-version
15- container :
16- image : returntocorp/semgrep
16+ name : semgrep-oss
17+ runs-on : ubuntu-slim
1718 steps :
18- - uses : actions/checkout@v4
19- - run : semgrep ci
19+ - uses : actions/checkout@v5
20+ with :
21+ fetch-depth : 1
22+ - id : cache-semgrep
23+ uses : actions/cache@v5
24+ with :
25+ path : ~/.local
26+ key : semgrep-1.160.0-${{ runner.os }}
27+ - if : steps.cache-semgrep.outputs.cache-hit != 'true'
28+ run : pip install --user semgrep==1.160.0
29+ - run : echo "$HOME/.local/bin" >> "$GITHUB_PATH"
30+ - run : semgrep scan --config=auto
You can’t perform that action at this time.
0 commit comments