Skip to content

Commit e1397ae

Browse files
authored
Merge pull request #32 from PostHog/tom/fix-semgrep
fix: unable to use custom semgrep rules
2 parents 6520d79 + a1008ce commit e1397ae

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/semgrep.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v6
2323

24+
- name: Checkout .github repo (for custom semgrep rules)
25+
uses: actions/checkout@v6
26+
with:
27+
repository: PostHog/.github
28+
path: dotgithub-repo
29+
sparse-checkout: .semgrep
30+
2431
- name: Check for .github directory
2532
id: check
2633
run: |
@@ -32,7 +39,7 @@ jobs:
3239
if: steps.check.outputs.exists == 'true'
3340
run: |
3441
semgrep \
35-
--config ".semgrep/rules/" \
42+
--config "dotgithub-repo/.semgrep/rules/" \
3643
--config "p/owasp-top-ten" \
3744
--config "p/security-audit" \
3845
--config "p/trailofbits" \

0 commit comments

Comments
 (0)