This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
🚨 Semgrep Analysis #290
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
--- | |
name: 🚨 Semgrep Analysis | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: ["main"] | |
schedule: | |
- cron: "28 21 * * 2" | |
permissions: | |
contents: read | |
jobs: | |
semgrep: | |
name: Evaluate code for vulnerabilities | |
runs-on: ubuntu-latest | |
container: | |
# https://semgrep.dev/docs/semgrep-ci/sample-ci-configs/#sample-github-actions-configuration-file | |
image: returntocorp/semgrep | |
# Skip any PR created by dependabot to avoid permission issues: | |
if: (github.actor != 'dependabot[bot]') | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
# Run the "semgrep ci" command on the command line of the docker image. | |
- name: Semgrep Analysis | |
run: semgrep ci |