We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6520d79 + a1008ce commit e1397aeCopy full SHA for e1397ae
1 file changed
.github/workflows/semgrep.yml
@@ -21,6 +21,13 @@ jobs:
21
- name: Checkout
22
uses: actions/checkout@v6
23
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
+
31
- name: Check for .github directory
32
id: check
33
run: |
@@ -32,7 +39,7 @@ jobs:
39
if: steps.check.outputs.exists == 'true'
40
34
41
semgrep \
35
- --config ".semgrep/rules/" \
42
+ --config "dotgithub-repo/.semgrep/rules/" \
36
43
--config "p/owasp-top-ten" \
37
44
--config "p/security-audit" \
38
45
--config "p/trailofbits" \
0 commit comments