-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PIA-1914: Add semgrep static analyzer to CI (#13)
- Loading branch information
1 parent
078beb9
commit 5e1be2a
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Security / Semgrep | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
semgrep: | ||
name: Security / Semgrep | ||
runs-on: ubuntu-latest | ||
container: | ||
image: semgrep/semgrep:1.68.0 | ||
if: (github.actor != 'dependabot[bot]') | ||
steps: | ||
- name: Checkout source repository | ||
uses: actions/checkout@v4 | ||
- name: Scan with Semgrep | ||
env: | ||
# Connect to Semgrep Cloud Platform | ||
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} | ||
run: | | ||
semgrep ci \ | ||
--code \ | ||
--secrets \ | ||
--supply-chain \ | ||
--pro \ | ||
--no-suppress-errors |