Skip to content

Commit

Permalink
Add Semgrep workflow to GitHub Actions.
Browse files Browse the repository at this point in the history
Added a new Semgrep workflow file under .github/workflows to integrate static
code analysis with Semgrep into the CI/CD pipeline. This workflow is triggered
on pull requests, workflow dispatch, and pushes to the main branch. It runs on
Ubuntu 20.04 and uses the returntocorp/semgrep container.

Signed-off-by: Nikolay Martyanov <[email protected]>
  • Loading branch information
OhmSpectator committed Dec 21, 2023
1 parent a921956 commit 19d952e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/semgep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Semgrep
on:
workflow_dispatch: {}
pull_request: {}
push:
branches:
- main
paths:
- .github/workflows/semgrep.yml
jobs:
semgrep:
name: semgrep/ci
runs-on: ubuntu-20.04
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
image: returntocorp/semgrep
if: (github.actor != 'dependabot[bot]' && github.actor != 'sweep-ai[bot]')
steps:
- uses: actions/checkout@v3
- run: semgrep ci

0 comments on commit 19d952e

Please sign in to comment.