Skip to content

feat: allow username and password authentication#8

Open
spoukke wants to merge 1 commit into
mainfrom
feat/username-password-auth
Open

feat: allow username and password authentication#8
spoukke wants to merge 1 commit into
mainfrom
feat/username-password-auth

Conversation

@spoukke
Copy link
Copy Markdown
Contributor

@spoukke spoukke commented Oct 15, 2021

No description provided.

@spoukke spoukke requested a review from busser November 8, 2021 08:22
Comment thread main.go
if err := checkoutGitRepository(sshPrivateKey, workingDir, repositoryURL, gitBranch); err != nil {
auth, err := setAuth(username, password, sshPrivateKey)
if err != nil {
log.Fatalf("failed to set authentication with username %q, password %q, sshPrivateKey %q: %w", username, password, sshPrivateKey, err)
Copy link
Copy Markdown
Contributor

@busser busser Nov 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not log the private key.

Copy link
Copy Markdown
Contributor

@busser busser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First priority: confirm that it works.
Then: refactor to handle different options cleanly.

@spoukke spoukke linked an issue Dec 13, 2021 that may be closed by this pull request
@spoukke spoukke marked this pull request as ready for review December 13, 2021 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable username/password authentication

2 participants