Skip to content

Commit aa76aad

Browse files
Allowlist GitLab sending commit status correctly (#185)
1 parent 285050b commit aa76aad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ And if `allowCodeAccess` is set, additionally:
208208
- GET `https://gitlab.example.com/api/v4/projects/:project/repository/compare`
209209
- GET `https://gitlab.example.com/api/v4/projects/:project/repository/files/*`
210210
- GET `https://gitlab.example.com/api/v4/projects/:project/repository/merge_base`
211-
- GET `https://gitlab.example.com/api/v4/projects/:project/statuses/:commit`
212211
- POST `https://gitlab.example.com/:namespace/:project/git-upload-pack`
212+
- POST `https://gitlab.example.com/api/v4/projects/:project/statuses/:commit`
213213
<!-- EndAutogeneratedAllowList:Gitlab.AllowCodeAccess -->
214214

215215
### Bitbucket

pkg/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ func PopulateAllowLists(config *Config) error {
870870
// Update commit status
871871
AllowlistItem{
872872
URL: gitLabBaseUrl.JoinPath("/projects/:project/statuses/:commit").String(),
873-
Methods: ParseHttpMethods([]string{"GET"}),
873+
Methods: ParseHttpMethods([]string{"POST"}),
874874
SetRequestHeaders: headers,
875875
},
876876
// discover refs

0 commit comments

Comments
 (0)