mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2465] How do I override and set a private github server? #1140
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1140
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kingrichard2005 on GitHub (Sep 18, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2465
Bug report info
Command used with act
Describe issue
I'm using act version 0.2.67, I have a workflow that uses a private Github Enterprise server to host my custom GHA actions, e.g. https://git.my-org.com/myteam/gha-setup-node. The problem is when I run the command it looks at the public https://github.com instead of my private Github enterprise server https://git.my-org.com. Why does that happen? And how can we fix it? I'm also not sure why it says the "Job succeeded" then subsequently reports the error due to the repo not being found. Help is appreciated
[my-api-ci/install-packages] Unable to clone https://github.com/myteam/gha-setup-node refs/heads/v1: repository not found
[myapi-ci/install-packages] Cleaning up container for job install-packages
[my-api-ci/install-packages] � Job succeeded
Error: repository not found
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
@kingrichard2005 commented on GitHub (Sep 18, 2024):
For anyone else with the same issue, I tested out some more and turns out I had to update my
.actrcfile to add--github-instance git.my-org.com.What threw me off was that this was not an issue with older versions of
actand was the first time I'd encountered this specific issue so I didn't consider that missing config in my.actrcto be the issue, but hopefully this helps anyone else who runs into this same configuration issue. Here is a snippet of the output from rerunning after making this update