Compare commits

...
Author SHA1 Message Date
Michael B. Gale 59eef11129 Merge pull request #4369 from github/mbg/deps/2dec26
Update `ava` to `7.0.0` and update some transitive dependencies
2026-12-02 14:27:31 +00:00
Michael B. Gale 850ee97c37 Update ava to ^7.0.0 2026-12-02 14:14:55 +00:00
Michael B. Gale d4e321dbb9 Merge pull request #4368 from github/dependabot/npm_and_yarn/node-forge-1.4.4
Bump node-forge from 1.4.3 to 1.4.4
2026-12-02 12:58:02 +00:00
Michael B. Gale c072164c77 Merge branch 'main' into dependabot/npm_and_yarn/node-forge-1.4.4 2026-12-02 12:45:53 +00:00
Michael B. Gale b325c8f679 Merge pull request #4355 from github/dependabot/npm_and_yarn/npm-minor-7b67c78221
Bump the npm-minor group across 1 directory with 3 updates
2026-12-02 12:35:52 +00:00
github-actions[bot] 3a94bf46da Rebuild 2026-12-02 12:21:13 +00:00
dependabot[bot] ce127d35aa Bump node-forge from 1.4.3 to 1.4.4
Bumps [node-forge](https://github.com/digitalbazaar/forge) from 1.4.3 to 1.4.4.
- [Changelog](https://github.com/digitalbazaar/forge/blob/main/CHANGELOG.md)
- [Commits](https://github.com/digitalbazaar/forge/compare/v1.4.3...v1.4.4)

---
updated-dependencies:
- dependency-name: node-forge
  dependency-version: 1.4.4
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-12-02 12:18:07 +00:00
Michael B. Gale 6d2038c23d Merge pull request #4359 from github/update-supported-enterprise-server-versions
Update supported GitHub Enterprise Server versions
2026-12-02 12:08:43 +00:00
Michael B. Gale b36689e70c Merge branch 'main' into dependabot/npm_and_yarn/npm-minor-7b67c78221 2026-12-02 11:50:14 +00:00
Michael B. Gale 3390e9dd7f Merge pull request #4356 from github/dependabot/github_actions/dot-github/workflows/actions-minor-11a96e39ce
Bump the actions-minor group across 1 directory with 4 updates
2026-12-02 11:49:17 +00:00
Henry Mercer c60d3bc058 Merge pull request #4367 from github/copilot/task-9919-259445878-e6cc8279-2a09-562a-b5f2-221a6efc22fa
Clarify runner-image exclusions
2026-12-02 10:31:59 +00:00
copilot-swe-agent[bot] efefe66b56 Clarify runner image exclusions 2026-12-01 16:35:15 +00:00
Henry Mercer 394261f58c Merge pull request #4345 from github/henrymercer/cancelled-runs-reporting
Report cancelled jobs with a separate job status in `init-post`
2026-11-30 14:05:17 +00:00
github-actions[bot] 0aa26b21cc Update supported GitHub Enterprise Server versions 2026-11-27 00:17:22 +00:00
github-actions[bot] c87aca8010 Rebuild 2026-11-25 17:59:05 +00:00
dependabot[bot] 9b30dda55f Bump the actions-minor group across 1 directory with 4 updates
Bumps the actions-minor group with 4 updates in the /.github/workflows directory: [actions/setup-dotnet](https://github.com/actions/setup-dotnet), [actions/setup-go](https://github.com/actions/setup-go), [actions/setup-java](https://github.com/actions/setup-java) and [actions/create-github-app-token](https://github.com/actions/create-github-app-token).


Updates `actions/setup-dotnet` from 6.0.0 to 6.1.0
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/a98b56852c35b8e3190ac28c8c2271da59106c68...0f4a354dd5547a28c70b7853dbd95d5b67886e73)

Updates `actions/setup-go` from 7.0.0 to 7.1.0
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/b7ad1dad31e06c5925ef5d2fc7ad053ef454303e...d8cbb8045d7f43706b9177cceb36c1f91a6644d5)

Updates `actions/setup-java` from 6.1.0 to 6.3.0
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/b843ebf9b913146b38da2eaa7aeddf76074ae1ad...d1374f8ac74474200d16ef8ecee22c7ae7a51880)

Updates `actions/create-github-app-token` from 3.3.0 to 3.4.0
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Changelog](https://github.com/actions/create-github-app-token/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/create-github-app-token/compare/64ab729a6294000f5aa4a4bc0b73d1f32bc45510...f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-version: 6.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor
- dependency-name: actions/setup-go
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor
- dependency-name: actions/setup-java
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor
- dependency-name: actions/create-github-app-token
  dependency-version: 3.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-25 17:55:52 +00:00
dependabot[bot] e624ebc48d Bump the npm-minor group across 1 directory with 3 updates
Bumps the npm-minor group with 3 updates in the / directory: [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc), [prettier](https://github.com/prettier/prettier) and [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint).


Updates `eslint-plugin-jsdoc` from 65.4.5 to 65.4.12
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases)
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v65.4.5...v65.4.12)

Updates `prettier` from 3.10.0 to 3.10.1
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.10.0...3.10.1)

Updates `typescript-eslint` from 8.72.2 to 8.73.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.73.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: eslint-plugin-jsdoc
  dependency-version: 65.4.12
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
- dependency-name: prettier
  dependency-version: 3.10.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-minor
- dependency-name: typescript-eslint
  dependency-version: 8.73.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-25 17:54:53 +00:00
Sam Robson 776237d428 Merge pull request #4349 from github/mergeback/v4.39.5-to-main-915412ff
Mergeback v4.39.5 refs/heads/releases/v4 into main
2026-11-24 15:18:32 +00:00
github-actions[bot] 743c02edee Rebuild 2026-11-24 14:58:39 +00:00
github-actions[bot] c27036f19d Update changelog and version after v4.39.5 2026-11-24 14:58:25 +00:00
Sam Robson 915412ff23 Merge pull request #4348 from github/update-v4.39.5-bed9c837c
Merge main into releases/v4
2026-11-24 14:56:45 +00:00
github-actions[bot] 35d990cd3b Update changelog for v4.39.5 2026-11-24 14:37:31 +00:00
Henry Mercer bed9c837cf Merge pull request #4346 from github/henrymercer/rename-to-overlay-analysis
Rename improved incremental analysis to overlay analysis
2026-11-24 12:25:45 +00:00
Henry Mercer 1f73992007 Merge pull request #4332 from github/henrymercer/codeql-action-bumps
Update the `minimatch` copies used by `archiver` and `eslint-plugin-import-x` to v11
2026-11-24 10:49:45 +00:00
Henry Mercer becf94ae7b Merge pull request #4344 from github/henrymercer/deflake-workflow-list
Generate the Deflake workflow list
2026-11-24 10:49:37 +00:00
Sam Robson 5d7d6cdfdb Merge pull request #4347 from github/update-bundle/codeql-bundle-v2.27.6
Update default bundle to 2.27.6
2026-11-24 10:32:01 +00:00
github-actions[bot] 0006d1f62f Add changenote 2026-11-24 09:59:57 +00:00
github-actions[bot] ca37df17a9 Update default bundle to codeql-bundle-v2.27.6 2026-11-24 09:59:50 +00:00
Henry MercerandCopilot App 7f3a2f5c7f Rename improved incremental analysis to overlay analysis
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-11-23 20:22:02 +00:00
Henry MercerandCopilot App b69d569f2c Report cancelled jobs with a separate job status in init-post
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-11-23 19:55:31 +00:00
Henry MercerandCopilot App 73d9b6db16 Generate the Deflake workflow list in pr-checks/sync.ts
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-11-23 17:32:55 +00:00
Henry MercerandCopilot App 9ee158cbfd Update the Deflake workflow list to match the current PR checks
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-11-23 17:32:55 +00:00
github-actions[bot] fa7acb99cd Rebuild 2026-11-19 13:21:30 +00:00
Henry MercerandCopilot App a27b4d64b7 Update minimatch to 11.0.8 where existing ranges allow
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-11-19 13:19:15 +00:00
Henry MercerandCopilot App 3fd9439bde Override archiver's readdir-glob to v4 to pick up minimatch v11
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-11-19 13:18:50 +00:00
53 changed files with 3343 additions and 2191 deletions

No files matched your search

+2 -2
View File
@@ -71,11 +71,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -67,11 +67,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+1 -1
View File
@@ -61,7 +61,7 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Prepare test
@@ -63,7 +63,7 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
+1 -1
View File
@@ -63,7 +63,7 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
java-version: ${{ inputs.java-version || '17' }}
distribution: temurin
+2 -2
View File
@@ -67,11 +67,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -71,11 +71,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -69,11 +69,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
@@ -57,7 +57,7 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
@@ -73,7 +73,7 @@ jobs:
languages: go
tools: ${{ steps.prepare-test.outputs.tools-url }}
# Deliberately change Go after the `init` step
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: "1.20"
- name: Build code
@@ -57,7 +57,7 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+1 -1
View File
@@ -57,7 +57,7 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+1 -1
View File
@@ -77,7 +77,7 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+1 -1
View File
@@ -77,7 +77,7 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+1 -1
View File
@@ -77,7 +77,7 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -67,11 +67,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -101,11 +101,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
@@ -71,11 +71,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -71,11 +71,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -71,11 +71,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -71,11 +71,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -69,11 +69,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -89,11 +89,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -77,11 +77,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -71,11 +71,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -69,11 +69,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -67,11 +67,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -74,11 +74,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
+2 -2
View File
@@ -68,11 +68,11 @@ jobs:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: ${{ inputs.dotnet-version || '9.x' }}
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ${{ inputs.go-version || '>=1.21.0' }}
cache: false
@@ -59,11 +59,11 @@ jobs:
uses: ./.github/actions/prepare-test
with:
version: ${{ matrix.version }}
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ^1.13.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: "9.x"
- name: Assert best-effort artifact scan completed
+2 -2
View File
@@ -55,11 +55,11 @@ jobs:
uses: ./.github/actions/prepare-test
with:
version: ${{ matrix.version }}
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: ^1.13.1
- name: Install .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: "9.x"
- name: Assert best-effort artifact scan completed
+16 -16
View File
@@ -6,19 +6,19 @@ name: Deflake
on:
workflow_run:
types: [completed]
# Exclude workflows that have significant side effects, like publishing releases. It's OK to
# retry CodeQL analysis.
# Generated by `pr-checks/sync.sh` from the templates in `pr-checks/checks` and the other
# workflows listed in `pr-checks/deflake.ts`.
workflows:
- Check Expected Release Files
- Code-Scanning config CLI tests
- CodeQL action
- Manual Check - go
- "Check Expected Release Files"
- "Code-Scanning config CLI tests"
- "CodeQL action"
- "Manual Check - go"
- "PR Check - All-platform bundle"
- "PR Check - Analysis kinds"
- "PR Check - Analyze: 'ref' and 'sha' from inputs"
- "PR Check - autobuild-action"
- "PR Check - Autobuild direct tracing (custom working directory)"
- "PR Check - Autobuild working directory"
- "PR Check - autobuild-action"
- "PR Check - Build mode autobuild"
- "PR Check - Build mode manual"
- "PR Check - Build mode none"
@@ -26,7 +26,6 @@ on:
- "PR Check - Bundle: Caching checks"
- "PR Check - Bundle: From nightly"
- "PR Check - Bundle: From toolcache"
- "PR Check - Bundle: Zstandard checks"
- "PR Check - C/C\\+\\+: autoinstalling dependencies (Linux)"
- "PR Check - C/C\\+\\+: autoinstalling dependencies is skipped (macOS)"
- "PR Check - C/C\\+\\+: disabling autoinstalling dependencies (Linux)"
@@ -37,11 +36,12 @@ on:
- "PR Check - Debug artifact upload"
- "PR Check - Debug artifacts after failure"
- "PR Check - Diagnostic export"
- "PR Check - Diagnostic export without database"
- "PR Check - Export file baseline information"
- "PR Check - Extractor ram and threads options test"
- "PR Check - Go: Custom queries"
- "PR Check - Go: diagnostic when Go is changed after init step"
- "PR Check - Go: diagnostic when `file` is not installed"
- "PR Check - Go: diagnostic when Go is changed after init step"
- "PR Check - Go: tracing with autobuilder step"
- "PR Check - Go: tracing with custom build steps"
- "PR Check - Go: tracing with legacy workflow"
@@ -56,6 +56,7 @@ on:
- "PR Check - Packaging: Config and input passed to the CLI"
- "PR Check - Packaging: Config file"
- "PR Check - Packaging: Download using registries"
- "PR Check - Per-language bundles"
- "PR Check - Proxy test"
- "PR Check - Remote config file"
- "PR Check - Resolve environment"
@@ -69,19 +70,18 @@ on:
- "PR Check - Swift analysis using autobuild"
- "PR Check - Test different uses of `upload-sarif`"
- "PR Check - Test unsetting environment variables"
- "PR Check - Upload-sarif: ref and sha from inputs"
- "PR Check - Unsupported macOS"
- "PR Check - Upload-sarif: 'ref' and 'sha' from inputs"
- "PR Check - Use a custom `checkout_path`"
- PR Checks
- Query filters tests
- Test that the workaround for python 3.12 on windows works
- "PR Checks"
- "Query filters tests"
- "Test that the workaround for python 3.12 on windows works"
jobs:
rerun-on-failure:
name: Rerun failed jobs
if: >-
github.event.workflow_run.conclusion == 'failure' &&
github.event.workflow_run.run_attempt == 1 &&
(
github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt == 1 && (
github.event.workflow_run.head_branch == 'main' ||
startsWith(github.event.workflow_run.head_branch, 'releases/') ||
github.event.workflow_run.event == 'merge_group'
+1 -1
View File
@@ -134,7 +134,7 @@ jobs:
echo "::endgroup::"
- name: Generate token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
id: app-token
with:
app-id: ${{ vars.AUTOMATION_APP_ID }}
+1 -1
View File
@@ -139,7 +139,7 @@ jobs:
- name: Generate token
if: github.event_name == 'workflow_dispatch'
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
id: app-token
with:
app-id: ${{ vars.AUTOMATION_APP_ID }}
+1 -1
View File
@@ -95,7 +95,7 @@ jobs:
pull-requests: write # needed to create pull request
steps:
- name: Generate token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
id: app-token
with:
app-id: ${{ vars.AUTOMATION_APP_ID }}
+4
View File
@@ -6,6 +6,10 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
No user facing changes.
## 4.39.5 - 24 Nov 2026
- Update default CodeQL bundle version to [2.27.6](https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.27.6). [#4347](https://github.com/github/codeql-action/pull/4347)
## 4.39.4 - 20 Nov 2026
- Update default CodeQL bundle version to [2.27.5](https://github.com/github/codeql-action/releases/tag/codeql-bundle-v2.27.5). [#4333](https://github.com/github/codeql-action/pull/4333)
+2 -2
View File
@@ -154,8 +154,8 @@ inputs:
trap-caching:
description: >-
Explicitly enable or disable TRAP caching instead of using the automatically determined default.
TRAP caching is disabled by default when improved incremental analysis is enabled,
because improved incremental analysis of a pull request only extracts changed files,
TRAP caching is disabled by default when overlay analysis is enabled,
because overlay analysis of a pull request only extracts changed files,
which rarely benefit from TRAP caching.
required: false
dependency-caching:
+4 -4
View File
@@ -1,6 +1,6 @@
{
"bundleVersion": "codeql-bundle-v2.27.5",
"cliVersion": "2.27.5",
"priorBundleVersion": "codeql-bundle-v2.27.4",
"priorCliVersion": "2.27.4"
"bundleVersion": "codeql-bundle-v2.27.6",
"cliVersion": "2.27.6",
"priorBundleVersion": "codeql-bundle-v2.27.5",
"priorCliVersion": "2.27.5"
}
+2470 -1706
View File
File diff suppressed because it is too large. Load diff
+371 -362
View File
File diff suppressed because it is too large. Load diff
+9 -6
View File
@@ -1,6 +1,6 @@
{
"name": "codeql",
"version": "4.39.5",
"version": "4.39.6",
"private": true,
"description": "CodeQL action",
"scripts": {
@@ -43,7 +43,7 @@
"js-yaml": "^5.5.0",
"jsonschema": "1.5.0",
"long": "^5.3.2",
"node-forge": "^1.4.3",
"node-forge": "^1.4.4",
"semver": "^7.8.6",
"undici": "^7.30.1",
"uuid": "^14.0.3"
@@ -61,21 +61,21 @@
"@types/sarif": "^2.1.7",
"@types/semver": "^7.8.0",
"@types/sinon": "^22.0.2",
"ava": "^6.4.1",
"ava": "^7.0.0",
"esbuild": "^0.28.2",
"eslint": "^9.39.5",
"eslint-import-resolver-typescript": "^4.4.5",
"eslint-plugin-github": "^6.1.2",
"eslint-plugin-import-x": "^4.18.1",
"eslint-plugin-jsdoc": "^65.4.5",
"eslint-plugin-jsdoc": "^65.4.12",
"eslint-plugin-no-async-foreach": "^0.1.1",
"glob": "^14.0.3",
"globals": "^17.14.0",
"nock": "^14.0.17",
"prettier": "^3.10.0",
"prettier": "^3.10.1",
"sinon": "^22.1.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.72.2"
"typescript-eslint": "^8.73.0"
},
"overrides": {
"@actions/tool-cache": {
@@ -90,6 +90,9 @@
"@octokit/plugin-paginate-rest": {
"semver": ">=9.2.2"
},
"archiver@^8.0.0": {
"readdir-glob": "^4.0.0"
},
"eslint-plugin-import": {
"semver": ">=6.3.1"
},
@@ -12,7 +12,7 @@ steps:
languages: go
tools: ${{ steps.prepare-test.outputs.tools-url }}
# Deliberately change Go after the `init` step
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
- uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0
with:
go-version: "1.20"
- name: Build code
+3 -2
View File
@@ -3,8 +3,9 @@ description: "An end-to-end integration test checking that CodeQL can analyze in
# This check runs on each image listed in
# https://github.com/actions/runner-images#available-images, except for:
# - `ubuntu-slim`, which is intended for lightweight jobs rather than builds like this one.
# - `windows-11-arm`, since CodeQL doesn't support Windows on Arm64.
# - `xcode-27`, a preview image that the `unsupported-macos` check runs on.
# - `windows-11-arm` and `windows-11-vs2026-arm`, since CodeQL doesn't support Windows on Arm64.
# - `xcode-27` and `xcode-27-xlarge`, since traced analysis is unsupported on macOS 27 and
# the `unsupported-macos` check covers this image.
operatingSystems:
# The Ubuntu 22.04 images have brownouts from 23 March 2027 and are retired on 17 April 2027, so
# remove them before the brownouts start.
+142
View File
@@ -0,0 +1,142 @@
#!/usr/bin/env npx tsx
/*
Tests for `deflake.ts`.
*/
import * as assert from "node:assert/strict";
import { describe, it } from "node:test";
import { escapeWorkflowName, setWorkflowRunWorkflows } from "./deflake";
describe("escapeWorkflowName", async () => {
await it("escapes the characters that filter patterns treat as glob syntax", () => {
assert.equal(
escapeWorkflowName(
String.raw`!Name with C/C++, [a-z]?, *, ! and \ in it`,
),
String.raw`\!Name with C/C\+\+, \[a-z]\?, \*, \! and \\ in it`,
);
});
await it("leaves names without glob syntax unchanged", () => {
const name = "PR Check - Upload-sarif: 'ref' and `sha` (Linux) ]";
assert.equal(escapeWorkflowName(name), name);
});
});
describe("setWorkflowRunWorkflows", async () => {
await it("replaces the list with sorted, escaped names and leaves the rest of the workflow unchanged", () => {
const workflow = `on:
workflow_run:
types: [completed]
# A comment about the list.
workflows:
- Existing workflow
# A comment within the list.
- "Removed workflow"
jobs:
rerun:
if: |-
github.event.workflow_run.conclusion == 'failure' &&
github.event.workflow_run.run_attempt == 1
`;
assert.equal(
setWorkflowRunWorkflows(workflow, [
"PR Check - b",
"PR Check - C/C++",
"Existing workflow",
"PR Check - a",
]),
String.raw`on:
workflow_run:
types: [completed]
# A comment about the list.
workflows:
- "Existing workflow"
- "PR Check - a"
- "PR Check - b"
- "PR Check - C/C\\+\\+"
jobs:
rerun:
if: |-
github.event.workflow_run.conclusion == 'failure' &&
github.event.workflow_run.run_attempt == 1
`,
);
});
await it("uses single quotes only for patterns that contain double quotes and no backslashes", () => {
// These are the quotes that Prettier uses when formatting these strings.
assert.equal(
setWorkflowRunWorkflows(
"on:\n workflow_run:\n workflows:\n - Old\n",
['Upload "quoted" SARIF', `It's "quoted"`, 'C++ "quoted"'],
),
String.raw`on:
workflow_run:
workflows:
- "C\\+\\+ \"quoted\""
- 'It''s "quoted"'
- 'Upload "quoted" SARIF'
`,
);
});
await it("leaves comments and keys after the last item unchanged", () => {
const after = ` # A comment after the list.
branches: [main]
`;
assert.equal(
setWorkflowRunWorkflows(
`on:\n workflow_run:\n workflows:\n - Old\n${after}`,
["New"],
),
`on:\n workflow_run:\n workflows:\n - "New"\n${after}`,
);
});
await it("returns an up-to-date workflow unchanged", () => {
const workflow = String.raw`on:
workflow_run:
workflows:
- "C/C\\+\\+"
- "Other"
`;
assert.equal(
setWorkflowRunWorkflows(workflow, ["Other", "C/C++"]),
workflow,
);
});
await it("writes a flow sequence as a block sequence", () => {
assert.equal(
setWorkflowRunWorkflows("on:\n workflow_run:\n workflows: [Old]\n", [
"New",
]),
'on:\n workflow_run:\n workflows:\n - "New"\n',
);
});
await it("throws if the workflow isn't valid YAML", () => {
// Duplicate keys are an error in the `yaml` library, though Prettier accepts them.
assert.throws(
() =>
setWorkflowRunWorkflows(
"on:\n workflow_run:\n workflows:\n - Old\njobs: {}\njobs: {}\n",
["New"],
),
/Failed to parse the workflow: .* at line 6, column 1/,
);
});
await it("throws if the workflow has no workflow_run trigger", () => {
assert.throws(
() => setWorkflowRunWorkflows("on:\n push: {}\n", ["Other"]),
/Expected `on.workflow_run.workflows` to be a sequence/,
);
});
});
+111
View File
@@ -0,0 +1,111 @@
import * as fs from "fs";
import * as path from "path";
import * as yaml from "yaml";
import { REPO_ROOT } from "./config";
/** The path of the workflow that reruns failed jobs in other workflows. */
const DEFLAKE_WORKFLOW_FILE = path.join(
REPO_ROOT,
".github",
"workflows",
"deflake.yml",
);
/**
* The names of workflows that `sync.ts` doesn't generate, but whose failed jobs the Deflake
* workflow should rerun.
*
* Exclude workflows that have significant side effects, like publishing releases. It's OK to retry
* CodeQL analysis.
*/
const NON_GENERATED_WORKFLOWS_TO_RERUN = [
"Check Expected Release Files",
"Code-Scanning config CLI tests",
"CodeQL action",
"PR Check - Debug artifact upload",
"PR Check - Debug artifacts after failure",
"PR Checks",
"Query filters tests",
"Test that the workaround for python 3.12 on windows works",
];
/**
* Escapes the characters in a workflow name that `on.workflow_run.workflows` would otherwise treat
* as glob syntax.
*
* @returns A pattern that matches only the workflow called `name`.
*/
export function escapeWorkflowName(name: string): string {
// These are the characters that can be escaped in GitHub Actions filter patterns. `]` is only
// special after an unescaped `[`, so it doesn't need escaping.
return name.replace(/[\\[?*+!]/g, "\\$&");
}
/**
* Replaces the items in the `on.workflow_run.workflows` list of a workflow, and any comments on
* their lines or between them, with patterns that match the workflows called `workflowNames`,
* sorted by name. The list is written as a block sequence.
*
* The whole workflow is rewritten with the `yaml` library, so any other parts that aren't
* formatted the way that library formats them are reformatted, for example by joining lines of
* folded (`>`) block scalars. Prettier, which checks the formatting of YAML files in this
* repository, formats non-empty flow mappings, and flow sequences that don't fit within 80
* columns, differently from that library, so the workflow is expected not to contain any.
*
* @param workflow The contents of the workflow file.
* @param workflowNames The names of the workflows that should trigger the workflow.
* @returns The updated contents of the workflow file.
* @throws If the workflow isn't valid YAML, or `on.workflow_run.workflows` isn't a sequence.
*/
export function setWorkflowRunWorkflows(
workflow: string,
workflowNames: string[],
): string {
const document = yaml.parseDocument(workflow);
if (document.errors.length > 0) {
throw new Error(
`Failed to parse the workflow: ${document.errors[0].message}`,
);
}
const workflows = document.getIn(["on", "workflow_run", "workflows"], true);
if (!yaml.isSeq(workflows)) {
throw new Error("Expected `on.workflow_run.workflows` to be a sequence.");
}
workflows.flow = false;
workflows.items = workflowNames
.toSorted((a, b) => a.localeCompare(b, "en"))
.map((name) => {
const pattern = escapeWorkflowName(name);
const item = new yaml.Scalar(pattern);
// Quote the pattern in the same way as Prettier, which uses single quotes for strings that
// contain `"` but no `\`, and double quotes otherwise.
item.type =
pattern.includes('"') && !pattern.includes("\\")
? yaml.Scalar.QUOTE_SINGLE
: yaml.Scalar.QUOTE_DOUBLE;
return item;
});
// These options match how Prettier formats short flow sequences, such as `[completed]`, and long
// strings.
return document.toString({ flowCollectionPadding: false, lineWidth: 0 });
}
/**
* Updates the Deflake workflow so that it reruns failed jobs in the workflows called
* `generatedWorkflowNames` and in {@link NON_GENERATED_WORKFLOWS_TO_RERUN}.
*/
export function updateDeflakeWorkflow(generatedWorkflowNames: string[]): void {
console.log(`Updating the list of workflows in '${DEFLAKE_WORKFLOW_FILE}'.`);
const workflow = fs.readFileSync(DEFLAKE_WORKFLOW_FILE, "utf8");
fs.writeFileSync(
DEFLAKE_WORKFLOW_FILE,
setWorkflowRunWorkflows(workflow, [
...generatedWorkflowNames,
...NON_GENERATED_WORKFLOWS_TO_RERUN,
]),
"utf8",
);
}
+1 -1
View File
@@ -6,7 +6,7 @@ to one of the files in this directory.
## Updating workflows
Run `./sync.sh` to invoke the workflow generator and re-generate the workflow files in `.github/workflows/` based on the templates in `pr-checks/checks/`.
Run `./sync.sh` to invoke the workflow generator and re-generate the workflow files in `.github/workflows/` based on the templates in `pr-checks/checks/`. This also updates the list of workflows whose failed jobs `.github/workflows/deflake.yml` reruns.
Alternatively, you can use `just`:
+12 -6
View File
@@ -8,6 +8,7 @@ import * as yaml from "yaml";
import { BuiltInLanguage } from "../src/languages";
import { PR_CHECKS_DIR, REPO_ROOT } from "./config";
import { updateDeflakeWorkflow } from "./deflake";
/**
* Returns a `uses` value for `action` pinned to a commit SHA, with the
@@ -265,8 +266,8 @@ const languageSetups: LanguageSetups = {
name: "Install Go",
uses: pinnedUses(
"actions/setup-go",
"b7ad1dad31e06c5925ef5d2fc7ad053ef454303e",
"v7.0.0",
"d8cbb8045d7f43706b9177cceb36c1f91a6644d5",
"v7.1.0",
),
with: {
"go-version": `\${{ inputs.go-version || '${defaultLanguageVersions.go}' }}`,
@@ -285,8 +286,8 @@ const languageSetups: LanguageSetups = {
name: "Install Java",
uses: pinnedUses(
"actions/setup-java",
"b843ebf9b913146b38da2eaa7aeddf76074ae1ad",
"v6.1.0",
"d1374f8ac74474200d16ef8ecee22c7ae7a51880",
"v6.3.0",
),
with: {
"java-version": `\${{ inputs.java-version || '${defaultLanguageVersions.java}' }}`,
@@ -320,8 +321,8 @@ const languageSetups: LanguageSetups = {
name: "Install .NET",
uses: pinnedUses(
"actions/setup-dotnet",
"a98b56852c35b8e3190ac28c8c2271da59106c68",
"v6.0.0",
"0f4a354dd5547a28c70b7853dbd95d5b67886e73",
"v6.1.0",
),
with: {
"dotnet-version": `\${{ inputs.dotnet-version || '${defaultLanguageVersions.csharp}' }}`,
@@ -747,6 +748,7 @@ function main(): void {
console.log(`Found ${checkFiles.length} check specification(s).`);
const generatedWorkflowNames: string[] = [];
const collections: Record<
string,
Array<{
@@ -834,6 +836,7 @@ function main(): void {
const outputPath = path.join(OUTPUT_DIR, `__${checkName}.yml`);
writeYaml(outputPath, workflow);
generatedWorkflowNames.push(workflow.name);
}
// Write workflow files for collections.
@@ -878,8 +881,11 @@ function main(): void {
const outputPath = path.join(OUTPUT_DIR, `__${collectionName}.yml`);
writeYaml(outputPath, collectionWorkflow);
generatedWorkflowNames.push(collectionWorkflow.name);
}
updateDeflakeWorkflow(generatedWorkflowNames);
console.log(
`\nDone. Wrote ${checkFiles.length} workflow file(s) to ${OUTPUT_DIR}`,
);
+1 -1
View File
@@ -1 +1 @@
{"maximumVersion":"3.23","minimumVersion":"3.19"}
{"maximumVersion":"3.24","minimumVersion":"3.19"}
+4 -4
View File
@@ -1,6 +1,6 @@
{
"bundleVersion": "codeql-bundle-v2.27.5",
"cliVersion": "2.27.5",
"priorBundleVersion": "codeql-bundle-v2.27.4",
"priorCliVersion": "2.27.4"
"bundleVersion": "codeql-bundle-v2.27.6",
"cliVersion": "2.27.6",
"priorBundleVersion": "codeql-bundle-v2.27.5",
"priorCliVersion": "2.27.5"
}
+5 -5
View File
@@ -541,7 +541,7 @@ async function recordOverlayStatus(
// one if a CodeQL Action reported an error before the job ended.
if (!isConclusiveJobStatus(jobStatus) && !didCodeQlReportError(env)) {
logger.info(
"Not recording an improved incremental analysis failure for this job because the job " +
"Not recording an overlay analysis failure for this job because the job " +
`status (${jobStatus ?? "unset"}) does not tell us whether the analysis itself failed.`,
);
return;
@@ -576,15 +576,15 @@ async function recordOverlayStatus(
);
const blurb =
"This job attempted to run with improved incremental analysis but it did not complete successfully. " +
"One possible reason for this is disk space constraints, since improved incremental analysis can " +
"This job attempted to run with overlay analysis but it did not complete successfully. " +
"One possible reason for this is disk space constraints, since overlay analysis can " +
"require a significant amount of disk space for some repositories.";
if (saved) {
logger.error(
`${blurb} ` +
"This failure has been recorded in the Actions cache, so the next CodeQL analysis will run " +
"without improved incremental analysis. If you want to enable improved incremental analysis, " +
"without overlay analysis. If you want to enable overlay analysis, " +
"try increasing the disk space available to the runner. " +
"If that doesn't help, contact GitHub Support for further assistance.",
);
@@ -592,7 +592,7 @@ async function recordOverlayStatus(
logger.error(
`${blurb} ` +
"The attempt to save this failure status to the Actions cache failed. The Action will attempt to " +
"run with improved incremental analysis again.",
"run with overlay analysis again.",
);
}
}
+68
View File
@@ -0,0 +1,68 @@
import test from "ava";
import { EnvVar } from "./environment";
import { GitHubVariant, type GitHubVersion } from "./github";
import { getFinalJobStatus } from "./init-action-post";
import { JobStatus } from "./status-report";
import { callee, createTestConfig, setupTests } from "./testing-utils";
setupTests(test);
const dotcom: GitHubVersion = { type: GitHubVariant.DOTCOM };
test("getFinalJobStatus reports a cancelled job status when the job was cancelled after init completed", async (t) => {
await callee(getFinalJobStatus)
.withArgs(createTestConfig({}), "cancelled", dotcom)
.passes(t.is, JobStatus.CancelledStatus);
});
test("getFinalJobStatus reports a cancelled job status when the job was cancelled before init completed", async (t) => {
await callee(getFinalJobStatus)
.withArgs(undefined, "cancelled", dotcom)
.passes(t.is, JobStatus.CancelledStatus);
});
test("getFinalJobStatus reports a cancelled job status on GitHub Enterprise Cloud with data residency", async (t) => {
await callee(getFinalJobStatus)
.withArgs(createTestConfig({}), "cancelled", {
type: GitHubVariant.GHEC_DR,
})
.passes(t.is, JobStatus.CancelledStatus);
});
test("getFinalJobStatus reports success when the job was cancelled after analyze completed", async (t) => {
await callee(getFinalJobStatus)
.withEnv((env) => {
env.set(EnvVar.ANALYZE_DID_COMPLETE_SUCCESSFULLY, "true");
})
.withArgs(createTestConfig({}), "cancelled", dotcom)
.passes(t.is, JobStatus.SuccessStatus);
});
test("getFinalJobStatus reports the error from a CodeQL Action step when the job was cancelled afterwards", async (t) => {
await callee(getFinalJobStatus)
.withEnv((env) => {
env.set(EnvVar.JOB_STATUS, JobStatus.FailureStatus);
})
.withArgs(createTestConfig({}), "cancelled", dotcom)
.passes(t.is, JobStatus.FailureStatus);
});
test("getFinalJobStatus reports a configuration error when a step outside the CodeQL Action failed", async (t) => {
await callee(getFinalJobStatus)
.withArgs(createTestConfig({}), "failure", dotcom)
.passes(t.is, JobStatus.ConfigErrorStatus);
});
test("getFinalJobStatus doesn't report a cancelled job status on GitHub Enterprise Server", async (t) => {
const ghes: GitHubVersion = {
type: GitHubVariant.GHES,
version: "3.23.0",
};
await callee(getFinalJobStatus)
.withArgs(createTestConfig({}), "cancelled", ghes)
.passes(t.is, JobStatus.ConfigErrorStatus);
await callee(getFinalJobStatus)
.withArgs(undefined, "cancelled", ghes)
.passes(t.is, JobStatus.UnknownStatus);
});
+37 -11
View File
@@ -30,6 +30,7 @@ import {
import { EnvVar, type ReadOnlyEnv } from "./environment";
import { initFeatures } from "./feature-flags";
import * as gitUtils from "./git-utils";
import type { GitHubVersion } from "./github";
import * as initActionPostHelper from "./init-action-post-helper";
import { getRepositoryNwo } from "./repository";
import {
@@ -40,6 +41,7 @@ import {
ActionName,
getJobStatusDisplayName,
JobStatus,
supportsCancelledJobStatus,
} from "./status-report";
import { checkDiskUsage, checkGitHubVersionInRange, wrapError } from "./util";
@@ -55,7 +57,9 @@ async function run(action: ActionState<["Base", "Logger", "Env"]>) {
// possible, and only use safe functions outside.
const logger = action.logger;
let actionsJobStatus: string | undefined;
let config: Config | AbortedInitConfig | undefined;
let gitHubVersion: GitHubVersion;
let uploadFailedSarifResult:
initActionPostHelper.UploadFailedSarifResult | undefined;
let dependencyCachingUsage: DependencyCachingUsageReport | undefined;
@@ -64,7 +68,7 @@ async function run(action: ActionState<["Base", "Logger", "Env"]>) {
// Read the job status before restoring inputs, since it is provided by the Actions runtime
// environment for this step and would otherwise be overwritten by the value that the `init`
// Action saw, which is always a success.
const jobStatus = getOptionalInput("job-status");
actionsJobStatus = getOptionalInput("job-status");
// Restore inputs from `init` Action.
restoreInputs(logger);
@@ -82,7 +86,7 @@ async function run(action: ActionState<["Base", "Logger", "Env"]>) {
config = getAbortedInitConfig(action, tmpDir);
}
const gitHubVersion = config?.gitHubVersion ?? (await getGitHubVersion());
gitHubVersion = config?.gitHubVersion ?? (await getGitHubVersion());
checkGitHubVersionInRange(gitHubVersion, logger);
const repositoryNwo = getRepositoryNwo();
@@ -107,7 +111,7 @@ async function run(action: ActionState<["Base", "Logger", "Env"]>) {
config,
repositoryNwo,
features,
jobStatus,
actionsJobStatus,
action.env,
logger,
);
@@ -146,7 +150,12 @@ async function run(action: ActionState<["Base", "Logger", "Env"]>) {
}
return;
}
const jobStatus = getFinalJobStatus(action, config);
const jobStatus = getFinalJobStatus(
action,
config,
actionsJobStatus,
gitHubVersion,
);
logger.info(`CodeQL job status was ${getJobStatusDisplayName(jobStatus)}.`);
const statusReportBase = await createStatusReportBase(
@@ -175,11 +184,21 @@ async function run(action: ActionState<["Base", "Logger", "Env"]>) {
*
* If the job status has already been set by another step, we use that.
* Otherwise, we determine the job status based on whether the analyze step
* completed successfully and whether we have a valid CodeQL config.
* completed successfully, whether the job was cancelled, and whether we have a
* valid CodeQL config.
*
* Exported for testing.
*
* @param actionsJobStatus The status of the job, as reported by the Actions
* runtime environment.
* @param gitHubVersion The version of the GitHub instance that the status
* report is sent to.
*/
function getFinalJobStatus(
export function getFinalJobStatus(
action: ActionState<["Env"]>,
config: Partial<Config> | undefined,
actionsJobStatus: string | undefined,
gitHubVersion: GitHubVersion,
): JobStatus {
const existingJobStatus = getJobStatusFromEnvironment(action.env);
if (existingJobStatus !== undefined) {
@@ -193,21 +212,28 @@ function getFinalJobStatus(
) {
action.env.export(EnvVar.JOB_STATUS, JobStatus.SuccessStatus);
jobStatus = JobStatus.SuccessStatus;
} else if (
actionsJobStatus === "cancelled" &&
supportsCancelledJobStatus(gitHubVersion)
) {
// The job was cancelled before the analysis completed, and no CodeQL
// Action step reported an error.
jobStatus = JobStatus.CancelledStatus;
} else if (config !== undefined) {
// - We have computed a CodeQL config
// - Analyze didn't complete successfully
// - The job status hasn't already been set to Failure/ConfigurationError
//
// This means that something along the way failed in a step that is not
// owned by the Action, for example a manual build step. We consider this a
// configuration error.
// owned by the Action, for example a manual build step, or that the job
// was cancelled and the GitHub instance isn't known to accept
// `JobStatus.CancelledStatus`. We consider this a configuration error.
jobStatus = JobStatus.ConfigErrorStatus;
} else {
// If we didn't manage to compute a CodeQL config, it is unclear at this
// point why the analyze Action didn't complete.
// - One possibility is that the workflow run was cancelled. We could
// consider determining workflow cancellation using the GitHub API, but
// for now we treat all these cases as unknown.
// - One possibility is that the job was cancelled and the GitHub instance
// isn't known to accept `JobStatus.CancelledStatus`.
// - Another possibility is that we're running a workflow that only runs
// `init`, for instance a workflow that was created before `setup-codeql`
// was available and uses `init` just to set up the CodeQL tools.
+8 -8
View File
@@ -84,18 +84,18 @@ export async function addOverlayDisablementDiagnostics(
config,
makeDiagnostic(
"codeql-action/overlay-disabled-due-to-cached-status",
"Skipped improved incremental analysis because it failed previously with similar hardware resources",
"Skipped overlay analysis because it failed previously with similar hardware resources",
{
attributes: {
languages: config.languages,
},
markdownMessage:
`Improved incremental analysis was skipped because it previously failed for this repository ` +
`Overlay analysis was skipped because it previously failed for this repository ` +
`with CodeQL version ${(await codeql.getVersion()).version} on a runner with similar hardware resources. ` +
"One possible reason for this is that improved incremental analysis can require a significant amount of disk space for some repositories. " +
"If you want to try re-enabling improved incremental analysis, increase the disk space available " +
"One possible reason for this is that overlay analysis can require a significant amount of disk space for some repositories. " +
"If you want to try re-enabling overlay analysis, increase the disk space available " +
"to the runner. If that doesn't help, contact GitHub Support for further assistance.\n\n" +
"Improved incremental analysis will be automatically retried when the next version of CodeQL is released. " +
"Overlay analysis will be automatically retried when the next version of CodeQL is released. " +
`You can also manually trigger a retry by [removing](${DocUrl.DELETE_ACTIONS_CACHE_ENTRIES}) \`codeql-overlay-status-*\` entries from the Actions cache.`,
severity: "note",
visibility: {
@@ -115,15 +115,15 @@ export async function addOverlayDisablementDiagnostics(
config,
makeDiagnostic(
"codeql-action/overlay-disabled-by-repository-property",
"Improved incremental analysis disabled by repository property",
"Overlay analysis disabled by repository property",
{
attributes: {
languages: config.languages,
},
markdownMessage:
"Improved incremental analysis has been disabled because the " +
"Overlay analysis has been disabled because the " +
`\`${RepositoryPropertyName.DISABLE_OVERLAY}\` repository property is set to \`true\`. ` +
"To re-enable improved incremental analysis, set this property to `false` or remove it.",
"To re-enable overlay analysis, set this property to `false` or remove it.",
severity: "note",
visibility: {
cliSummaryTable: true,
+19 -1
View File
@@ -31,7 +31,7 @@ import {
exportEnvVar,
} from "./environment";
import { getRef } from "./git-utils";
import { GITHUB_DOTCOM_URL } from "./github";
import { GITHUB_DOTCOM_URL, GitHubVariant, type GitHubVersion } from "./github";
import * as json from "./json";
import type { Logger } from "./logging";
import type { OverlayBaseDatabaseDownloadStats } from "./overlay/caching";
@@ -137,6 +137,22 @@ export enum JobStatus {
SuccessStatus = "JOB_STATUS_SUCCESS",
FailureStatus = "JOB_STATUS_FAILURE",
ConfigErrorStatus = "JOB_STATUS_CONFIGURATION_ERROR",
/** The job was cancelled before the analysis completed. */
CancelledStatus = "JOB_STATUS_CANCELLED",
}
/**
* Whether the status report API of the GitHub instance is known to accept
* `JobStatus.CancelledStatus`. The API rejects status reports with a job status
* that it doesn't recognise.
*/
export function supportsCancelledJobStatus(
gitHubVersion: GitHubVersion,
): boolean {
return (
gitHubVersion.type === GitHubVariant.DOTCOM ||
gitHubVersion.type === GitHubVariant.GHEC_DR
);
}
export interface StatusReportBase {
@@ -268,6 +284,8 @@ export function getJobStatusDisplayName(status: JobStatus): string {
return "configuration error";
case JobStatus.UnknownStatus:
return "unknown";
case JobStatus.CancelledStatus:
return "cancelled";
default:
assertNever(status);
}