Skip to content

Commit 8bc1822

Browse files
committed
feat(build): implement CodeQL pipeline
1 parent b4ffe2d commit 8bc1822

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This workflow runs CodeQL analysis for .NET (F#) projects
2+
# For more info: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/about-codeql-code-scanning
3+
4+
name: "CodeQL"
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
schedule:
12+
- cron: '0 0 * * 0'
13+
14+
jobs:
15+
analyze:
16+
name: Analyze
17+
runs-on: ubuntu-latest
18+
permissions:
19+
actions: read
20+
contents: read
21+
security-events: write
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
language: [ 'csharp' ]
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v3
32+
with:
33+
languages: ${{ matrix.language }}
34+
35+
- name: Setup .NET
36+
uses: actions/setup-dotnet@v4
37+
with:
38+
dotnet-version: '9.0.x'
39+
40+
- name: Restore dependencies
41+
run: dotnet restore
42+
43+
- name: Build
44+
run: dotnet build --no-restore --configuration Release
45+
46+
- name: Perform CodeQL Analysis
47+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)