Skip to content

Commit 2d79040

Browse files
authored
Merge pull request #2379 from github/update-v3.25.13-270a29d1c
Merge main into releases/v3
2 parents 4fa2a79 + 232a8bc commit 2d79040

File tree

100 files changed

+22244
-619
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+22244
-619
lines changed

.eslintrc.json

-71
This file was deleted.

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
44

55
Note that the only difference between `v2` and `v3` of the CodeQL Action is the node version they support, with `v3` running on node 20 while we continue to release `v2` to support running on node 16. For example `3.22.11` was the first `v3` release and is functionally identical to `2.22.11`. This approach ensures an easy way to track exactly which features are included in different versions, indicated by the minor and patch version numbers.
66

7+
## 3.25.13 - 19 Jul 2024
8+
9+
- Add `codeql-version` to outputs. [#2368](https://github.com/github/codeql-action/pull/2368)
10+
- Add a deprecation warning for customers using CodeQL version 2.13.4 and earlier. These versions of CodeQL were discontinued on 9 July 2024 alongside GitHub Enterprise Server 3.9, and will be unsupported by CodeQL Action versions 3.26.0 and later and versions 2.26.0 and later. [#2375](https://github.com/github/codeql-action/pull/2375)
11+
- If you are using one of these versions, please update to CodeQL CLI version 2.13.5 or later. For instance, if you have specified a custom version of the CLI using the 'tools' input to the 'init' Action, you can remove this input to use the default version.
12+
- Alternatively, if you want to continue using a version of the CodeQL CLI between 2.12.6 and 2.13.4, you can replace `github/codeql-action/*@v3` by `github/codeql-action/*@v3.25.13` and `github/codeql-action/*@v2` by `github/codeql-action/*@v2.25.13` in your code scanning workflow to ensure you continue using this version of the CodeQL Action.
13+
714
## 3.25.12 - 12 Jul 2024
815

916
- Improve the reliability and performance of analyzing code when analyzing a compiled language with the `autobuild` [build mode](https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages#codeql-build-modes) on GitHub Enterprise Server. This feature is already available to GitHub.com users. [#2353](https://github.com/github/codeql-action/pull/2353)

eslint.config.mjs

+149
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
// Automatically generated by running npx @eslint/migrate-config .eslintrc.json
2+
3+
import path from "node:path";
4+
import { fileURLToPath } from "node:url";
5+
6+
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
7+
import { FlatCompat } from "@eslint/eslintrc";
8+
import js from "@eslint/js";
9+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
10+
import tsParser from "@typescript-eslint/parser";
11+
import filenames from "eslint-plugin-filenames";
12+
import github from "eslint-plugin-github";
13+
import _import from "eslint-plugin-import";
14+
import noAsyncForeach from "eslint-plugin-no-async-foreach";
15+
import globals from "globals";
16+
17+
const __filename = fileURLToPath(import.meta.url);
18+
const __dirname = path.dirname(__filename);
19+
const compat = new FlatCompat({
20+
baseDirectory: __dirname,
21+
recommendedConfig: js.configs.recommended,
22+
allConfig: js.configs.all,
23+
});
24+
25+
export default [
26+
{
27+
ignores: [
28+
"**/webpack.config.js",
29+
"lib/**/*",
30+
"src/testdata/**/*",
31+
"tests/**/*",
32+
"eslint.config.mjs",
33+
".github/**/*",
34+
],
35+
},
36+
...fixupConfigRules(
37+
compat.extends(
38+
"eslint:recommended",
39+
"plugin:@typescript-eslint/recommended",
40+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
41+
"plugin:github/recommended",
42+
"plugin:github/typescript",
43+
"plugin:import/typescript",
44+
),
45+
),
46+
{
47+
plugins: {
48+
"@typescript-eslint": fixupPluginRules(typescriptEslint),
49+
filenames: fixupPluginRules(filenames),
50+
github: fixupPluginRules(github),
51+
import: fixupPluginRules(_import),
52+
"no-async-foreach": noAsyncForeach,
53+
},
54+
55+
languageOptions: {
56+
parser: tsParser,
57+
ecmaVersion: 5,
58+
sourceType: "module",
59+
60+
globals: {
61+
...globals.node,
62+
},
63+
64+
parserOptions: {
65+
project: "./tsconfig.json",
66+
},
67+
},
68+
69+
settings: {
70+
"import/resolver": {
71+
node: {
72+
moduleDirectory: ["node_modules", "src"],
73+
},
74+
75+
typescript: {},
76+
},
77+
"import/ignore": ["sinon", "uuid", "@octokit/plugin-retry"],
78+
},
79+
80+
rules: {
81+
"filenames/match-regex": ["error", "^[a-z0-9-]+(\\.test)?$"],
82+
"i18n-text/no-en": "off",
83+
84+
"import/extensions": [
85+
"error",
86+
{
87+
json: {},
88+
},
89+
],
90+
91+
"import/no-amd": "error",
92+
"import/no-commonjs": "error",
93+
"import/no-cycle": "error",
94+
"import/no-dynamic-require": "error",
95+
96+
"import/no-extraneous-dependencies": [
97+
"error",
98+
{
99+
devDependencies: true,
100+
},
101+
],
102+
103+
"import/no-namespace": "off",
104+
"import/no-unresolved": "error",
105+
"import/no-webpack-loader-syntax": "error",
106+
107+
"import/order": [
108+
"error",
109+
{
110+
alphabetize: {
111+
order: "asc",
112+
},
113+
114+
"newlines-between": "always",
115+
},
116+
],
117+
118+
"max-len": [
119+
"error",
120+
{
121+
code: 120,
122+
ignoreUrls: true,
123+
ignoreStrings: true,
124+
ignoreTemplateLiterals: true,
125+
},
126+
],
127+
128+
"no-async-foreach/no-async-foreach": "error",
129+
"no-sequences": "error",
130+
"no-shadow": "off",
131+
"@typescript-eslint/no-shadow": "error",
132+
"one-var": ["error", "never"],
133+
},
134+
},
135+
{
136+
files: ["**/*.ts", "**/*.js"],
137+
138+
rules: {
139+
"@typescript-eslint/no-explicit-any": "off",
140+
"@typescript-eslint/no-unsafe-assignment": "off",
141+
"@typescript-eslint/no-unsafe-member-access": "off",
142+
"@typescript-eslint/no-var-requires": "off",
143+
"@typescript-eslint/prefer-regexp-exec": "off",
144+
"@typescript-eslint/require-await": "off",
145+
"@typescript-eslint/restrict-template-expressions": "off",
146+
"func-style": "off",
147+
},
148+
},
149+
];

init/action.yml

+2
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ inputs:
139139
outputs:
140140
codeql-path:
141141
description: The path of the CodeQL binary used for analysis
142+
codeql-version:
143+
description: The version of the CodeQL binary used for analysis
142144
runs:
143145
using: node20
144146
main: '../lib/init-action.js'

lib/api-compatibility.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "maximumVersion": "3.14", "minimumVersion": "3.9" }
1+
{ "maximumVersion": "3.14", "minimumVersion": "3.10" }

lib/codeql.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)