Add token to init-enterprise (#57246) (#57248)

(cherry picked from commit f0b882ebad)
This commit is contained in:
Dimitris Sotirakis
2022-10-19 04:37:36 -04:00
committed by GitHub
parent cce767fee4
commit 7593d5880f
2 changed files with 25 additions and 13 deletions
+4 -2
View File
@@ -111,8 +111,10 @@ def init_enterprise_step(ver_mode):
}
token = "--github-token $${GITHUB_TOKEN}"
elif ver_mode == 'release-branch':
environment = {}
token = ""
environment = {
'GITHUB_TOKEN': from_secret(github_token),
}
token = "--github-token $${GITHUB_TOKEN}"
else:
environment = {}
token = ""