Semgrep OSS scan #302
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 OSS scan | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "00 18 * * *" # Sets Semgrep to scan every day at 18:00 UTC. | |
workflow_dispatch: | |
permissions: | |
contents: read | |
security-events: write | |
jobs: | |
semgrep: | |
name: semgrep-oss/scan | |
runs-on: ubuntu-latest | |
container: | |
# A Docker image with Semgrep installed. Do not change this. | |
image: semgrep/semgrep | |
# Skip any PR created by dependabot/renovatebot to avoid permission issues: | |
if: (github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]') | |
steps: | |
- uses: actions/checkout@v4 | |
- id: semgrep_scan | |
run: semgrep scan --config auto --sarif > semgrep.sarif | |
- name: Upload SARIF file for GitHub Advanced Security Dashboard | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: semgrep.sarif | |
if: always() |