Skip to content

Commit

Permalink
chore: update codeql.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermelinosp authored Dec 2, 2024
1 parent 64c5cb1 commit 7a6e66f
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches: "main"

jobs:
analyze:
Expand All @@ -16,19 +14,28 @@ jobs:
fail-fast: false
matrix:
language: [ 'csharp' ]
dotnet-version: [ '9.0.x' ] # Use .NET 9

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Install dependencies
run: dotnet restore

- name: Build the project
run: dotnet build --no-restore --configuration Release

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
Expand Down

0 comments on commit 7a6e66f

Please sign in to comment.