Support clone private repository in runner

This commit is contained in:
Lunny Xiao authored and Jason Song committed 2022-11-25 17:48:47 +08:00
1 parent d8b401ab06
commit f55253e81d
2 files changed
+26 -10

No files matched your search

+3
View File
@@ -114,6 +114,9 @@ func (b *Basic) Verify(req *http.Request, w http.ResponseWriter, store DataStore
if err == nil && task != nil && task.Status.IsRunning() {
log.Trace("Basic Authorization: Valid AccessToken for task[%d]", task.ID)
store.GetData()["IsBotToken"] = true
store.GetData()["BotTaskID"] = task.ID
return bots_model.NewBotUser()
} else {
log.Error("GetRunnerByToken: %v", err)