Bump SonarAnalyzer.CSharp from 9.23.1.88495 to 9.23.2.88755 in /src in the analyzers group #86
Workflow file for this run
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: Static Code Analysis' | |
on: | |
pull_request: | |
paths: | |
- 'src/**' | |
- '!src/qodana.yml' | |
- '.github/workflows/semgrep.yml' | |
types: [opened, synchronize, reopened] | |
push: | |
branches: | |
- 'master' | |
paths: | |
- 'src/**' | |
- '!src/qodana.yml' | |
- '.github/workflows/semgrep.yml' | |
schedule: | |
- cron: '38 7 * * 0' # Random time | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
semgrep: | |
# Skip push event by dependabot to avoid permission issues. | |
if: ${{ github.actor != 'dependabot[bot]' || github.event_name != 'push' }} | |
runs-on: ubuntu-latest | |
container: | |
# A Docker image with Semgrep installed. Do not change this. | |
image: semgrep/semgrep | |
steps: | |
- name: 📥 checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: 🔬 Semgrep Scan | |
run: semgrep ci --sarif > semgrep.sarif | |
env: | |
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} | |
- name: 📊 Upload SARIF file for GitHub Advanced Security Dashboard | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: semgrep.sarif | |
if: ${{ always() }} |