mirror of https://github.com/fluxcd/flux2.git
fix: trim CRLF from password read from stdin
bufio's reader.ReadString includes any CRLF characters and we don't want these in the resulting token because this leads to errors in the authentication like this: ``` ✗ failed to get Git repository "https://github.com/kingdon-ci/jenkins-infra": Get "https://api.github.com/repos/kingdon-ci/jenkins-infra": net/http: invalid header field value "Bearer gho_NNNNNsecrettokenMMMMM\n" for key Authorization ``` Signed-off-by: Max Jonas Werner <mail@makk.es>pull/2038/head
parent
31771f3575
commit
be1ce74dc5
Loading…
Reference in New Issue