Skip to content

Commit 9529342

Browse files
committed
fix sempgrep job
1 parent 677c35e commit 9529342

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/release.yml

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ jobs:
5656
steps:
5757
- uses: actions/checkout@v4
5858
- run: semgrep ci --config "p/ci" --config "p/python" --config "p/owasp-top-ten" --sarif --output=semgrep.sarif
59+
env:
60+
# Connect to Semgrep Cloud Platform through your SEMGREP_APP_TOKEN.
61+
# Generate a token from Semgrep Cloud Platform > Settings
62+
# and add it to your GitHub secrets.
63+
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
5964
release:
6065
needs: [test, checkov, codeql, semgrep]
6166
runs-on: ubuntu-latest

.github/workflows/semgrep.yml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
semgrep:
2828
name: scan
2929
runs-on: ubuntu-latest
30+
defaults:
31+
run:
32+
working-directory: src
3033
container:
3134
image: semgrep/semgrep
3235
steps:

0 commit comments

Comments
 (0)