Skip to main content

Sharing actions and workflows with your enterprise

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

About GitHub Actions access to internal and private repositories

If your organization is owned by an enterprise account, you can share actions and reusable workflows within your enterprise, without publishing them publicly, by allowing GitHub Actions workflows to access an internal or private repository that contains the action or reusable workflow.

Any actions or reusable workflows stored in the internal or private repository can be used in workflows defined in other internal or private repositories owned by the same organization, or by any organization owned by the enterprise. Actions and reusable workflows stored in internal repositories cannot be used in public repositories and actions and reusable workflows stored in private repositories cannot be used in public or internal repositories.

警告

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

Sharing actions and workflows with your enterprise

  1. Store the action or reusable workflow in an internal or private repository. For more information, see リポジトリについて.
  2. Configure the repository to allow access to workflows in other internal or private repositories. For more information, see リポジトリの GitHub Actions の設定を管理する and リポジトリの GitHub Actions の設定を管理する.

Further reading