diff options
Diffstat (limited to 'modules/private/actions.go')
-rw-r--r-- | modules/private/actions.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/private/actions.go b/modules/private/actions.go index c924dac2cd..4ec77dc936 100644 --- a/modules/private/actions.go +++ b/modules/private/actions.go @@ -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 } |