Skip to content

Commit 7f54b7f

Browse files
committed
fix
1 parent 778bf54 commit 7f54b7f

File tree

1 file changed

+27
-17
lines changed

1 file changed

+27
-17
lines changed

.github/workflows/codeql.yaml

+27-17
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,47 @@ on:
1515
env:
1616
CODEQL_EXTRACTOR_GO_BUILD_TRACING: 'on'
1717

18+
permissions:
19+
security-events: write
20+
1821
jobs:
19-
analyze:
20-
name: Analyze
22+
analyze-go:
23+
name: Analyze Go
2124
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
3225
steps:
3326
- uses: actions/checkout@v4
3427
- uses: actions/setup-go@v5
3528
with:
3629
go-version: '1.23'
37-
if: ${{ matrix.language == 'go' }}
3830
- uses: github/codeql-action/init@v3
3931
with:
4032
config-file: ./.github/codeql/codeql-config.yaml
41-
languages: ${{ matrix.language }}
42-
build-mode: ${{ matrix.build-mode }}
33+
languages: go
4334
- name: Build Go sources
4435
run: |
4536
set -x
4637
go build -v ./cmd/actionlint
4738
GOOS=js GOARCH=wasm go build -v -o ./playground/main.wasm ./playground
48-
if: ${{ matrix.language == 'go' }}
4939
- uses: github/codeql-action/analyze@v3
5040
with:
51-
category: "/language:${{matrix.language}}"
41+
category: "/language:go"
42+
analyze-ts:
43+
name: Analyze TypeScript
44+
runs-on: ubuntu-latest
45+
defaults:
46+
run:
47+
working-directory: ./playground
48+
steps:
49+
- uses: actions/checkout@v4
50+
- uses: actions/setup-node@v4
51+
with:
52+
node-version: "lts/*"
53+
- uses: github/codeql-action/init@v3
54+
with:
55+
config-file: ./.github/codeql/codeql-config.yaml
56+
languages: javascript-typescript
57+
- name: Build playground
58+
run: make build
59+
- uses: github/codeql-action/analyze@v3
60+
with:
61+
category: "/language:javascript-typescript"

0 commit comments

Comments
 (0)