Skip to main content

Sharing actions and workflows with your organization

You can share an action or reusable workflow with your organization without publishing the action or workflow publicly.

警告

  • プライベート リポジトリを他のリポジトリの GitHub Actions ワークフローからアクセスできるようにする場合、プライベート リポジトリに直接アクセスできない他のリポジトリの外部コラボレーターは、プライベート リポジトリに間接的にアクセスできます。 外部コラボレーターは、プライベート リポジトリのアクションまたはワークフローが使用されている場合に、ワークフローの実行をログで確認できます。
  • ランナーがこれらのアクションをダウンロードできるように、GitHub はスコープ付きのインストール トークンをランナーに渡します。 このトークンはリポジトリへの読み取りアクセス権を持ち、1 時間後に自動的に期限切れになります。

Sharing actions and workflows with your organization

  1. Store the action or reusable workflow in a private repository. For more information, see リポジトリについて.
  2. On GitHub, navigate to the main page of the private repository.
  3. Under your repository name, click Settings.
  4. 左のサイドバーで [アクション] をクリックして、 [全般] をクリックします。
  5. To grant access to other private repositories in the organization, in the Access section at the bottom of the page, select Accessible from repositories in the 'ORGANIZATION-NAME' organization.
  6. Click Save to apply the settings.

Next steps

To learn how to reuse your shared workflows, see Reuse workflows.