[PR #658] [MERGED] GitHub Enterprise support #1540

Closed
opened 2026-03-01 21:51:37 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/658
Author: @ZauberNerd
Created: 5/4/2021
Status: Merged
Merged: 5/5/2021
Merged by: @cplee

Base: masterHead: ghe-support


📝 Commits (6)

  • b95fafa Add option to specify custom GitHub instance
  • 7152e3b Use correct GHE API endpoint URLs
  • 18d133a Extract slug from GitHub Enterprise URLs
  • d47b93f Use GITHUB_TOKEN for clone authenticate if provided
  • caf0a9e Add section about using act on GitHub Enterprise to README
  • 93d1653 Set GitHubInstance in runnerConfig in runner_test

📊 Changes

9 files changed (+68 additions, -17 deletions)

View changed files

📝 README.md (+10 -0)
📝 cmd/input.go (+1 -0)
📝 cmd/root.go (+2 -0)
📝 pkg/common/git.go (+34 -10)
📝 pkg/common/git_test.go (+1 -1)
📝 pkg/runner/run_context.go (+6 -1)
📝 pkg/runner/runner.go (+1 -0)
📝 pkg/runner/runner_test.go (+1 -0)
📝 pkg/runner/step_context.go (+12 -5)

📄 Description

This is a continuation of @catthehacker https://github.com/catthehacker/act-fork/tree/enterprise-github

  • We've updated the GHE URLs, because the API and GraphQL URLs are different on GHE than on github.com
  • We've updated the slug matching in common/git.go to match only the configured GHE instance

This is a draft for now, because we haven't tested it yet. We'll update and ping once we're ready to merge.

Closes https://github.com/nektos/act/issues/497


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/658 **Author:** [@ZauberNerd](https://github.com/ZauberNerd) **Created:** 5/4/2021 **Status:** ✅ Merged **Merged:** 5/5/2021 **Merged by:** [@cplee](https://github.com/cplee) **Base:** `master` ← **Head:** `ghe-support` --- ### 📝 Commits (6) - [`b95fafa`](https://github.com/nektos/act/commit/b95fafa520545a84f31e679c99855dda37d44a99) Add option to specify custom GitHub instance - [`7152e3b`](https://github.com/nektos/act/commit/7152e3b363a52f4f38506ded332a3c2f0341637b) Use correct GHE API endpoint URLs - [`18d133a`](https://github.com/nektos/act/commit/18d133af71e813ba0c33edd8f5fe5383baa7dfd7) Extract slug from GitHub Enterprise URLs - [`d47b93f`](https://github.com/nektos/act/commit/d47b93f48e37a4f8826a1a18dcc9b06cef2e3b63) Use GITHUB_TOKEN for clone authenticate if provided - [`caf0a9e`](https://github.com/nektos/act/commit/caf0a9edd2c04f85546c4d0433c0bc93c2d58c10) Add section about using act on GitHub Enterprise to README - [`93d1653`](https://github.com/nektos/act/commit/93d16530d408da2fb38e5d00623e6392edebd765) Set GitHubInstance in runnerConfig in runner_test ### 📊 Changes **9 files changed** (+68 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+10 -0) 📝 `cmd/input.go` (+1 -0) 📝 `cmd/root.go` (+2 -0) 📝 `pkg/common/git.go` (+34 -10) 📝 `pkg/common/git_test.go` (+1 -1) 📝 `pkg/runner/run_context.go` (+6 -1) 📝 `pkg/runner/runner.go` (+1 -0) 📝 `pkg/runner/runner_test.go` (+1 -0) 📝 `pkg/runner/step_context.go` (+12 -5) </details> ### 📄 Description This is a continuation of @catthehacker https://github.com/catthehacker/act-fork/tree/enterprise-github * We've updated the GHE URLs, because the API and GraphQL URLs are different on GHE than on github.com * We've updated the slug matching in common/git.go to match only the configured GHE instance ~~This is a draft for now, because we haven't tested it yet. We'll update and ping once we're ready to merge.~~ Closes https://github.com/nektos/act/issues/497 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:51:37 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1540
No description provided.