mirror of
https://github.com/github/codeql-action.git
synced 2026-05-07 22:30:44 +00:00
Clear GHA JAVA_HOME_* env vars for discoverActionsJdks test
This commit is contained in:
@@ -66,6 +66,13 @@ test("checkJavaEnvironment - logs values when variables are set", (t) => {
|
||||
});
|
||||
|
||||
test("discoverActionsJdks - discovers JDK paths", (t) => {
|
||||
// Clear GHA variables that may interfere with this test in CI.
|
||||
for (const envVar of Object.keys(process.env)) {
|
||||
if (envVar.startsWith("JAVA_HOME_")) {
|
||||
delete process[envVar];
|
||||
}
|
||||
}
|
||||
|
||||
const jdk8 = "/usr/lib/jvm/temurin-8-jdk-amd64";
|
||||
const jdk17 = "/usr/lib/jvm/temurin-17-jdk-amd64";
|
||||
const jdk21 = "/usr/lib/jvm/temurin-21-jdk-amd64";
|
||||
|
||||
Reference in New Issue
Block a user