HomeDevCentral

Check GitHub account storage usage

Description

Check GitHub account storage usage

Summary:
Shared storage for packages or git-lfs is 10 GB per month.

This check queries the GitHub API, using the REST API endpoints for billing,
and raises a warning if we're using more than 8 Go (80%).

This requires authentication. GitHub Token is stored in Vault,
this check uses a new approle devised for monitoring checks.

Reference: https://docs.github.com/en/rest/billing/billing

Test Plan:

  • credentials provisioned on WindRiver
  • run the check script, get 0 exit code

Reviewers: DorianWinty

Reviewed By: DorianWinty

Differential Revision: https://devcentral.nasqueron.org/D3432

Details

Provenance
derecksonAuthored on Sep 6 2024, 23:28
derecksonPushed on Sep 20 2024, 23:22
Reviewer
DorianWinty
Differential Revision
D3432: Check GitHub account storage usage
Parents
rOPSbd0b5f1b8293: Update dev software for devserver role
Branches
Unknown
Tags
Unknown