Skip to content

Commit

Permalink
Use CodeQL in actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-jung committed May 10, 2023
1 parent 5435a69 commit 8aa87ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
type: string
workflow_dispatch:
push:
schedule: # for CodeQL
- cron: '30 4 1 * *' # on every month's first day at 4:30 UTC

env:
DOTNET_NOLOGO: true
Expand All @@ -18,6 +20,8 @@ jobs:
build:
runs-on: ubuntu-22.04
permissions:
security-events: write # for CodeQL
actions: read # for CodeQL
contents: read
steps:
- uses: actions/checkout@v3
Expand All @@ -26,10 +30,16 @@ jobs:
lfs: true
- uses: dotnet/[email protected]
id: nbgv
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: csharp
- run: dotnet restore
- run: dotnet build -c Release --no-restore
- run: dotnet pack -c Release --no-restore
- uses: actions/upload-artifact@v3
with:
name: nupkg
path: bin/Packages/Release/**/*
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

0 comments on commit 8aa87ca

Please sign in to comment.