Skip to content

Only set new GitHub SSH key and PAC if needed. #108

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

Closed
5 tasks done
a-t-0 opened this issue Oct 6, 2022 · 1 comment
Closed
5 tasks done

Only set new GitHub SSH key and PAC if needed. #108

a-t-0 opened this issue Oct 6, 2022 · 1 comment
Milestone

Comments

@a-t-0
Copy link
Member

a-t-0 commented Oct 6, 2022

  • To speed up the installation and dev/testing process, only create a GitHub SSH key and PAC if needed. Determine whether a function already exists that performs such a check. (Hint: Allow setting GitHub commit status using ssh key. #81)
  • First check if such a GitHub ssh key exists locally, and if yes:
  • Verify if it works, if it does work, skip adding a GitHub ssh key.
  • Then check if such a GitHub personal access token exists locally, and if yes:
  • Verify if it works, if it does work, skip adding a GitHub personal access token.

Relevant code:

set_personal_github_pat_and_verify() 
# TODO: first verify if the GitHub pat exists and can be used, before
	# creating a new one.
@a-t-0 a-t-0 added this to the Efficiency milestone Oct 10, 2022
@a-t-0
Copy link
Member Author

a-t-0 commented Oct 13, 2022

Done, it works.

@a-t-0 a-t-0 closed this as completed Oct 13, 2022
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

1 participant