question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Github Enterprise Compatibility

See original GitHub issue

I can not find an option (a clean one) that allows to set the Server URL or Api Url and they seem to be hardcoded to github.com.

Prepare publishing assets
  [INFO] ForceOrphan: false
  /usr/bin/git clone --depth=1 --single-branch --branch gh-pages ***github.com/coresystemsFSM/blog.git /home/runners/actions_github_pages_1615224725805
  Cloning into '/home/runners/actions_github_pages_1615224725805'...
  remote: Invalid username or password.
  fatal: Authentication failed for 'https://github.com/coresystemsFSM/blog.git/'

This fails because our repo is at https://github.tools.sap/coresystemsFSM/blog

As we want to use your action with GitHub Enterprise we would need to be able to customise those.

Link to your contents

I see one entry here but I think its unused during a workflow. https://github.com/peaceiris/actions-gh-pages/blob/c1c219f526155987550e06bedfcc8e2fcc34f19b/Dockerfile#L36

Additional context

I would contribute a PR if you give me 1-2 pointers where I’d need to add things in your structure.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
jiminjcommented, Dec 14, 2021

I am running this action on a self-hosted runner dedicated to a GHES repository, and seeking a way to publish the pages to an external repository on github.com to deliver documents for our customers. The issue is, the current implementation is not applicable for this kind of usages.

export function getServerUrl(): URL {
  return new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
}

There should be a few ideas to resolve this. One approach I can imagine is introducing an optional parameter such as host (or external_host, whatever) which allows users to designate GitHub host URL. Another idea is to let external_repository env variable accept the repository address with a hostname, such as github.com/peaceiris/actions-gh-pages or github.com:peaceiris/actions-gh-pages. Any thoughts?

1reaction
mambaxcommented, Mar 10, 2021

image image

I would say: ⭐️⭐️⭐️⭐️⭐️

Read more comments on GitHub >

github_iconTop Results From Across the Web

About custom actions - GitHub Enterprise Server 3.7 Docs
Compatibility with GitHub Enterprise Server​​ You should instead use environment variables to refer to the GitHub Enterprise Server API: For the REST API,...
Read more >
Installing GitHub Enterprise Server on Azure
The GitHub Enterprise Server appliance requires a premium storage data disk, and is supported on any Azure VM that supports premium storage. Azure...
Read more >
System overview - GitHub Enterprise Server 3.4 Docs
GitHub Enterprise Server is suitable for use by enterprises that are subject to regulatory compliance, which helps to avoid issues that arise from...
Read more >
Supported operating systems - GitHub Docs
About supported operating systems. The following operating systems are supported for GitHub Desktop. macOS 10.12 or later; Windows 7 64-bit or later.
Read more >
Download GitHub Enterprise Server
Cloud platform upgrade package​​ Refer to the upgrade guide to verify version compatibility. Need help? Refer to the upgrade assistant to plan your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found