lfarci / github-actions

Preparation resources for the GitHub Actions certification
0 stars 0 forks source link

Explain how to manage organization-level encrypted secrets #71

Closed lfarci closed 4 months ago

lfarci commented 4 months ago

Managing organization-level encrypted secrets in an enterprise involves creating, updating, and deleting secrets that are available to all repositories within the organization. Here are the steps:

  1. Creating a new secret:

    • Navigate to your GitHub Enterprise Server homepage.
    • Click on your profile photo in the upper-right corner, then click on "Your organizations".
    • Click on the name of your organization.
    • Under your organization name, click on "Settings".
    • In the left sidebar, click on "Secrets".
    • Click on "New organization secret".
    • Type a name for your secret in the "Name" input box.
    • Enter the value for your secret.
    • Choose the repositories that can access this secret.
    • Click on "Add secret".
  2. Updating an existing secret:

    • Follow the same steps as above to navigate to the "Secrets" page.
    • Click on the "Update" button next to the secret you want to update.
    • Update the value of the secret and/or the repositories that can access it.
    • Click on "Update secret".
  3. Deleting a secret:

    • Follow the same steps as above to navigate to the "Secrets" page.
    • Click on the "Delete" button next to the secret you want to delete.
    • Confirm that you want to delete the secret.

Remember, secrets are encrypted and can only be seen by the actions running in the repositories that have access to them. They are not exposed in logs or available to workflows triggered by a pull request from a fork, unless explicitly allowed. Always be cautious when handling secrets to prevent unintentional exposure.

lfarci commented 4 months ago

Exam Pro