diff options
author | Earl Warren <contact@earl-warren.org> | 2024-03-11 11:46:38 +0100 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-03-11 11:46:38 +0100 |
commit | 616954df59c03484a0a9fd027ccf2b820a15d880 (patch) | |
tree | 18f70127cc3eb9f8f5ec76b8f641b97ac2b9e8fe | |
parent | [FORGEJO] feat(docker): Add flag to enable IPv6 in auto-created networks (#24) (diff) | |
download | forgejo-act-616954df59c03484a0a9fd027ccf2b820a15d880.tar.xz forgejo-act-616954df59c03484a0a9fd027ccf2b820a15d880.zip |
[FORGEJO] Revert "Don't set GITHUB_TOKEN (#2089)"v1.20.0
It is a breaking change.
This reverts commit 18b4714e38d4871947eff0acb7f1c8f4625fda9f.
-rw-r--r-- | pkg/runner/run_context.go | 1 | ||||
-rw-r--r-- | pkg/runner/step_test.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index b2b3627..8aa004c 100644 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -1208,6 +1208,7 @@ func (rc *RunContext) withGithubEnv(ctx context.Context, github *model.GithubCon env["GITHUB_REF"] = github.Ref env["GITHUB_REF_NAME"] = github.RefName env["GITHUB_REF_TYPE"] = github.RefType + env["GITHUB_TOKEN"] = github.Token env["GITHUB_JOB"] = github.Job env["GITHUB_REPOSITORY_OWNER"] = github.RepositoryOwner env["GITHUB_RETENTION_DAYS"] = github.RetentionDays diff --git a/pkg/runner/step_test.go b/pkg/runner/step_test.go index cdb870e..d08a129 100644 --- a/pkg/runner/step_test.go +++ b/pkg/runner/step_test.go @@ -182,6 +182,7 @@ func TestSetupEnv(t *testing.T) { "GITHUB_RUN_ID": "runId", "GITHUB_RUN_NUMBER": "1", "GITHUB_SERVER_URL": "https://", + "GITHUB_TOKEN": "", "GITHUB_WORKFLOW": "", "INPUT_STEP_WITH": "with-value", "RC_KEY": "rcvalue", |