Understand GHES action search and fallback behavior
mainWhen GHES is enabled, pinact changes how it searches for GitHub Actions:
- If
fallback: false(Default):pinactsearches only the GHES instance. If an action is not found on GHES, an error is returned. This is the most secure mode and aligns with GHES defaults where GitHub Connect is disabled. - If
fallback: true:pinactfirst searches the GHES instance. If the GHES API returns a404 Not Foundfor the repository,pinactthen searchesgithub.com. Results are cached per repository to optimize performance.
Important Constraints:
- No Fallback for Comments: While action searching can fallback to
github.com, the creation of PR review comments (viapinact run -review) does not fallback. If GHES is enabled,pinactattempts to post the comment to the GHES instance. If this fails, an error is returned. - Single Instance: Only one GHES instance is supported at a time.
- Error Handling: If a GHES API request fails with any error other than a
404,pinactwill return that error immediately and will not attempt to fallback togithub.com.