Skip to content

Commit f03b6e5

Browse files
committed
Faster CodeQL
1 parent 82cdc89 commit f03b6e5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/codeql.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
- release/*
88
pull_request:
9+
branches:
10+
- main
11+
- release/*
912
# TODO (trask) adding this to the merge queue causes the merge queue to fail
1013
# see related issues
1114
# - https://github.com/github/codeql-action/issues/1572
@@ -20,10 +23,17 @@ permissions:
2023

2124
jobs:
2225
analyze:
26+
name: Analyze (${{ matrix.language }})
2327
permissions:
2428
contents: read
2529
actions: read # for github/codeql-action/init to get workflow details
2630
security-events: write # for github/codeql-action/analyze to upload SARIF results
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
include:
35+
- language: actions
36+
- language: javascript-typescript
2737
runs-on: ubuntu-latest
2838
steps:
2939
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -40,7 +50,7 @@ jobs:
4050
- name: Initialize CodeQL
4151
uses: github/codeql-action/init@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
4252
with:
43-
languages: java, actions
53+
languages: ${{ matrix.language }}
4454
# using "latest" helps to keep up with the latest Kotlin support
4555
# see https://github.com/github/codeql-action/issues/1555#issuecomment-1452228433
4656
tools: latest
@@ -53,3 +63,5 @@ jobs:
5363

5464
- name: Perform CodeQL analysis
5565
uses: github/codeql-action/analyze@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
66+
with:
67+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)