Skip to content

Commit

Permalink
Create semgrep-sast.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nkalexiou authored Sep 23, 2024
1 parent 999d30b commit 890664d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/semgrep-sast.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Semgrep-SAST

on:
workflow_dispatch:
pull_request:
branches:
- '**' # Triggers on any branch for pull requests

jobs:
docker-security-scans:
name: Docker security scans
runs-on: ubuntu-latest
container:
# Use the latest Semgrep Docker image
image: returntocorp/semgrep:latest
# Skip any PR created by dependabot to avoid permission issues
if: (github.actor != 'dependabot[bot]')
steps:
# Fetch project source with GitHub Actions Checkout.
- uses: actions/checkout@v3

# Run the "semgrep ci" command on the command line of the docker image.
- run: semgrep ci
env:
SEMGREP_RULES: "p/owasp-top-ten" # more at semgrep.dev/explore

0 comments on commit 890664d

Please sign in to comment.