Fix: Support app auth and PAT via two provider instances#1538
Merged
kfcampbell merged 3 commits intointegrations:mainfrom Feb 17, 2023
Merged
Fix: Support app auth and PAT via two provider instances#1538kfcampbell merged 3 commits intointegrations:mainfrom
kfcampbell merged 3 commits intointegrations:mainfrom
Conversation
Contributor
|
This PR does not take into account your proposed alias keyword in #1537. Do you view this as a transitional step? Are you going to be updating this PR? |
Contributor
|
Alright, I've spent a little more time looking into this. I can confirm the changes are as described:
The PR that introduced app auth, #753, mentions that the app_auth block "conflicts deliberately" with the token, but doesn't specify why. If this change unblocks others, I'm happy to ship it. |
Contributor
Author
|
@kfcampbell any progress? Looking forward to next gh provider release with a fix :) |
Contributor
Author
|
@kfcampbell Is there an update? Looking forward to seeing this in a new version |
kfcampbell
approved these changes
Feb 17, 2023
Contributor
kfcampbell
left a comment
There was a problem hiding this comment.
I'll get this merged now and released soon.
reedloden
pushed a commit
to reedloden/terraform-provider-github
that referenced
this pull request
Jun 14, 2023
Co-authored-by: Nick Floyd <139819+nickfloyd@users.noreply.github.com> Co-authored-by: Keegan Campbell <me@kfcampbell.com>
avidspartan1
pushed a commit
to avidspartan1/terraform-provider-github
that referenced
this pull request
Feb 5, 2024
Co-authored-by: Nick Floyd <139819+nickfloyd@users.noreply.github.com> Co-authored-by: Keegan Campbell <me@kfcampbell.com>
1 task
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #1537
Behavior
Before the change?
The following code errors if both
GITHUB_APP_...andGITHUB_TOKENenv vars are set:The error message looks like this:
After the change?
app_auth {}block set => Provider uses theGITHUB_APP_...env vars (currently the case*), ignoresGITHUB_TOKENenv var (new)app_auth {}block not set => Provider uses theGITHUB_TOKENenv var (currently the case*), ignoresGITHUB_APP_...env vars (currently the case*)Other information
Additional info
Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!
Type: Breaking changelabel)If
Yes, what's the impact:Pull request type
Please add the corresponding label for change this PR introduces:
Type: BugType: FeatureType: DocumentationType: Maintenance