-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 913 Bytes
/
Copy pathcodeql.yml
File metadata and controls
34 lines (34 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: codeql
on:
push:
branches: [main]
pull_request:
schedule:
- cron: '0 4 * * 1'
permissions:
security-events: write
actions: read
contents: read
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.x'
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('**/Directory.Packages.props', '**/*.csproj') }}
restore-keys: |
nuget-${{ runner.os }}-
- uses: github/codeql-action/init@v4
with:
languages: 'csharp'
- run: dotnet build CoinGecko.sln -c Release
- uses: github/codeql-action/analyze@v4