Skip to content

Commit 7fcf376

Browse files
committed
chore: merge codeql checks to run in parallel
This reduces a check and should maintain ~the same CI time.
1 parent 33c6260 commit 7fcf376

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/security.yaml

+2-14
Original file line numberDiff line numberDiff line change
@@ -27,49 +27,37 @@ concurrency:
2727
jobs:
2828
codeql:
2929
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-
3530
steps:
36-
- name: Checkout repository
37-
uses: actions/checkout@v3
31+
- uses: actions/checkout@v3
3832

3933
- name: Initialize CodeQL
4034
uses: github/codeql-action/init@v2
4135
with:
42-
languages: ${{ matrix.language }}
36+
languages: go, javascript
4337

4438
- name: Setup Go
45-
if: matrix.language == 'go'
4639
uses: actions/setup-go@v3
4740
with:
4841
go-version: "~1.19"
4942

5043
- name: Go Cache Paths
51-
if: matrix.language == 'go'
5244
id: go-cache-paths
5345
run: |
5446
echo "GOMODCACHE=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
5547
5648
- name: Go Mod Cache
57-
if: matrix.language == 'go'
5849
uses: actions/cache@v3
5950
with:
6051
path: ${{ steps.go-cache-paths.outputs.GOMODCACHE }}
6152
key: ${{ runner.os }}-release-go-mod-${{ hashFiles('**/go.sum') }}
6253

6354
# Workaround to prevent CodeQL from building the dashboard.
6455
- name: Remove Makefile
65-
if: matrix.language == 'go'
6656
run: |
6757
rm Makefile
6858
6959
- name: Perform CodeQL Analysis
7060
uses: github/codeql-action/analyze@v2
71-
with:
72-
category: "/language:${{matrix.language}}"
7361

7462
trivy:
7563
runs-on: ${{ github.repository_owner == 'coder' && 'ubuntu-latest-16-cores' || 'ubuntu-latest' }}

0 commit comments

Comments
 (0)