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

feat: allow fogg to authenticate with GH OAuth token #663

Merged
merged 6 commits into from
Jun 13, 2022

Conversation

jakeyheath
Copy link
Contributor

@jakeyheath jakeyheath commented Jun 13, 2022

Summary

This PR introduces a feature to fogg that allows the user to provide a Github OAuth token when doing module source downloading instead of SSH keys. This is handy for bot users and OAuth automation that use Fogg in the backend and don't have SSH keys. This should allow someone to do the following:

FOGG_GITHUBTOKEN=<token> fogg apply

Where the FOGG_GITHUBTOKEN is a personal access token or a token received through an OAuth flow.

Test Plan

  • Unit tests

References

(Optional) Additional links to provide more context.

@jakeyheath jakeyheath requested a review from a team as a code owner June 13, 2022 18:27
@jakeyheath jakeyheath requested a review from naihsuanshao June 13, 2022 18:27
@jakeyheath jakeyheath changed the title go feat: allow fogg to authenticate with GH OAuth token Jun 13, 2022
apply/apply_test.go Outdated Show resolved Hide resolved
apply/apply.go Outdated Show resolved Hide resolved
cmd/apply.go Outdated Show resolved Hide resolved
apply/apply.go Outdated Show resolved Hide resolved
apply/apply.go Outdated Show resolved Hide resolved
apply/apply.go Outdated Show resolved Hide resolved
@jakeyheath jakeyheath requested a review from edulop91 June 13, 2022 22:25
@jakeyheath jakeyheath merged commit a48a095 into main Jun 13, 2022
@jakeyheath jakeyheath deleted the heathj/add-oauth-command branch June 13, 2022 22:36
@jakeyheath jakeyheath restored the heathj/add-oauth-command branch June 28, 2022 19:06
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.

3 participants