File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
components/server/ee/src/prebuilds Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export class GitLabApp {
60
60
if ( eventType !== "Push Hook" || ! secretToken ) {
61
61
log . warn ( "Unhandled GitLab event." , { event : eventType , secretToken : ! ! secretToken } ) ;
62
62
res . status ( 200 ) . send ( "Unhandled event." ) ;
63
- await this . webhookEvents . updateEvent ( event . id , { status : "dismissed_unauthorized " } ) ;
63
+ await this . webhookEvents . updateEvent ( event . id , { status : "ignored " } ) ;
64
64
return ;
65
65
}
66
66
@@ -75,11 +75,11 @@ export class GitLabApp {
75
75
TraceContext . setError ( { span } , error ) ;
76
76
}
77
77
if ( ! user ) {
78
- // If the webhook installer is no longer found in Gitpod's DB
79
- // we should send a UNAUTHORIZED signal.
78
+ // Gitpod is not supposed to return 4xx codes on issues with project permissions.
80
79
span . finish ( ) ;
81
- res . status ( 401 ) . send ( "Unauthorized." ) ;
80
+ res . status ( 200 ) . send ( "Unauthorized." ) ;
82
81
await this . webhookEvents . updateEvent ( event . id , { status : "dismissed_unauthorized" } ) ;
82
+ // TODO(at) explore ways to mark a project having issues with permissions.
83
83
return ;
84
84
}
85
85
/** no await */ this . handlePushHook ( { span } , context , user , event ) . catch ( ( error ) => {
You can’t perform that action at this time.
0 commit comments