forked from forgejo/forgejo
Backport #28791 by @yp05327 panic:  After:  Co-authored-by: yp05327 <576951401@qq.com> (cherry picked from commitdf694f6a7d
)
This commit is contained in:
parent
a21fdc881a
commit
367561fff2
3 changed files with 9 additions and 0 deletions
|
@ -22,5 +22,8 @@ func GenerateActionsRunnerToken(ctx context.Context, scope string) (string, Resp
|
|||
})
|
||||
|
||||
resp, extra := requestJSONResp(req, &responseText{})
|
||||
if resp == nil {
|
||||
return "", extra
|
||||
}
|
||||
return resp.Text, extra
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue