Skip to content

Commit d81488b

Browse files
committed
Add new environment variable for Go binary path
1 parent 777395b commit d81488b

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

lib/environment.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/environment.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/environment.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,11 @@ export enum EnvVar {
6262
* rather that the init action.
6363
*/
6464
WORKFLOW_STARTED_AT = "CODEQL_WORKFLOW_STARTED_AT",
65+
66+
/**
67+
* The path where we initially discovered the Go binary in the system path
68+
* before replacing it with a wrapper script. We check this later to ensure
69+
* that it hasn't been tampered with by a late e.g. `setup-go` step.
70+
*/
71+
GO_BINARY_LOCATION = "CODEQL_ACTION_GO_BINARY",
6572
}

0 commit comments

Comments
 (0)