Skip to content

Commit a2bc23b

Browse files
authored
fix: Semgrep CI integration (#315)
Fix Semgrep CI integration
1 parent 43a0091 commit a2bc23b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/semgrep.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Semgrep
22

33
on:
44
# Scan changed files in PRs (diff-aware scanning):
5-
pull_request: {}
5+
pull_request_target: {}
66
# Scan on-demand through GitHub Actions interface:
77
workflow_dispatch: {}
88
# Scan mainline branches and report all findings:
@@ -18,8 +18,8 @@ jobs:
1818
runs-on: ubuntu-latest
1919
permissions:
2020
security-events: write
21-
contents: read
22-
actions: read
21+
# contents: read
22+
# actions: read
2323

2424
container:
2525
image: semgrep/semgrep@sha256:85f9de554201cc891c470774bb93a7f4faf41ea198ddccc34a855b53f7a51443 # v1.127.1
@@ -39,7 +39,10 @@ jobs:
3939
env:
4040
# Connect to Semgrep AppSec Platform through your SEMGREP_APP_TOKEN.
4141
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
42-
42+
# Do not check for new version
43+
SEMGREP_ENABLE_VERSION_CHECK: 0
44+
# No metrics
45+
SEMGREP_SEND_METRICS: no
4346
- name: Upload SARIF file for GitHub Advanced Security Dashboard
4447
uses: github/codeql-action/upload-sarif@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
4548
with:

0 commit comments

Comments
 (0)