Skip to content

Commit 9b6eeb2

Browse files
committed
chore: upgrade codeql actions to v4
1 parent b785955 commit 9b6eeb2

File tree

1 file changed

+5
-48
lines changed

1 file changed

+5
-48
lines changed

.github/workflows/codeql.yml

Lines changed: 5 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: 'CodeQL'
132

143
on:
@@ -25,66 +14,34 @@ permissions:
2514
jobs:
2615
analyze:
2716
name: Analyze
28-
# Runner size impacts CodeQL analysis time. To learn more, please see:
29-
# - https://gh.io/recommended-hardware-resources-for-running-codeql
30-
# - https://gh.io/supported-runners-and-hardware-resources
31-
# - https://gh.io/using-larger-runners
32-
# Consider using larger runners for possible analysis time improvements.
3317
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
3418
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
3519
permissions:
36-
# required for all workflows
3720
security-events: write
3821

39-
# only required for workflows in private repositories
40-
actions: read
41-
contents: read
42-
4322
strategy:
4423
fail-fast: false
4524
matrix:
4625
language: ['javascript-typescript']
47-
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
48-
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
49-
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
50-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
5126

5227
steps:
5328
- name: Harden Runner
54-
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # ratchet:step-security/harden-runner@v2.13.3
29+
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # ratchet:step-security/harden-runner@v2
5530
with:
5631
egress-policy: audit
5732

5833
- name: Checkout repository
59-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # ratchet:actions/checkout@v6.0.1
34+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # ratchet:actions/checkout@v6
6035

61-
# Initializes the CodeQL tools for scanning.
6236
- name: Initialize CodeQL
63-
uses: github/codeql-action/init@267c4672a565967e4531438f2498370de5e8a98d # ratchet:github/codeql-action/init@codeql-bundle-v2.23.7
37+
uses: github/codeql-action/init@1b168cd39490f61582a9beae412bb7057a6b2c4e # ratchet:github/codeql-action/init@v4
6438
with:
6539
languages: ${{ matrix.language }}
66-
# If you wish to specify custom queries, you can do so here or in a config file.
67-
# By default, queries listed here will override any specified in a config file.
68-
# Prefix the list here with "+" to use these queries and those in the config file.
69-
70-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
71-
# If this step fails, then you should remove it and run the build manually (see below)
7240

7341
- name: Autobuild
74-
# For more 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
75-
# queries: security-extended,security-and-quality
76-
77-
uses: github/codeql-action/autobuild@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # ratchet:github/codeql-action/[email protected]
78-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
79-
80-
# If the Autobuild fails above, remove it and uncomment the following three lines.
81-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
42+
uses: github/codeql-action/autobuild@1b168cd39490f61582a9beae412bb7057a6b2c4e # ratchet:github/codeql-action/autobuild@v4
8243

83-
# - run: |
84-
# echo "Run, Build Application using script"
85-
# ./location_of_script_within_repo/buildscript.sh
8644
- name: Perform CodeQL Analysis
87-
# ℹ️ Command-line programs to run using the OS shell.
88-
uses: github/codeql-action/analyze@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # ratchet:github/codeql-action/[email protected]
45+
uses: github/codeql-action/analyze@1b168cd39490f61582a9beae412bb7057a6b2c4e # ratchet:github/codeql-action/analyze@v4
8946
with:
9047
category: '/language:${{matrix.language}}'

0 commit comments

Comments
 (0)