matthiaszepper/GitHub API confine

This action can be used to obtain the remaining Github API quota and act accordingly.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
actionToTakeAction to take if the threshold is underrun: Sweep (fail) or sleep (wait for quota renewal).nosweep
thresholdAPI request threshold: Can be given as fraction of the limit (0.2 ; 20%) or absolute number of requests (50)no10%
delayAdditional delay in seconds to wait after the API quota reset.no1
alarmSet an figurative alarm clock for the maximum time in seconds to sleep. If no earlier API reset happens, sweep instead.no1800
resourceGithub API quota to use for the action: One of "core", "search", "graphql", "integration_manifest" or "code_scanning_upload"nocore
tokenGithub API token to use for the action.no${{ github.token }}
namedescription
remainingRemaining requests for the specified quota when queried.