Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the preview be protected on private repository so that only people with access can see the preview? #27

Closed
GuillaumeDesforges opened this issue Nov 25, 2022 · 1 comment
Labels
question Further information is requested

Comments

@GuillaumeDesforges
Copy link

In one of my organization, we have internal documents built in a private repository.
I would like to use this GitHub action to allow previews on PRs.
However, these previews should only be accessible for people who can access this private repository.

Does this GitHub Action handle this?
Thanks

@rossjrw rossjrw added the question Further information is requested label Dec 1, 2022
@rossjrw
Copy link
Owner

rossjrw commented Dec 1, 2022

With GitHub Enterprise Cloud you can deploy a private GitHub Pages site from a private repo: https://docs.github.com/en/enterprise-cloud@latest/pages/getting-started-with-github-pages/changing-the-visibility-of-your-github-pages-site. In this case, this Action just makes a new directory in that existing site, so it will be just as private or public as the main site.

On a standard GitHub subscription, I don't believe there's any way to change the visibility of a GitHub Pages site to anything other than public. In this case, I'd imagine that your internal documents are served by something other than GitHub Pages. You might still be able to get this Action to work for you.

If you have more details about your situation I might be able to help further, please feel free to respond. I'm going to mark this issue as close as it doesn't reflect an issue with the Action.

@rossjrw rossjrw closed this as completed Dec 1, 2022
@rossjrw rossjrw closed this as not planned Won't fix, can't repro, duplicate, stale Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants