Skip to content

Merge pull request #482 from DataDog/dependabot/pip/setuptools-75.3.0 #1081

Merge pull request #482 from DataDog/dependabot/pip/setuptools-75.3.0

Merge pull request #482 from DataDog/dependabot/pip/setuptools-75.3.0 #1081

Workflow file for this run

name: Semgrep scan
on:
push:
branches:
- main
- v*
pull_request:
branches:
- main
- v*
permissions:
contents: read
jobs:
semgrep:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
name: Scan
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep
# Skip any PR created by dependabot to avoid permission issues:
if: (github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@v4
- run: semgrep --config auto --sarif --output semgrep.sarif ./guarddog
- run: semgrep --config .github/semgrep-rules --sarif --output semgrep-custom.sarif ./guarddog
- name: Upload SARIF file for GitHub Advanced Security Dashboard
uses: github/codeql-action/upload-sarif@v3
with:
category: semgrep-builtin
sarif_file: semgrep.sarif
- name: Upload SARIF file for custom Semgrep rules for GitHub Advanced Security Dashboard
uses: github/codeql-action/upload-sarif@v3
with:
category: semgrep-custom
sarif_file: semgrep-custom.sarif