mirror of
https://github.com/github/codeql-action.git
synced 2026-12-03 04:11:06 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59eef11129 | ||
|
|
850ee97c37 | ||
|
|
d4e321dbb9 | ||
|
|
c072164c77 | ||
|
|
b325c8f679 | ||
|
|
3a94bf46da | ||
|
|
ce127d35aa | ||
|
|
6d2038c23d | ||
|
|
b36689e70c | ||
|
|
3390e9dd7f | ||
|
|
c60d3bc058 | ||
|
|
efefe66b56 | ||
|
|
394261f58c | ||
|
|
0aa26b21cc | ||
|
|
c87aca8010 | ||
|
|
9b30dda55f | ||
|
|
e624ebc48d | ||
|
|
776237d428 | ||
|
|
743c02edee | ||
|
|
c27036f19d | ||
|
|
b69d569f2c |
No files matched your search
+2
-2
@@ -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
@@ -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
|
||||
|
||||
Generated
+1
-1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
|
||||
|
||||
Generated
+2
-2
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
|
||||
|
||||
Generated
+2
-2
@@ -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
|
||||
|
||||
Generated
+2
-2
@@ -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
|
||||
|
||||
Generated
+2
-2
@@ -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
@@ -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
@@ -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
@@ -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
|
||||
|
||||
Generated
+2
-2
@@ -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
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Generated
+35
-16
@@ -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 {
|
||||
|
||||
Generated
+343
-336
File diff suppressed because it is too large.
Load diff
+6
-6
@@ -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,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
@@ -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 @@
|
||||
{"maximumVersion":"3.23","minimumVersion":"3.19"}
|
||||
{"maximumVersion":"3.24","minimumVersion":"3.19"}
|
||||
@@ -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
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user