Skip to content

Semgrep Scan for CodeQL #8

Semgrep Scan for CodeQL

Semgrep Scan for CodeQL #8

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
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 --config=p/java --metrics=off --verbose
- name: Upload SARIF file for GitHub Advanced Security Dashboard
uses: github/codeql-action/upload-sarif@97a2bfd2a3d26d458da69e548f7f859d6fca634d # CodeQL Bundle v2.16.1
with:
sarif_file: semgrep.sarif
if: always()