Understand gha-trigger GitHub API rate limit mitigation
To prevent GitHub API rate limiting and ensure scalability, gha-trigger minimizes API calls. This design choice results in specific trade-offs regarding the level of detail available in certain outputs:
- Workflow Run URLs: Instead of providing a specific Job URL (which would require an API call to retrieve the Job ID),
gha-triggerprovides the broader workflow run URL:$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID. - GHA_SHA Availability: For certain GitHub events (such as
release),gha-triggerdoes not set theGHA_SHAvariable because retrieving the default branch's commit hash would require an additional API call.