@@ -7,7 +7,7 @@ import * as github from "@actions/github";
77import * as io from "@actions/io" ;
88
99import type { Config } from "./config-utils" ;
10- import { Env , EnvVar } from "./environment" ;
10+ import { Env , EnvVar , ActionsEnvVars } from "./environment" ;
1111import { Logger } from "./logging" ;
1212import {
1313 doesDirectoryExist ,
@@ -22,28 +22,6 @@ import {
2222 */
2323declare const __CODEQL_ACTION_VERSION__ : string ;
2424
25- /**
26- * Enumerates known GitHub Actions environment variables that we expect
27- * to be set in a GitHub Actions environment.
28- */
29- export enum ActionsEnvVars {
30- GITHUB_ACTION_REPOSITORY = "GITHUB_ACTION_REPOSITORY" ,
31- GITHUB_API_URL = "GITHUB_API_URL" ,
32- GITHUB_EVENT_NAME = "GITHUB_EVENT_NAME" ,
33- GITHUB_EVENT_PATH = "GITHUB_EVENT_PATH" ,
34- GITHUB_JOB = "GITHUB_JOB" ,
35- GITHUB_REF = "GITHUB_REF" ,
36- GITHUB_REPOSITORY = "GITHUB_REPOSITORY" ,
37- GITHUB_RUN_ATTEMPT = "GITHUB_RUN_ATTEMPT" ,
38- GITHUB_RUN_ID = "GITHUB_RUN_ID" ,
39- GITHUB_SERVER_URL = "GITHUB_SERVER_URL" ,
40- GITHUB_SHA = "GITHUB_SHA" ,
41- GITHUB_WORKFLOW = "GITHUB_WORKFLOW" ,
42- RUNNER_NAME = "RUNNER_NAME" ,
43- RUNNER_OS = "RUNNER_OS" ,
44- RUNNER_TEMP = "RUNNER_TEMP" ,
45- }
46-
4725/**
4826 * Abstracts over GitHub Actions functions so that we do not have to stub
4927 * global functions in tests.
0 commit comments