Skip to content

skip “runners” if no perms #57

@srl295

Description

@srl295

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions