Fixes #27421 aritfact push and pull with authfile

Signed-off-by: Byounguk Lee <nimdrak@gmail.com>
This commit is contained in:
Byounguk Lee
2025-11-04 12:56:21 +00:00
parent 2b646e7cb7
commit c581e0b392
3 changed files with 53 additions and 0 deletions

View File

@@ -320,6 +320,7 @@ func PushArtifact(w http.ResponseWriter, r *http.Request) {
}
defer auth.RemoveAuthfile(authfile)
artifactsPushOptions.Authfile = authfile
if authConf != nil {
artifactsPushOptions.Username = authConf.Username
artifactsPushOptions.Password = authConf.Password