ノート: GitHubホストランナーは、現在GitHub Enterprise Serverでサポートされていません。 GitHubパブリックロードマップで、計画されている将来のサポートに関する詳しい情� �を見ることができます。
About GitHub Actions permissions for your organization
By default, after GitHub Actions is enabled on GitHub Enterprise Serverインスタンス, it is enabled on all repositories and organizations. You can choose to disable GitHub Actions or limit it to actions in your enterprise. For more information about GitHub Actions, see "About GitHub Actions."
You can enable GitHub Actions for all repositories in your organization. When you enable GitHub Actions, workflows are able to run actions located within your repository and any other public or internal repository. You can disable GitHub Actions for all repositories in your organization. GitHub Actionsを無効化すると、リポジトリでワークフローが実行されなくなります。
Alternatively, you can enable GitHub Actions for all repositories in your organization but limit the actions a workflow can run.
Managing GitHub Actions permissions for your organization
You can choose to disable GitHub Actions for all repositories in your organization, or only allow specific repositories. You can also limit the use of public actions, so that people can only use local actions that exist in your enterprise.
Note: You might not be able to manage these settings if your organization is managed by an enterprise that has overriding policy. For more information, see "Enforcing policies for GitHub Actions in your enterprise."
-
In the top right corner of GitHub Enterprise Server, click your profile photo, then click Your organizations.
-
Organizationの隣のSettings(設定)をクリックしてく� さい。
-
In the left sidebar, click Actions.
-
Under "Policies", select an option.
If you choose Allow select actions, actions within your enterprise are allowed, and there are additional options for allowing other specific actions. For more information, see "Allowing select actions to run."
- Click Save.
Allowing select actions to run
When you choose Allow select actions, local actions are allowed, and there are additional options for allowing other specific actions:
-
Allow actions created by GitHub: You can allow all actions created by GitHub to be used by workflows. Actions created by GitHub are located in the
actions
andgithub
organizations. For more information, see theactions
andgithub
organizations. -
Allow Marketplace actions by verified creators: This option is available if you have GitHub Connect enabled and configured with GitHub Actions. For more information, see "Enabling automatic access to GitHub.com actions using GitHub Connect." You can allow all GitHub Marketplace actions created by verified creators to be used by workflows. When GitHub has verified the creator of the action as a partner organization, the badge is displayed next to the action in GitHub Marketplace.
-
Allow specified actions: You can restrict workflows to use actions in specific organizations and repositories.
To restrict access to specific tags or commit SHAs of an action, use the same syntax used in the workflow to select the action.
- For an action, the syntax is
<OWNER>/<REPO>@<TAG OR SHA>
. For example, useactions/javascript-action@v1.0.1
to select a tag oractions/javascript-action@172239021f7ba04fe7327647b213799853a9eb89
to select a SHA. For more information, see "Finding and customizing actions."
You can use the
*
wildcard character to match patterns. For example, to allow all actions in organizations that start withspace-org
, you can specifyspace-org*/*
. To allow all actions in repositories that start with octocat, you can use*/octocat**@*
. For more information about using the*
wildcard, see "Workflow syntax for GitHub Actions." - For an action, the syntax is
This procedure demonstrates how to add specific actions to the allow list.
-
In the top right corner of GitHub Enterprise Server, click your profile photo, then click Your organizations.
-
Organizationの隣のSettings(設定)をクリックしてく� さい。
-
In the left sidebar, click Actions.
-
Under "Policies", select Allow select actions and add your required actions to the list.
-
Click Save.
Enabling workflows for private repository forks
プライベートリポジトリのフォークの利用に依存しているなら、ユーザがどのようにpull_request
イベントの際にワークフローを実行できるかを制御するポリシーを設定できます。 Available to private and internal repositories only, you can configure these policy settings for your enterprise, organizations, or repositories.
If a policy is disabled for an enterprise, it cannot be enabled for organizations. If a policy is disabled for an organization, it cannot be enabled for repositories. If an organization enables a policy, the policy can be disabled for individual repositories.
- Run workflows from fork pull requests(フォークのPull Requestからワークフローを実行) - 読み取りのみの権限を持ち、シークレットにはアクセスできない
GITHUB_TOKEN
を使って、フォークのPull Requestからワークフローを実行することをユーザに許可します。 - Send write tokens to workflows from pull requests(Pull Requestから書き込みトークンをワークフローに送信) - 書き込み権限を持つ
GITHUB_TOKEN
の利用をフォークからのPull Requestに許可します。 - Send secrets to workflows from pull requests(Pull Requestからワークフローにシークレットを送信) - すべてのシークレットをPull Requestから利用可能にします。
Configuring the private fork policy for an organization
- In the top right corner of GitHub Enterprise Server, click your profile photo, then click Your organizations.
- Organizationの隣のSettings(設定)をクリックしてく� さい。
- In the left sidebar, click Actions.
- Fork pull request workflows(Pull Requestワークフローのフォーク)の下で、オプションを選択してく� さい。 例:
- Save(保存)をクリックして、設定を適用してく� さい。