Skip to content

Commit

Permalink
Remove build from CodeQL
Browse files Browse the repository at this point in the history
Analyse C# code without building it.
  • Loading branch information
martincostello authored Jul 27, 2024
1 parent 0f6eb1e commit 02d8779
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ name: code-scan

on:
push:
branches: [ main, release/* ]
branches:
- main
- release/*
pull_request:
branches: [ main, release/* ]
branches:
- main
- release/*
- dotnet-vnext
schedule:
- cron: '0 8 * * MON'
workflow_dispatch:
Expand All @@ -30,25 +35,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup .NET SDK
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1

- name: Setup NuGet cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props') }}
restore-keys: ${{ runner.os }}-nuget-

- name: Initialize CodeQL
uses: github/codeql-action/init@5cf07d8b700b67e235fbb65cbc84f69c0cf10464 # v3.25.14
with:
build-mode: none
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@5cf07d8b700b67e235fbb65cbc84f69c0cf10464 # v3.25.14

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@5cf07d8b700b67e235fbb65cbc84f69c0cf10464 # v3.25.14
with:
category: "/language:${{ matrix.language }}"
category: '/language:${{ matrix.language }}'

0 comments on commit 02d8779

Please sign in to comment.