matthiaszepper/GitHub API confine
This action can be used to obtain the remaining Github API quota and act accordingly.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| actionToTake | Action to take if the threshold is underrun: Sweep (fail) or sleep (wait for quota renewal). | no | sweep |
| threshold | API request threshold: Can be given as fraction of the limit (0.2 ; 20%) or absolute number of requests (50) | no | 10% |
| delay | Additional delay in seconds to wait after the API quota reset. | no | 1 |
| alarm | Set an figurative alarm clock for the maximum time in seconds to sleep. If no earlier API reset happens, sweep instead. | no | 1800 |
| resource | Github API quota to use for the action: One of "core", "search", "graphql", "integration_manifest" or "code_scanning_upload" | no | core |
| token | Github API token to use for the action. | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| remaining | Remaining requests for the specified quota when queried. |