From 7a639ea9acb9cdc6119980b07eaf800581078ee3 Mon Sep 17 00:00:00 2001 From: Icereed Date: Thu, 18 Mar 2021 16:20:13 +0100 Subject: [PATCH] Enable GITHUB_COM_TOKEN environment variable When running this action on a private GitHub Enterprise with self-hosted runners and you own analyse a golang project you quickly run into GitHub.com rate-limiting. According to the docs (https://docs.renovatebot.com/self-hosting/#githubcom-token-for-release-notes) we need to add the environment variable `GITHUB_COM_TOKEN` to mitigate this. This was not yet picked up by the docker input parser. This commit will enable `GITHUB_COM_TOKEN` to be used for Renovate. --- src/input.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.ts b/src/input.ts index 48b4749f..573733ac 100644 --- a/src/input.ts +++ b/src/input.ts @@ -8,7 +8,7 @@ interface EnvironmentVariable { class Input { readonly options = { - envRegex: /^(?:RENOVATE_\w+|LOG_LEVEL)$/, + envRegex: /^(?:RENOVATE_\w+|LOG_LEVEL|GITHUB_COM_TOKEN)$/, configurationFile: { input: 'configurationFile', env: 'RENOVATE_CONFIG_FILE',