Add new environment variable for Go binary path

This commit is contained in:
Michael B. Gale 2023-09-28 11:45:38 +01:00
parent d718153f0a
commit c08086a26a
No known key found for this signature in database
GPG key ID: FF5E2765BD00628F
3 changed files with 14 additions and 1 deletions

View file

@ -62,4 +62,11 @@ export enum EnvVar {
* rather that the init action.
*/
WORKFLOW_STARTED_AT = "CODEQL_WORKFLOW_STARTED_AT",
/**
* The path where we initially discovered the Go binary in the system path
* before replacing it with a wrapper script. We check this later to ensure
* that it hasn't been tampered with by a late e.g. `setup-go` step.
*/
GO_BINARY_LOCATION = "CODEQL_ACTION_GO_BINARY",
}