File tree 1 file changed +2
-14
lines changed
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -27,49 +27,37 @@ concurrency:
27
27
jobs :
28
28
codeql :
29
29
runs-on : ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
30
- strategy :
31
- fail-fast : false
32
- matrix :
33
- language : ["go", "javascript"]
34
-
35
30
steps :
36
- - name : Checkout repository
37
- uses : actions/checkout@v3
31
+ - uses : actions/checkout@v3
38
32
39
33
- name : Initialize CodeQL
40
34
uses : github/codeql-action/init@v2
41
35
with :
42
- languages : ${{ matrix.language }}
36
+ languages : go, javascript
43
37
44
38
- name : Setup Go
45
- if : matrix.language == 'go'
46
39
uses : actions/setup-go@v3
47
40
with :
48
41
go-version : " ~1.19"
49
42
50
43
- name : Go Cache Paths
51
- if : matrix.language == 'go'
52
44
id : go-cache-paths
53
45
run : |
54
46
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
55
47
56
48
- name : Go Mod Cache
57
- if : matrix.language == 'go'
58
49
uses : actions/cache@v3
59
50
with :
60
51
path : ${{ steps.go-cache-paths.outputs.GOMODCACHE }}
61
52
key : ${{ runner.os }}-release-go-mod-${{ hashFiles('**/go.sum') }}
62
53
63
54
# Workaround to prevent CodeQL from building the dashboard.
64
55
- name : Remove Makefile
65
- if : matrix.language == 'go'
66
56
run : |
67
57
rm Makefile
68
58
69
59
- name : Perform CodeQL Analysis
70
60
uses : github/codeql-action/analyze@v2
71
- with :
72
- category : " /language:${{matrix.language}}"
73
61
74
62
trivy :
75
63
runs-on : ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}
You can’t perform that action at this time.
0 commit comments