-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (34 loc) · 1.04 KB
/
semprep.yaml
File metadata and controls
36 lines (34 loc) · 1.04 KB
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
name: Semgrep static analysis
on:
push:
pull_request:
types:
- edited
- opened
- ready_for_review
- synchronize
- reopened
merge_group:
types: [checks_requested]
jobs:
semgrep:
permissions:
contents: read
# User definable name of this GitHub Actions job.
name: semgrep-oss/scan
# If you are self-hosting, change the following `runs-on` value:
runs-on: ubuntu-latest
container:
# A Docker image with Semgrep installed. Do not change this.
image: semgrep/semgrep:1.152.0
steps:
# Fetch project source with GitHub Actions Checkout.
- uses: actions/checkout@v4
# Fetch org-wide custom Semgrep rules from the central repository.
- uses: actions/checkout@v4
with:
repository: grafana/security-github-actions
path: .semgrep-org-rules
sparse-checkout: sempgrep/custom-rules.yaml
# Run semgrep with: auto rules + org-wide shared rules
- run: semgrep scan --config auto --config .semgrep-org-rules/.semgrep/