Skip to content

Semgrep

Semgrep #54

Workflow file for this run

name: Semgrep
on:
workflow_dispatch: {}
pull_request: {}
push:
branches:
- main
- master
paths:
- .github/workflows/semgrep.yml
schedule:
# randoms HH:MM to avoid a load spike on GitHub Actions at 00:00
- cron: 55 14 * * *
jobs:
semgrep_include:
strategy:
matrix:
subdir:
- cloud-devops-ci-cd-udapeople
- cloud-devops-cloudformation
- cloud-devops-operationalizing-ml
- cloud-devops-static-website
name: semgrep/ci
runs-on: ubuntu-20.04
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
SEMGREP_REPO_DISPLAY_NAME: monorepo-test--${{ matrix.subdir }}
container:
image: returntocorp/semgrep
steps:
- uses: actions/checkout@v3
- run: semgrep ci --include=${{ matrix.subdir }}
semgrep_exclude:
name: semgrep/ci
runs-on: ubuntu-20.04
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
image: returntocorp/semgrep
steps:
- uses: actions/checkout@v3
- run: semgrep ci