Skip to content

Commit

Permalink
PIA-1914: Add semgrep static analyzer to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kp-aldo-pedromingo committed Jun 6, 2024
1 parent b2a0c14 commit e5137c7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/semgrep.yaml
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

0 comments on commit e5137c7

Please sign in to comment.