Skip to content

Latest commit

History

History
41 lines (25 loc) 路 2.31 KB

File metadata and controls

41 lines (25 loc) 路 2.31 KB

馃彟 Configure metrics for organizations

While metrics targets mainly user accounts, it's possible to render metrics for organization accounts.

Metrics (organization account)

*锔忊儯 Using metrics on organization

Setup is mostly the same as for user accounts. A personal access token from an user account is required excepted that read:org scope must be enabled, whether you are member of the target organization or not.

Add read:org scope to personal token Add read:org scope to personal token

user option will need to be set to organization name instead.

Example: render metrics for github organization

- uses: lowlighter/metrics@latest
  with:
    token: ${{ secrets.METRICS_TOKEN }}
    user: github

馃挕 If your organization using single sign-on, you may need to authorize your personal token access

馃挕 Plugins supporting organizations account are labeled with 馃懃 Organizations. Note that rendering consume way more API requests and huge organization may not actually be able to use a given plugin.

馃挕 To support private repositories, add repo scope

It is possible to host workflows in the .github repository of organizations, and display metrics on organization profiles.

*锔忊儯 Organizations memberships for user accounts

By default, GitHub only display public memberships. Membership visibility can be managed in the People tab of your organization.

Publish organization membership Publish organization membership

鈿狅笍 Seeing your organization membership in your profile does not mean that it is visible from other users! You can check this by viewing your profile in an private browser window.