FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix integration tests on v1 by henrymercer · Pull Request #1069 · github/codeql-action · GitHub

Fix integration tests on v1 - #1069

Merged
henrymercer merged 1 commit into
releases/v2from
henrymercer/fix-integration-tests-on-v1
May 11, 2022
Merged

henrymercer merged 1 commit into
releases/v2from
henrymercer/fix-integration-tests-on-v1

Conversation

henrymercer commented May 11, 2022
edited
Loading

Copy link
Copy Markdown
Contributor

The GitHub API client coerces fake-server-url to the Dotcom API URL, which means commands like util.getGitHubVersion will call the Dotcom API with the fake-token, resulting in 401s.

We therefore use the Dotcom URL instead and additionally stub util.getGitHubVersion (with the Dotcom URL it's no longer necessary this, but it's good practice).

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

The GitHub API client coerces `fake-server-url` to the Dotcom API URL,
which means commands like `util.getGitHubVersion` will call the Dotcom
API with the `fake-token`, resulting in 401s.

We therefore use the Dotcom URL instead and additionally stub
`util.getGitHubVersion` as a good practice (it's no longer necessary).
henrymercer requested a review from a team as a code owner May 11, 2022 14:54
henrymercer changed the base branch from main to releases/v2 May 11, 2022 14:55
henrymercer merged commit 2f58583 into releases/v2 May 11, 2022
henrymercer deleted the henrymercer/fix-integration-tests-on-v1 branch May 11, 2022 15:48
github-actions Bot mentioned this pull request May 11, 2022
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL