Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip “runners” if no perms #57

Open
srl295 opened this issue Feb 27, 2023 · 0 comments
Open

skip “runners” if no perms #57

srl295 opened this issue Feb 27, 2023 · 0 comments

Comments

@srl295
Copy link

srl295 commented Feb 27, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant