Skip to content

Bump System.CommandLine from 2.0.0-beta7.25380.108 to 2.0.0-rc.1.2545… #586

Bump System.CommandLine from 2.0.0-beta7.25380.108 to 2.0.0-rc.1.2545…

Bump System.CommandLine from 2.0.0-beta7.25380.108 to 2.0.0-rc.1.2545… #586

name: CodeQL Scan
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- '.github/**'
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '25 4 * * 2'
permissions:
contents: read
env:
DOTNET_NOLOGO: true
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- name: 'Checkout repository'
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
persist-credentials: false
- name: 'Setup .NET SDK'
uses: actions/setup-dotnet@d4c94342e560b34958eacfc5d055d21461ed1c5d # v5.0.0
with:
dotnet-version: |
8.0.x
9.0.x
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@d3678e237b9c32a6c9bffb3315c335f976f3549f # v3.29.5
with:
languages: ${{ matrix.language }}
# We can't use autobuild because we want to restrict the build to just src folder solutions
# and avoid triggering deterministic builds and git commit based versioning
# (as GitHub workflows shallow clone by default, and that breaks the versioning.)
- run: dotnet build --configuration CodeQL /p:UseSharedCompilation=false /t:rebuild
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@d3678e237b9c32a6c9bffb3315c335f976f3549f # v3.29.5