Home > Mobile >  GitHub Actions - Missing Environments settings menu for public repo under an organistaion
GitHub Actions - Missing Environments settings menu for public repo under an organistaion

Time:07-20

I'm looking to create a series of environments for my GitHub Actions to deploy to. According to documentation here: https://docs.github.com/en/github-ae@latest/actions/deployment/targeting-different-environments/using-environments-for-deployment

"Environments, environment protection rules, and environment secrets are available in public repositories for all products."

My Repository is under an organistaion, and is public. I don't see the Environments menu under the settings page though?

CodePudding user response:

This was due to the organisation being on a "Legacy Platinum Plan", which is no longer offered and doesn't have this feature enabled.

The solution is to move to a Currently Offered plan which has that feature enabled.

CodePudding user response:

If you look at the docs for GitHub Free/Pro/Team about environments, there is this note:

Note: You can only configure environments for public repositories. If you convert a repository from public to private, any configured protection rules or environment secrets will be ignored, and you will not be able to configure any environments. If you convert your repository back to public, you will have access to any previously configured protection rules and environment secrets.

Organizations that use GitHub Enterprise Cloud can configure environments for private repositories. For more information, see the GitHub Enterprise Cloud documentation. For more information about how you can try GitHub Enterprise Cloud for free, see "Setting up a trial of GitHub Enterprise Cloud."

So, you can't use environments in private repositories, unless you're on GitHub Enterprise (or AE).

  • Related