-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 802 Bytes
/
Copy pathcodeql.yml
File metadata and controls
39 lines (33 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Semgrep
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 3 * * 1' # Every Monday at 03:00 UTC
jobs:
scan:
name: Scan PHP
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install Semgrep
run: pip install semgrep
- name: Run Semgrep
run: |
semgrep \
--config=p/php \
--config=p/wordpress \
--sarif \
--output=semgrep.sarif \
. || true
- name: Upload SARIF to GitHub Security tab
uses: github/codeql-action/upload-sarif@v4
if: always()
with:
sarif_file: semgrep.sarif