skip “runners” if no perms
Opened this issue · 0 comments
srl295 commented
i don't have any hosted runners, but wanted to keep an eye on the workflow status.
Using this patch locally. Allows use with a find grained token.
diff --git a/pkg/metrics/metrics.go b/pkg/metrics/metrics.go
index c9206d8..e375193 100644
--- a/pkg/metrics/metrics.go
+++ b/pkg/metrics/metrics.go
@@ -59,10 +59,10 @@ func InitMetrics() {
}
go getBillableFromGithub()
- go getRunnersFromGithub()
- go getRunnersOrganizationFromGithub()
+ //go getRunnersFromGithub()
+ //go getRunnersOrganizationFromGithub()
go getWorkflowRunsFromGithub()
- go getRunnersEnterpriseFromGithub()
+ //go getRunnersEnterpriseFromGithub()
}
// NewClient creates a Github Client