Skip to content

Commit 0c5b314

Browse files
committed
fix
1 parent 778bf54 commit 0c5b314

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

.github/workflows/codeql.yaml

+26-21
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,47 @@ on:
1010
- cron: '41 21 * * 5'
1111
workflow_dispatch:
1212

13-
# This environment is necessary to avoid the following issue
14-
# https://github.com/github/codeql/issues/6321
15-
env:
16-
CODEQL_EXTRACTOR_GO_BUILD_TRACING: 'on'
13+
permissions:
14+
security-events: write
1715

1816
jobs:
19-
analyze:
20-
name: Analyze
17+
analyze-go:
18+
name: Analyze Go
2119
runs-on: ubuntu-latest
22-
permissions:
23-
security-events: write
24-
strategy:
25-
fail-fast: false
26-
matrix:
27-
include:
28-
- language: go
29-
build-mode: none
30-
- language: javascript-typescript
31-
build-mode: autobuild
3220
steps:
3321
- uses: actions/checkout@v4
3422
- uses: actions/setup-go@v5
3523
with:
3624
go-version: '1.23'
37-
if: ${{ matrix.language == 'go' }}
3825
- uses: github/codeql-action/init@v3
3926
with:
4027
config-file: ./.github/codeql/codeql-config.yaml
41-
languages: ${{ matrix.language }}
42-
build-mode: ${{ matrix.build-mode }}
28+
languages: go
4329
- name: Build Go sources
4430
run: |
4531
set -x
4632
go build -v ./cmd/actionlint
4733
GOOS=js GOARCH=wasm go build -v -o ./playground/main.wasm ./playground
48-
if: ${{ matrix.language == 'go' }}
4934
- uses: github/codeql-action/analyze@v3
5035
with:
51-
category: "/language:${{matrix.language}}"
36+
category: "/language:go"
37+
analyze-ts:
38+
name: Analyze TypeScript
39+
runs-on: ubuntu-latest
40+
defaults:
41+
run:
42+
working-directory: ./playground
43+
steps:
44+
- uses: actions/checkout@v4
45+
- uses: actions/setup-node@v4
46+
with:
47+
node-version: "lts/*"
48+
- uses: github/codeql-action/init@v3
49+
with:
50+
config-file: ./.github/codeql/codeql-config.yaml
51+
languages: javascript-typescript
52+
- name: Build playground
53+
run: make build
54+
- uses: github/codeql-action/analyze@v3
55+
with:
56+
category: "/language:javascript-typescript"

0 commit comments

Comments
 (0)