semgrep #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow dogfoods Semgrep Code and Supply Chain. | |
name: semgrep | |
on: | |
# This workflow runs on 'pull_request_target' so that PRs from forks are able | |
# to run an action that uses the SEMGREP_APP_TOKEN secret | |
# Note that any modification of this file in a PR does not reflect on said PR | |
# Changes must be merged to develop first | |
pull_request_target: {} | |
push: | |
branches: | |
- develop | |
paths: | |
- .github/workflows/semgrep.yml | |
schedule: | |
# random HH:MM to avoid a load spike on GitHub Actions at 00:00 | |
- cron: "50 15 * * *" | |
jobs: | |
semgrep: | |
name: semgrep ci | |
runs-on: ubuntu-20.04 | |
container: | |
image: returntocorp/semgrep | |
env: | |
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} | |
if: (github.actor != 'dependabot[bot]') | |
steps: | |
- uses: actions/checkout@v3 | |
- run: semgrep ci |