Skip to content

Commit 185b4b1

Browse files
authored
Merge pull request #2 from utilitywarehouse/update-semgrep-yml
Add semgrep.yml
2 parents 9e3e9c3 + 9f66688 commit 185b4b1

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/semgrep.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
2+
# Name of this GitHub Actions workflow.
3+
name: Semgrep
4+
5+
on:
6+
# Scan changed files in PRs (diff-aware scanning):
7+
pull_request: {}
8+
# Scan on-demand through GitHub Actions interface:
9+
workflow_dispatch: {}
10+
# Scan mainline branches and report all findings:
11+
push:
12+
branches:
13+
- main
14+
- master
15+
# Schedule the CI job (this method uses cron syntax):
16+
schedule:
17+
- cron: '30 14 * * *'
18+
# or whatever time works best for your team.
19+
20+
jobs:
21+
semgrep:
22+
# User definable name of this GitHub Actions job.
23+
name: semgrep/ci
24+
# If you are self-hosting, change the following `runs-on` value:
25+
runs-on: ubuntu-latest
26+
27+
# Skip any PR created by dependabot to avoid permission issues:
28+
if: (github.actor != 'dependabot[bot]')
29+
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
- name: Semgrep
34+
uses: utilitywarehouse/semgrep-rules/setup-semgrep@latest
35+
with:
36+
token: ${{ secrets.DEPLOY_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)