Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
2ade8a0
Use `uploadSarif` rather than `uploadFiles` in `analyze` action
mbg Oct 14, 2025
66df0bc
Add and use `parseUserConfig`
mbg Oct 12, 2025
ac922ab
Add and validate `UserConfig` schema
mbg Oct 12, 2025
4f14649
Add additional regex to `CliConfigErrorCategory.PackCannotBeFound`
mbg Oct 12, 2025
913cd47
Add `checkExpectedLogMessages` function to `testing-utils`
mbg Oct 14, 2025
0822fb1
Log validation errors
mbg Oct 14, 2025
d7a8ae5
Include first 10 errors in exception message
mbg Oct 14, 2025
2c8f489
Add FF for config validation
mbg Oct 17, 2025
9ce56a2
Make schema for `QueryFilter` less strict
mbg Oct 17, 2025
b03dcd5
Update changelog and version after v4.30.9
github-actions[bot] Oct 17, 2025
aa0f6ea
Rebuild
github-actions[bot] Oct 17, 2025
d88a554
Merge pull request #3215 from github/mergeback/v4.30.9-to-main-16140ae1
henrymercer Oct 17, 2025
c64c407
Handle HTTP errors with `httpStatusCode` property
henrymercer Oct 20, 2025
a6b9514
Wrap API configuration errors when setting up CodeQL
henrymercer Oct 20, 2025
8c324fe
Add experimental functionality for labelling PRs by their size
henrymercer Oct 20, 2025
519594f
Update workflow name
henrymercer Oct 20, 2025
08e53be
Update .github/sizeup.yml
henrymercer Oct 20, 2025
f2f52d0
Add score for XL
henrymercer Oct 20, 2025
c13672e
Bump sizes a bit
henrymercer Oct 20, 2025
e9daf5b
Comment version that is pinned
henrymercer Oct 20, 2025
6562050
Merge pull request #3218 from github/henrymercer/pr-sizes
henrymercer Oct 20, 2025
a3ff966
Bump the npm-minor group with 5 updates
dependabot[bot] Oct 20, 2025
2357c43
Rebuild
github-actions[bot] Oct 20, 2025
53588c5
Bump actions/setup-node from 5 to 6 in /.github/workflows
dependabot[bot] Oct 20, 2025
06f31ec
Rebuild
github-actions[bot] Oct 20, 2025
bee06ec
Merge pull request #3220 from github/dependabot/github_actions/dot-gi…
mbg Oct 20, 2025
ffed63a
Merge pull request #3219 from github/dependabot/npm_and_yarn/npm-mino…
mbg Oct 20, 2025
9b0ac1c
Merge pull request #3203 from github/mbg/errors/more-user-errors
mbg Oct 20, 2025
40e2646
Require message field too
henrymercer Oct 21, 2025
e6e649a
Simplify API error checks
henrymercer Oct 21, 2025
804fc66
Merge branch 'main' into henrymercer/http-error-handling
henrymercer Oct 21, 2025
8e53c48
Merge pull request #3217 from github/henrymercer/http-error-handling
henrymercer Oct 21, 2025
79ed956
Always skip database upload if `AnalysisKind.CodeScanning` is not ena…
mbg Oct 21, 2025
0c5185d
Merge pull request #3221 from github/mbg/code-quality/skip-db-upload
mbg Oct 21, 2025
aa048ac
Merge branch 'main' into mbg/analyze/use-upload-sarif
mbg Oct 21, 2025
02b2c3a
Fix style inconsistency
mbg Oct 22, 2025
bd5f49c
Bump minimum version to 2.17.6
henrymercer Oct 22, 2025
9924f47
Add changelog note
henrymercer Oct 22, 2025
bab3f2b
Remove `sarifMergeRunsFromEqualCategory` FF
henrymercer Oct 22, 2025
3934593
Remove `analysisSummaryV2Default` FF
henrymercer Oct 22, 2025
3cd3374
Bump minor version number
henrymercer Oct 22, 2025
f88cb01
Add `AnalyzeUseNewUpload` feature
mbg Oct 22, 2025
b7c814c
Gate `uploadSarif` behind FF, use old implementation otherwise
mbg Oct 22, 2025
c98d5a9
Use `checkoutPath` and `category` constants consistently
mbg Oct 22, 2025
e5f165b
Linting: Prefer optional chaining
henrymercer Oct 22, 2025
ebd514f
Address review comments
mbg Oct 22, 2025
4bd7dfe
Merge pull request #3226 from github/henrymercer/prefer-optional-chai…
henrymercer Oct 22, 2025
4264208
Merge pull request #3206 from github/mbg/analyze/use-upload-sarif
mbg Oct 22, 2025
489ed91
Split SARIF post-processing steps from `uploadSpecifiedFiles` into a …
mbg Oct 13, 2025
6fbdd5f
Split SARIF uploading steps from `uploadSpecifiedFiles` into a function
mbg Oct 21, 2025
899bf2f
Use `postProcessSarifFiles` and `uploadProcessedFiles` in `uploadSarif`
mbg Oct 21, 2025
596de7f
Move `UploadKind` check into `uploadSarif`
mbg Oct 21, 2025
14139c9
Add test for `uploadSarif` with `upload: never`
mbg Oct 21, 2025
c2bec36
Add `post-process-output` input to `analyze` action
mbg Oct 21, 2025
12f3cfe
Write processed SARIF files if `post-process-output` input is provided
mbg Oct 21, 2025
def04c1
Add test for `uploadSarif` with output directory
mbg Oct 21, 2025
5e37670
Use `post-process-output` in PR check
mbg Oct 22, 2025
d79c0a1
Fix incomplete comment
mbg Oct 22, 2025
89d3359
Improve test name
mbg Oct 22, 2025
6f0fcbe
Rename `uploadSarif`
mbg Oct 22, 2025
8ff870a
Rename new input to `processed-sarif-path`
mbg Oct 22, 2025
aed27f7
Fix linter issue
mbg Oct 22, 2025
d1b51f0
Update API permissions warning
mbg Oct 23, 2025
e849c56
Update debug message
mbg Oct 23, 2025
40b4cdd
Update status report messages
mbg Oct 23, 2025
f48b54a
Fix fallback not being guarded by `uploadKind` check
mbg Oct 23, 2025
8376af2
Bump timeout for `analyze-action-env` test
mbg Oct 23, 2025
da64a41
Bump timeout for `analyze-action-input` test
mbg Oct 23, 2025
1c3c806
Merge pull request #3228 from github/mbg/test/timeout
mbg Oct 23, 2025
690d276
Merge branch 'main' into mbg/permission-warning
mbg Oct 23, 2025
9625890
Merge pull request #3227 from github/mbg/permission-warning
mbg Oct 23, 2025
22d29ca
Overlay: Lower size limit for overlay base databases
kaspersv Oct 22, 2025
b9cd368
Merge remote-tracking branch 'origin/main' into mbg/upload-lib/post-p…
mbg Oct 24, 2025
956c567
Merge pull request #3231 from github/kaspersv/lower-overlay-base-size…
kaspersv Oct 24, 2025
f0452d5
Consistently use "post-processing"
mbg Oct 24, 2025
710606c
Check that `outputPath` is non-empty
mbg Oct 24, 2025
d75645b
Merge pull request #3222 from github/mbg/upload-lib/post-process
mbg Oct 24, 2025
ad35676
Add `getOptionalEnvVar` function
mbg Oct 24, 2025
e576807
Merge pull request #3223 from github/henrymercer/bump-minimum
henrymercer Oct 24, 2025
1ecd563
Use `getOptionalEnvVar` in `writePostProcessedFiles`
mbg Oct 24, 2025
b843cbe
Merge pull request #3233 from github/mbg/getOptionalEnvVar
mbg Oct 24, 2025
08ada26
Add changelog entry for post-processing change
mbg Oct 24, 2025
1d36546
Merge pull request #3234 from github/mbg/changelog/post-processing
mbg Oct 24, 2025
8f11182
Update changelog for v4.31.0
github-actions[bot] Oct 24, 2025
4e94bd1
Merge pull request #3235 from github/update-v4.31.0-1d36546c1
mbg Oct 24, 2025
d3019ef
Revert "Update version and changelog for v3.30.9"
github-actions[bot] Oct 24, 2025
12c6008
Revert "Rebuild"
github-actions[bot] Oct 24, 2025
28fc48d
Merge remote-tracking branch 'origin/releases/v4' into backport-v3.31…
github-actions[bot] Oct 24, 2025
7dd1575
Update version and changelog for v3.31.0
github-actions[bot] Oct 24, 2025
9e3918e
Rebuild
github-actions[bot] Oct 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/sizeup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
labeling:
applyCategoryLabels: true
categoryLabelPrefix: "size/"

commenting:
addCommentWhenScoreThresholdHasBeenExceeded: false

sizeup:
categories:
- name: extra small
lte: 25
label:
name: XS
description: Should be very easy to review
color: 3cbf00
- name: small
lte: 100
label:
name: S
description: Should be easy to review
color: 5d9801
- name: medium
lte: 250
label:
name: M
description: Should be of average difficulty to review
color: 7f7203
- name: large
lte: 500
label:
name: L
description: May be hard to review
color: a14c05
- name: extra large
lte: 1000
label:
name: XL
description: May be very hard to review
color: c32607
- name: extra extra large
label:
name: XXL
description: May be extremely hard to review
color: e50009
ignoredFilePatterns:
- ".github/workflows/__*"
- "lib/**/*"
- "package-lock.json"
testFilePatterns:
- "**/*.test.ts"
scoring:
# This formula and the aliases below it are written in prefix notation.
# For an explanation of how this works, please see:
# https://github.com/lerebear/sizeup-core/blob/main/README.md#prefix-notation
formula: "- - + additions deletions comments whitespace"
2 changes: 1 addition & 1 deletion .github/workflows/__config-input.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/__packaging-config-inputs-js.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/__packaging-config-js.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/__packaging-inputs-js.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .github/workflows/__quality-queries.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/codescanning-config-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v5
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/label-pr-size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Label PR with size

on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited
- ready_for_review

permissions:
contents: read
pull-requests: write

jobs:
sizeup:
name: Label PR with size
runs-on: ubuntu-latest

steps:
- name: Run sizeup
uses: lerebear/sizeup-action@b7beb3dd273e36039e16e48e7bc690c189e61951 # 0.8.12
with:
token: "${{ secrets.GITHUB_TOKEN }}"
configuration-file-path: ".github/sizeup.yml"
2 changes: 1 addition & 1 deletion .github/workflows/post-release-mergeback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # ensure we have all tags and can push commits
- uses: actions/setup-node@v5
- uses: actions/setup-node@v6

- name: Update git config
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v5
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/query-filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: actions/checkout@v5

- name: Install Node.js
uses: actions/setup-node@v5
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
git config --global user.name "github-actions[bot]"

- name: Set up Node.js
uses: actions/setup-node@v5
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'npm'
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

See the [releases page](https://github.com/github/codeql-action/releases) for the relevant changes to the CodeQL CLI and language packs.

## 3.31.0 - 24 Oct 2025

- Bump minimum CodeQL bundle version to 2.17.6. [#3223](https://github.com/github/codeql-action/pull/3223)
- When SARIF files are uploaded by the `analyze` or `upload-sarif` actions, the CodeQL Action automatically performs post-processing steps to prepare the data for the upload. Previously, these post-processing steps were only performed before an upload took place. We are now changing this so that the post-processing steps will always be performed, even when the SARIF files are not uploaded. This does not change anything for the `upload-sarif` action. For `analyze`, this may affect Advanced Setup for CodeQL users who specify a value other than `always` for the `upload` input. [#3222](https://github.com/github/codeql-action/pull/3222)

## 3.30.9 - 17 Oct 2025

- Update default CodeQL bundle version to 2.23.3. [#3205](https://github.com/github/codeql-action/pull/3205)
Expand Down
8 changes: 7 additions & 1 deletion analyze/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
description: The name of the check run to add text to.
required: false
output:
description: The path of the directory in which to save the SARIF results
description: The path of the directory in which to save the SARIF results from the CodeQL CLI.
required: false
default: "../results"
upload:
Expand Down Expand Up @@ -70,6 +70,12 @@ inputs:
description: Whether to upload the resulting CodeQL database
required: false
default: "true"
post-processed-sarif-path:
description: >-
Before uploading the SARIF files produced by the CodeQL CLI, the CodeQL Action may perform some post-processing
on them. Ordinarily, these post-processed SARIF files are not saved to disk. However, if a path is provided as an
argument for this input, they are written to the specified directory.
required: false
wait-for-processing:
description: If true, the Action will wait for the uploaded SARIF to be processed before completing.
required: true
Expand Down
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export default [
"no-sequences": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"one-var": ["error", "never"],
},
},
Expand Down
Loading
Loading