lfarci / github-actions

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

Configure organizational use policies for GitHub Actions #62

Closed lfarci closed 3 months ago

lfarci commented 3 months ago

GitHub provides several settings to help you configure organizational use policies for GitHub Actions. Here's how you can do it:

  1. Navigate to the Organization Settings: Sign in to GitHub and click on your profile photo in the upper-right corner. Then click on "Your organizations" and click on the name of your organization. Under your organization name, click on "Settings".

  2. Access the Actions Settings: In the left sidebar, click on "Actions". This will take you to the Actions settings page.

  3. Configure the Settings:

    • Actions permissions: Choose whether to allow all actions, disable all actions, or allow select actions. If you choose to allow select actions, you can specify allowed actions in the "Allowed Actions" section.

    • Fork pull request workflows from outside collaborators: Choose whether to enable or disable running workflows from fork pull requests.

    • Workflow permissions: Choose the GitHub token permissions for your workflows. You can choose to use the permissions of the GITHUB_TOKEN or you can restrict them.

    • Job logs: Choose whether to allow public and private repositories to send logs to GitHub.

  4. Save the Settings: After configuring the settings, click on "Save" to apply the changes.

Remember, these settings apply to all repositories in the organization. Be sure to communicate any changes to your team to ensure they understand the organization's use policies for GitHub Actions.