Skip to content

Commit

Permalink
Remove token-heavy checks from cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
azeemsgoogle committed Aug 23, 2021
1 parent b7c0d03 commit ab3b6a0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cron/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,11 @@ func main() {
}()

checksToRun := checks.AllChecks
// nolint
// FIXME :- deleting branch-protection
// The branch protection check needs an admin access to the repository.
// All of the checks from cron would fail and uses another call to the API.
// This will reduce usage of the API.
delete(checksToRun, checks.CheckBranchProtection)
// TODO: Temporarily remove checks which require lot of GitHub API token.
delete(checksToRun, checks.CheckSAST)
delete(checksToRun, checks.CheckCITests)
// TODO: Re-add Contributors check after fixing: #859.
delete(checksToRun, checks.CheckContributors)
for {
req, err := subscriber.SynchronousPull()
if err != nil {
Expand Down

0 comments on commit ab3b6a0

Please sign in to comment.