Skip to content

code-scan

code-scan #3141

name: code-scan
on:
push:
branches: [ main ]
pull_request:
branches:
- main
- dotnet-vnext
- dotnet-nightly
schedule:
- cron: '0 6 * * 1'
workflow_dispatch:
permissions:
actions: read
contents: read
jobs:
code-ql:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Initialize CodeQL
uses: github/codeql-action/init@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
with:
build-mode: none
languages: csharp
queries: security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
with:
category: '/language:csharp'