diff --git a/packer/plugin-getter/github/getter.go b/packer/plugin-getter/github/getter.go index 10ab5b1cb..c34e092a8 100644 --- a/packer/plugin-getter/github/getter.go +++ b/packer/plugin-getter/github/getter.go @@ -21,7 +21,7 @@ import ( ) const ( - ghTokenAccessor = "PKR_GITHUB_API_TOKEN" + ghTokenAccessor = "PACKER_GITHUB_API_TOKEN" defaultUserAgent = "packer-plugin-getter" ) diff --git a/website/content/docs/commands/init.mdx b/website/content/docs/commands/init.mdx index 2e631a931..db7115b68 100644 --- a/website/content/docs/commands/init.mdx +++ b/website/content/docs/commands/init.mdx @@ -28,7 +28,7 @@ per hour one IP can do](https://docs.github.com/en/developers/apps/rate-limits-for-github-apps#normal-user-to-server-rate-limits). Packer will do its best to avoid hitting those limits and in an average local usage this should not be an issue. Otherwise you can set the -`PKR_GITHUB_API_TOKEN` env var in order to get more requests per hour. Go to +`PACKER_GITHUB_API_TOKEN` env var in order to get more requests per hour. Go to your personal [access token page](https://github.com/settings/tokens) to generate a new token. diff --git a/website/content/docs/configure.mdx b/website/content/docs/configure.mdx index dfa65c554..60aae89fc 100644 --- a/website/content/docs/configure.mdx +++ b/website/content/docs/configure.mdx @@ -110,9 +110,9 @@ each can be found below: - `PACKER_CONFIG_DIR` - The location for the home directory of Packer. See [Packer's home directory](#packer-s-home-directory) for more. -- `PKR_GITHUB_API_TOKEN` - When using Packer init on HCL2 templates, Packer +- `PACKER_GITHUB_API_TOKEN` - When using Packer init on HCL2 templates, Packer queries the public API from Github which limits the ammount of queries on can - set the `PKR_GITHUB_API_TOKEN` with a Github Token to make it higher. + set the `PACKER_GITHUB_API_TOKEN` with a Github Token to make it higher. - `PACKER_LOG` - Setting this to any value other than "" (empty string) or "0" will enable the logger. See the [debugging