File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -19,20 +19,12 @@ permissions:
19
19
20
20
jobs :
21
21
semgrep :
22
- # User definable name of this GitHub Actions job.
23
22
name : semgrep-oss/scan
24
- # If you are self-hosting, change the following `runs-on` value:
25
23
runs-on : ubuntu-latest
26
-
27
- container :
28
- # A Docker image with Semgrep installed. Do not change this.
29
- image : semgrep/semgrep
30
-
31
- # Skip any PR created by dependabot to avoid permission issues:
32
24
if : (github.actor != 'dependabot[bot]')
33
-
34
25
steps :
35
- # Fetch project source with GitHub Actions Checkout. Use either v3 or v4.
36
26
- uses : actions/checkout@v4
37
- # Run the "semgrep scan" command on the command line of the docker image.
38
- - run : semgrep scan --config auto --error
27
+ - name : Run Semgrep
28
+ run : |
29
+ export SEMGREP_BASELINE_REF="${{ github.base_ref }}" # For pull requests
30
+ semgrep ci --config auto --error
You can’t perform that action at this time.
0 commit comments