From eca1b9c4782c1f92afee62ed52582665468a983d Mon Sep 17 00:00:00 2001 From: Taiju Muto Date: Mon, 1 Feb 2021 14:59:51 +0900 Subject: [PATCH] Add lacking environment variables. (#513) --- pkg/runner/run_context.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index d9b632d..98619a4 100644 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -583,6 +583,9 @@ func (rc *RunContext) withGithubEnv(env map[string]string) map[string]string { env["GITHUB_SHA"] = github.Sha env["GITHUB_REF"] = github.Ref env["GITHUB_TOKEN"] = github.Token + env["GITHUB_SERVER_URL"] = "https://github.com" + env["GITHUB_API_URL"] = "https://api.github.com" + env["GITHUB_GRAPHQL_URL"] = "https://api.github.com/graphql" return env }