aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private/actions.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/actions.go')
-rw-r--r--modules/private/actions.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/private/actions.go b/modules/private/actions.go
index 4ec77dc936..a22833632e 100644
--- a/modules/private/actions.go
+++ b/modules/private/actions.go
@@ -22,7 +22,7 @@ func GenerateActionsRunnerToken(ctx context.Context, scope string) (string, Resp
})
resp, extra := requestJSONResp(req, &responseText{})
- if resp == nil {
+ if extra.HasError() {
return "", extra
}
return resp.Text, extra