|
10 | 10 | - cron: '41 21 * * 5'
|
11 | 11 | workflow_dispatch:
|
12 | 12 |
|
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 |
17 | 15 |
|
18 | 16 | jobs:
|
19 |
| - analyze: |
20 |
| - name: Analyze |
| 17 | + analyze-go: |
| 18 | + name: Analyze Go |
21 | 19 | 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 |
32 | 20 | steps:
|
33 | 21 | - uses: actions/checkout@v4
|
34 | 22 | - uses: actions/setup-go@v5
|
35 | 23 | with:
|
36 | 24 | go-version: '1.23'
|
37 |
| - if: ${{ matrix.language == 'go' }} |
38 | 25 | - uses: github/codeql-action/init@v3
|
39 | 26 | with:
|
40 | 27 | config-file: ./.github/codeql/codeql-config.yaml
|
41 |
| - languages: ${{ matrix.language }} |
42 |
| - build-mode: ${{ matrix.build-mode }} |
| 28 | + languages: go |
43 | 29 | - name: Build Go sources
|
44 | 30 | run: |
|
45 | 31 | set -x
|
46 | 32 | go build -v ./cmd/actionlint
|
47 | 33 | GOOS=js GOARCH=wasm go build -v -o ./playground/main.wasm ./playground
|
48 |
| - if: ${{ matrix.language == 'go' }} |
49 | 34 | - uses: github/codeql-action/analyze@v3
|
50 | 35 | 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