Skip to content

Update .NET SDK to 9.0.100-preview.4.24267.66 #4192

Update .NET SDK to 9.0.100-preview.4.24267.66

Update .NET SDK to 9.0.100-preview.4.24267.66 #4192

Workflow file for this run

name: code-scan
on:
push:
branches: [ main ]
pull_request:
branches:
- main
- dotnet-vnext
- dotnet-nightly
schedule:
- cron: '0 6 * * 1'
workflow_dispatch:
# HACK Disable additional code analysis as a workaround for https://github.com/dotnet/roslyn/issues/70368.
# See https://github.com/App-vNext/Polly/pull/1708 for inspiration.
env:
AnalysisMode: 'None'
EnableNETAnalyzers: 'false'
permissions:
actions: read
contents: read
jobs:
code-ql:
runs-on: ubuntu-latest
permissions:
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'csharp', 'javascript' ]
steps:
- name: Checkout repository
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Setup .NET SDK
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
if: matrix.language == 'csharp'
- name: Setup Node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '20'
- name: Get npm cache directory
id: npm-cache-dir
shell: pwsh
run: echo "dir=$(npm config get cache)" >> ${env:GITHUB_OUTPUT}
- name: Setup npm cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- name: Setup NuGet cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
if: matrix.language == 'csharp'
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props') }}
restore-keys: ${{ runner.os }}-nuget-
- name: Initialize CodeQL
uses: github/codeql-action/init@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
with:
languages: ${{ matrix.language }}
queries: security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
if: matrix.language != 'csharp'
- name: Build .NET code
if: matrix.language == 'csharp'
run: |
dotnet workload restore --skip-manifest-update --skip-sign-check
dotnet build --configuration Release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@b7cec7526559c32f1616476ff32d17ba4c59b2d6 # v3.25.5
with:
category: '/language:${{ matrix.language }}'