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

Only set git auth if both username && password are specified #1079

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

olblak
Copy link
Member

@olblak olblak commented Jan 10, 2023

Signed-off-by: Olblak me@olblak.com

Gitea e2e started failing a week or two ago.
I first noticed it on try.gitea.io.
I assumed it was due to that service being an unstable one so I moved the test to codeberg but the same issue appeared yesterday.
After some quick testing, I noticed that configuring http auth with no username/password would trigger errors
This PR only set http auth if both username&password are defined

Test

To test this pull request, you can run the following commands:

go build -o bin/updatecli .
./bin/updatecli diff --config e2e/updatecli.d/success.d/gitea/scm.yaml --debug --clean=true

Also did some testing with private repo and it works as expected

Additional Information

Tradeoff

Potential improvement

Similarly to the Github scm, I am wondering if the username is needed

Signed-off-by: Olblak <me@olblak.com>
@olblak olblak added bug Something isn't working scm-gittea labels Jan 10, 2023
@olblak
Copy link
Member Author

olblak commented Jan 10, 2023

Merging for now so e2e pass.

@olblak olblak merged commit 649e3ab into updatecli:main Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working scm-gittea
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant