Skip to content

Commit 76dea4e

Browse files
authored
Update semgrep.yml
1 parent e1bfb07 commit 76dea4e

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/semgrep.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,12 @@ permissions:
1919

2020
jobs:
2121
semgrep:
22-
# User definable name of this GitHub Actions job.
2322
name: semgrep-oss/scan
24-
# If you are self-hosting, change the following `runs-on` value:
2523
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:
3224
if: (github.actor != 'dependabot[bot]')
33-
3425
steps:
35-
# Fetch project source with GitHub Actions Checkout. Use either v3 or v4.
3626
- 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

0 commit comments

Comments
 (0)