-
Notifications
You must be signed in to change notification settings - Fork 2
74 lines (59 loc) · 1.97 KB
/
codeql-debug-test.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: "CodeQL Debug Report Test"
on:
schedule:
- cron: '34 3 * * 6'
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'javascript', 'java', 'go', 'csharp', 'python' ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
id: codeqltoolchain
uses: github/codeql-action/init@v1
with:
config-file: ".github/codeql-config-${{ matrix.language }}.yml"
languages: ${{ matrix.language }}
- name: manual build command for Java
if: ${{ matrix.language == 'java' }}
run: |
mvn clean package -DskipTests -f test-projects/acio/pom.xml
- uses: actions/setup-go@v2
if: ${{ matrix.language == 'go' }}
with:
go-version: '1.16.0'
- name: manual build command for Go
if: ${{ matrix.language == 'go' }}
run: |
cd test-projects/syncthing/
go run build.go
- name: manual build command for C#
if: ${{ matrix.language == 'csharp' }}
run: |
dotnet clean test-projects/hcl-parser/source/Octopus.CoreParsers.Hcl.sln
dotnet restore test-projects/hcl-parser/source/Octopus.CoreParsers.Hcl.sln
dotnet build --no-incremental /p:UseSharedCompilation=false test-projects/hcl-parser/source/Octopus.CoreParsers.Hcl.sln
- name: Autobuild
if: ${{ matrix.language == 'javascript' || matrix.language == 'python' }}
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
with:
skip-queries: true
- name: CodeQL Debug Report
uses: zbazztian/codeql-tools/debug@main
- name: Upload loc as a Build Artifact
uses: actions/[email protected]
with:
name: codeql-debug-report
path: codeql-debug-report