Skip to content

Commit

Permalink
Remove token-heavy checks from cron job (#882)
Browse files Browse the repository at this point in the history
Co-authored-by: Azeem Shaikh <azeems@google.com>
  • Loading branch information
azeemshaikh38 and azeemsgoogle committed Aug 23, 2021
1 parent 77a4160 commit bb70e15
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 bb70e15

Please sign in to comment.