Skip to content

Commit 6499c0c

Browse files
author
Eike Sören Haller
committed
disable permissioncheck override
1 parent e201c1c commit 6499c0c

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

src/acigithub/pullrequest.go

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,19 @@ func GetPrInfos(prNumber int, mergeCommitSha string) (standardPrInfos *models.St
7777
}
7878

7979
for _, comment := range issueComments {
80+
// FIXME: access must be restricted but GITHUB_TOKEN doesn't get informations.
81+
// Refs: https://docs.github.com/en/rest/collaborators/collaborators#list-repository-collaborators
82+
// Refs: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
83+
8084
// Must be a collaborator to have permission to create an override
81-
isCollaborator, _, err := GithubClient.Repositories.IsCollaborator(ctx, owner, repo, *comment.User.Login)
82-
if err != nil {
83-
return nil, nil, err
84-
}
85+
// isCollaborator, resp, err := GithubClient.Repositories.IsCollaborator(ctx, owner, repo, *comment.User.Login)
86+
// if err != nil {
87+
// return nil, nil, err
88+
// }
89+
// fmt.Println(resp.StatusCode)
8590

86-
if isCollaborator {
91+
// if isCollaborator {
92+
if true {
8793
aciVersionOverride := regexp.MustCompile(`aci_version_override: ([0-9]+\.[0-9]+\.[0-9]+)`)
8894
aciPatchLevel := regexp.MustCompile(`aci_patch_level: ([a-zA-Z]+)`)
8995

0 commit comments

Comments
 (0)