Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GITHUB_TOKEN is used instead of BUNDLESIZE_GITHUB_TOKEN when present #264

Closed
oliverviljamaa opened this issue Nov 21, 2018 · 1 comment
Closed

Comments

@oliverviljamaa
Copy link

Do you want to request a feature or report a bug?
Bug.

What is the current behavior?
GITHUB_TOKEN environment variable (although undocumented) is used instead of BUNDLESIZE_GITHUB_TOKEN when present. This results in bundlesize checks being authored by the owner of GITHUB_TOKEN rather than the owner of BUNDLESIZE_GITHUB_TOKEN (causing the wrong avatar and issues with the message).

If the current behavior is a bug, please provide the steps to reproduce.

  1. Set GITHUB_TOKEN as your personal access token (created here: https://github.com/settings/tokens) in CI.
  2. Set BUNDLESIZE_GITHUB_TOKEN as the bundlesize token (retrieved as a result of authorizing the bundlesize application) in CI.
  3. Run bundlesize in CI.
  4. The GitHub status check will be authored by your account, not bundlesize, as it should.

What is the expected behavior?
BUNDLESIZE_GITHUB_TOKEN is preferred when both GITHUB_TOKEN and BUNDLESIZE_GITHUB_TOKEN are present (as it is more specific and allows having the other token for various other checks). The fact that GITHUB_TOKEN is checked as a fallback is documented.
or
Only BUNDLESIZE_GITHUB_TOKEN is considered.

Please mention other relevant information.

  • node v8.12.0
  • npm v6.4.1
  • bundlesize v0.17.0
  • CircleCI
@quantizor
Copy link
Contributor

This can be closed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants