Skip to content

Commit 3ea43ba

Browse files
committed
ci: Update CodeQL action.
1 parent 7f2b723 commit 3ea43ba

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/codeql-analysis.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,36 @@ on:
1212

1313
jobs:
1414
analyze:
15-
name: Analyze
16-
runs-on: ubuntu-latest
15+
name: Analyze (${{ matrix.language }})
16+
# Runner size impacts CodeQL analysis time. To learn more, please see:
17+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
18+
# - https://gh.io/supported-runners-and-hardware-resources
19+
# - https://gh.io/using-larger-runners (GitHub.com only)
20+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
21+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
1722
permissions:
23+
security-events: write
24+
packages: read
1825
actions: read
1926
contents: read
20-
security-events: write
21-
2227
strategy:
2328
fail-fast: false
2429
matrix:
25-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
26-
# Using "javascript" to scan JSON and YAML files.
27-
language: [ 'javascript' ]
28-
30+
include:
31+
# We use javascript to analyze JSON and YAML files.
32+
- language: javascript-typescript
33+
build_mode: none
34+
- language: actions
35+
build_mode: none
2936
steps:
3037
- name: Checkout repository
3138
uses: actions/checkout@v4
32-
33-
# Initializes the CodeQL tools for scanning.
3439
- name: Initialize CodeQL
35-
uses: github/codeql-action/init@v3
40+
uses: github/codeql-action/init@v4
3641
with:
3742
languages: ${{ matrix.language }}
38-
# If you wish to specify custom queries, you can do so here or in a config file.
39-
# By default, queries listed here will override any specified in a config file.
40-
# Prefix the list here with "+" to use these queries and those in the config file.
41-
42-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
43-
queries: security-extended,security-and-quality
43+
build-mode: ${{ matrix.build-mode }}
4444
- name: Perform CodeQL Analysis
45-
uses: github/codeql-action/analyze@v3
45+
uses: github/codeql-action/analyze@v4
4646
with:
4747
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)