Skip to content

Commit 3ad16a8

Browse files
refactor: use reusable workflow for semgrep (#387)
Updated the build-test-release workflow to use [sast-scan](https://github.com/splunk/sast-scanning) owned by product security team instead of using custom implementation. Ref: https://splunk.atlassian.net/browse/ADDON-72309
1 parent 2e10f86 commit 3ad16a8

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/build-test-release.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,10 @@ jobs:
5959
- uses: pre-commit/action@v3.0.1
6060

6161
semgrep:
62-
runs-on: ubuntu-latest
63-
name: security-sast-semgrep
6462
if: github.actor != 'dependabot[bot]'
65-
steps:
66-
- uses: actions/checkout@v4
67-
- name: Semgrep
68-
id: semgrep
69-
uses: semgrep/semgrep-action@v1
70-
with:
71-
publishToken: ${{ secrets.SEMGREP_PUBLISH_TOKEN }}
63+
uses: splunk/sast-scanning/.github/workflows/sast-scan.yml@main
64+
secrets:
65+
SEMGREP_KEY: ${{ secrets.SEMGREP_PUBLISH_TOKEN }}
7266

7367
run-unit-tests:
7468
name: test-unit ${{ matrix.python-version }}

0 commit comments

Comments
 (0)