Skip to content

Commit a8eeec4

Browse files
authored
CI: CodeQL
1 parent 5ecdbfc commit a8eeec4

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "CodeQL"
2+
3+
on:
4+
#push:
5+
# branches: [ "main", "stable-*" ]
6+
#pull_request:
7+
# branches: [ "main", "stable-*" ]
8+
schedule:
9+
- cron: '38 21 * * 6'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ${{ 'windows-latest' }}
15+
timeout-minutes: ${{ 360 }}
16+
permissions:
17+
# required for all workflows
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: [ 'csharp', 'javascript-typescript' ]
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
29+
# Initializes the CodeQL tools for scanning.
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v3
32+
with:
33+
languages: ${{ matrix.language }}
34+
35+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
36+
# If this step fails, then you should remove it and run the build manually (see below)
37+
#- name: Autobuild
38+
# uses: github/codeql-action/autobuild@v3
39+
40+
- run: |
41+
echo "Run, Build Application using script"
42+
./build.ps1
43+
44+
- name: Perform CodeQL Analysis
45+
uses: github/codeql-action/analyze@v3
46+
with:
47+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)