Compare commits

...
21 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
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
44 changed files with 578 additions and 435 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
+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
@@ -2,6 +2,10 @@
See the [releases page](https://github.com/github/codeql-action/releases) for the relevant changes to the CodeQL CLI and language packs.
## [UNRELEASED]
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)
+35 -16
View File
@@ -157863,15 +157863,15 @@ var require_util14 = __commonJS({
var chr1, chr2, chr3;
var i = 0;
while (i < input.length) {
chr1 = input.charCodeAt(i++);
chr1 = input.charCodeAt(i++) & 255;
chr2 = input.charCodeAt(i++);
chr3 = input.charCodeAt(i++);
line += _base64.charAt(chr1 >> 2);
line += _base64.charAt((chr1 & 3) << 4 | chr2 >> 4);
line += _base64.charAt((chr1 & 3) << 4 | (chr2 & 255) >> 4);
if (isNaN(chr2)) {
line += "==";
} else {
line += _base64.charAt((chr2 & 15) << 2 | chr3 >> 6);
line += _base64.charAt((chr2 & 15) << 2 | (chr3 & 255) >> 6);
line += isNaN(chr3) ? "=" : _base64.charAt(chr3 & 63);
}
if (maxline && line.length > maxline) {
@@ -161913,11 +161913,11 @@ var require_prng = __commonJS({
if (err) {
return callback(err);
}
callback(null, bytes.toString());
callback(null, bytes.toString("binary"));
});
};
ctx.seedFileSync = function(needed) {
return _crypto.randomBytes(needed).toString();
return _crypto.randomBytes(needed).toString("binary");
};
} else {
ctx.seedFile = function(needed, callback) {
@@ -162361,7 +162361,7 @@ var require_rc2 = __commonJS({
var T = key.length();
var T1 = effKeyBits;
var T8 = Math.ceil(T1 / 8);
var TM = 255 >> (T1 & 7);
var TM = 255 >> (-T1 & 7);
var i;
for (i = T; i < 128; i++) {
L.putByte(piTable[L.at(i - 1) + L.at(i - T) & 255]);
@@ -162546,6 +162546,7 @@ var require_rc2 = __commonJS({
var require_jsbn = __commonJS({
"node_modules/node-forge/lib/jsbn.js"(exports2, module2) {
var forge = require_forge();
require_util14();
module2.exports = forge.jsbn = forge.jsbn || {};
var dbits;
var canary = 244837814094590;
@@ -162593,7 +162594,7 @@ var require_jsbn = __commonJS({
}
return c;
}
if (typeof navigator === "undefined") {
if (forge.util.isNodejs) {
BigInteger.prototype.am = am3;
dbits = 28;
} else if (j_lm && navigator.appName == "Microsoft Internet Explorer") {
@@ -165116,6 +165117,9 @@ var require_rsa = __commonJS({
error3.errors = errors;
throw error3;
}
if (capture.privateKeyVersion !== "\0" || obj.value.length !== 9) {
throw new Error("Cannot read private key. Only two-prime RSAPrivateKey version 0 is supported.");
}
var n, e, d, p, q, dP, dQ, qInv;
n = forge.util.createBuffer(capture.privateKeyModulus).toHex();
e = forge.util.createBuffer(capture.privateKeyPublicExponent).toHex();
@@ -174315,7 +174319,7 @@ var require_log7 = __commonJS({
var logger2;
var levelHandlers;
var f;
if (sConsoleLogger !== null && typeof window !== "undefined" && window.location) {
if (sConsoleLogger !== null && typeof window !== "undefined" && window.location && window.location.href && typeof URL === "function") {
query = new URL(window.location.href).searchParams;
if (query.has("console.level")) {
forge.log.setLevel(
@@ -175450,7 +175454,7 @@ var require_ssh = __commonJS({
};
function _addBigIntegerToBuffer(buffer, val) {
var hexVal = val.toString(16);
if (hexVal[0] >= "8") {
if (hexVal[0] >= "8" && hexVal.length % 2 === 0) {
hexVal = "00" + hexVal;
}
var bytes = forge.util.hexToBytes(hexVal);
@@ -178904,7 +178908,7 @@ var CHOMPING_KEEP = CHOMPING_MODE.KEEP;
var semver = __toESM(require_semver2());
// src/api-compatibility.json
var maximumVersion = "3.23";
var maximumVersion = "3.24";
var minimumVersion = "3.19";
// src/json/index.ts
@@ -179737,7 +179741,7 @@ function getDiffRangesJsonFilePath(env = getEnv()) {
return path2.join(getTemporaryDirectory(env), PR_DIFF_RANGE_JSON_FILENAME);
}
function getActionVersion() {
return "4.39.5";
return "4.39.6";
}
function getWorkflowEventName(env = getEnv()) {
return env.getRequired("GITHUB_EVENT_NAME" /* GITHUB_EVENT_NAME */);
@@ -181009,8 +181013,12 @@ var JobStatus = /* @__PURE__ */ ((JobStatus2) => {
JobStatus2["SuccessStatus"] = "JOB_STATUS_SUCCESS";
JobStatus2["FailureStatus"] = "JOB_STATUS_FAILURE";
JobStatus2["ConfigErrorStatus"] = "JOB_STATUS_CONFIGURATION_ERROR";
JobStatus2["CancelledStatus"] = "JOB_STATUS_CANCELLED";
return JobStatus2;
})(JobStatus || {});
function supportsCancelledJobStatus(gitHubVersion) {
return gitHubVersion.type === "GitHub.com" /* DOTCOM */ || gitHubVersion.type === "GitHub Enterprise Cloud with data residency" /* GHEC_DR */;
}
function getActionsStatus(error3, otherFailureCause) {
if (error3 || otherFailureCause) {
return error3 instanceof ConfigurationError ? "user-error" : "failure";
@@ -181028,6 +181036,8 @@ function getJobStatusDisplayName(status) {
return "configuration error";
case "JOB_STATUS_UNKNOWN" /* UnknownStatus */:
return "unknown";
case "JOB_STATUS_CANCELLED" /* CancelledStatus */:
return "cancelled";
default:
assertNever(status);
}
@@ -197838,11 +197848,13 @@ async function removeUploadedSarif(uploadFailedSarifResult, logger2) {
// src/init-action-post.ts
async function run4(action) {
const logger2 = action.logger;
let actionsJobStatus;
let config;
let gitHubVersion;
let uploadFailedSarifResult;
let dependencyCachingUsage;
try {
const jobStatus2 = getOptionalInput("job-status");
actionsJobStatus = getOptionalInput("job-status");
restoreInputs(logger2);
const tmpDir = getTemporaryDirectory();
config = await getConfig(tmpDir, logger2);
@@ -197852,7 +197864,7 @@ async function run4(action) {
);
config = getAbortedInitConfig(action, tmpDir);
}
const gitHubVersion = config?.gitHubVersion ?? await getGitHubVersion();
gitHubVersion = config?.gitHubVersion ?? await getGitHubVersion();
checkGitHubVersionInRange(gitHubVersion, logger2);
const repositoryNwo = getRepositoryNwo();
const features = initFeatures(
@@ -197874,7 +197886,7 @@ async function run4(action) {
config,
repositoryNwo,
features,
jobStatus2,
actionsJobStatus,
action.env,
logger2
);
@@ -197903,7 +197915,12 @@ async function run4(action) {
}
return;
}
const jobStatus = getFinalJobStatus(action, config);
const jobStatus = getFinalJobStatus(
action,
config,
actionsJobStatus,
gitHubVersion
);
logger2.info(`CodeQL job status was ${getJobStatusDisplayName(jobStatus)}.`);
const statusReportBase = await createStatusReportBase(
action.name,
@@ -197925,7 +197942,7 @@ async function run4(action) {
logger2.info("Status report sent for init-post step.");
}
}
function getFinalJobStatus(action, config) {
function getFinalJobStatus(action, config, actionsJobStatus, gitHubVersion) {
const existingJobStatus = getJobStatusFromEnvironment(action.env);
if (existingJobStatus !== void 0) {
return existingJobStatus;
@@ -197934,6 +197951,8 @@ function getFinalJobStatus(action, config) {
if (action.env.getOptional("CODEQL_ACTION_ANALYZE_DID_COMPLETE_SUCCESSFULLY" /* ANALYZE_DID_COMPLETE_SUCCESSFULLY */) === "true") {
action.env.export("CODEQL_ACTION_JOB_STATUS" /* JOB_STATUS */, "JOB_STATUS_SUCCESS" /* SuccessStatus */);
jobStatus = "JOB_STATUS_SUCCESS" /* SuccessStatus */;
} else if (actionsJobStatus === "cancelled" && supportsCancelledJobStatus(gitHubVersion)) {
jobStatus = "JOB_STATUS_CANCELLED" /* CancelledStatus */;
} else if (config !== void 0) {
jobStatus = "JOB_STATUS_CONFIGURATION_ERROR" /* ConfigErrorStatus */;
} else {
+343 -336
View File
File diff suppressed because it is too large. Load diff
+6 -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": {
@@ -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.
+6 -6
View File
@@ -266,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}' }}`,
@@ -286,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}' }}`,
@@ -321,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}' }}`,
+1 -1
View File
@@ -1 +1 @@
{"maximumVersion":"3.23","minimumVersion":"3.19"}
{"maximumVersion":"3.24","minimumVersion":"3.19"}
+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.
+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);
}