Feature: support GitHub enterprise#20
Feature: support GitHub enterprise#20marcellodesales wants to merge 31 commits intoFinatext:mainfrom
Conversation
d1faf16 to
7dbdfb4
Compare
🔴 Failure in GHES tests
Example
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…d-for-mirrors 🐹 ♻️ support enterprise env vars in pin.go
What changed • cmd/gha-fix/pin.go ◦ Added --restrict-to-files (comma-separated list) and bound it to viper key pin.restrict-to-files. ◦ If --restrict-to-files is set, pin will only process those files (it passes that list into the existing rewrite loop). ◦ If you provide both --restrict-to-files and positional file args, it exits with an error (to avoid ambiguous behavior). ◦ Added debug logging for the new flag (cobra + viper effective values). • README.md ◦ Documented pin.restrict-to-files and added usage examples. Usage (You can also pass it with a space instead of =: --restrict-to-files .github/workflows/a.yml,.github/workflows/b.yml.)
|
@taiki45 here's the full implementation of your solution tested in Github Enterprise server following the requirements NOT supported by the original inspired solution we discussed the other day! |
|
Hi @marcellodesales, thanks for your interest in gha-fix and for putting together this comprehensive implementation for GitHub Enterprise support! Unfortunately, I’ve since moved on from Finatext, so I no longer have the permissions or bandwidth to review and merge PRs on this repo. I’d recommend maintaining this as your own fork — it looks like you’ve already done substantial work and your fork could serve as a great standalone solution for GHES users. That way you’d have full control over releases and direction. Sorry I can’t be of more help here, and best of luck with the project! |

🎉 Support Github Enterprise Server/Cloud
env.GITHUB_API_SERVERin case it's provided for ALL API calls without any fallback🐛 Bugfixes
📸 Screenshots
Note
reviewdog.Here's an example on Github Enterprise Server, bypassing the ReviewDog's API Token and using the Github Actions approach:
✅ Test Cases
📚 Docs
⌨️ Tests
⌨️ Test with wrong token
⌨️ Tests without Github.com token
⌨️ Tests with fallback
https://api.github.com/repos/dependabot/fetch-metadata/tagsmay also be throttled for a developer without an GITHUB_TOKEN.