Skip to content

Semgrep Scan for CodeQL #31

Semgrep Scan for CodeQL

Semgrep Scan for CodeQL #31

Workflow file for this run

# Name of this GitHub Actions workflow.
name: Semgrep Scan for CodeQL
on:
workflow_dispatch:
schedule:
- cron: '0 5 * * 1'
permissions:
# required for all workflows
security-events: write
# only required for workflows in private repositories
actions: read
contents: read
jobs:
semgrep:
# User definable name of this GitHub Actions job.
name: semgrep
# If you are self-hosting, change the following `runs-on` value:
runs-on: ubuntu-latest
container:
# A Docker image with Semgrep installed. Do not change this.
image: returntocorp/semgrep
# Skip any PR created by dependabot to avoid permission issues:
if: (github.actor != 'dependabot[bot]')
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Run Semgrep
run: semgrep scan --sarif --output=semgrep.sarif --config=p/auto --config=p/dockerfile --config=p/typescript --config=p/javascript --metrics=off --verbose
- name: Upload SARIF file for GitHub Advanced Security Dashboard
uses: github/codeql-action/upload-sarif@7f44048739d1ed01dcd72086ab991988a34a30d0 # CodeQL Bundle v2.16.1
with:
sarif_file: semgrep.sarif
if: always()