Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support plugins from private Pulumi repos (#9185)
* Support plugins from private Pulumi repos This uses the same environment vars that we we're using for experimental private repos. That is GITHUB_TOKEN or GITHUB_ACTOR and GITHUB_PERSONAL_ACCESS_TOKEN. This allows us to develop plugins in private repos but continue to use our standard plugin flow. * Add test * Add to CHANGELOG * Only use GITHUB_TOKEN As described in https://docs.github.com/en/rest/overview/resources-in-the-rest-api#authentication we should be using the Authorization header. * Fix tests * Improve download tests * lint * Unauth tests need to make sure GITHUB_TOKEN is clear * Update CHANGELOG * Log a warning about GITHUB_PERSONAL_ACCESS_TOKEN
- Loading branch information
Showing
3 changed files
with
146 additions
and
71 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.