Skip to content

Commit

Permalink
PIA-1914: Add semgrep static analyzer to CI (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
kp-aldo-pedromingo authored Jun 6, 2024
1 parent 078beb9 commit 5e1be2a
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 5e1be2a

Please sign in to comment.