Skip to content

Commit

Permalink
fix: rate limit gitlab requests to the raw endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
cuserox committed Sep 5, 2024
1 parent 417df53 commit 9c65e89
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ export class GitlabTokenStorage extends GitTokenStorage {
this.gitlabClient = new Gitlab({
token: this.secret,
host: this.baseUrl || undefined,
rateLimits: {
'/projects/*/repository/files/*/raw': 4,
},
});
this.source = branch;
this.previousSourceBranch = previousSourceBranch;
Expand Down

0 comments on commit 9c65e89

Please sign in to comment.