Skip to main content

Sharing actions and workflows from your private repository

You can share an action or reusable workflow without publishing them publicly.

警告

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

Sharing actions and workflows from your private repository

  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 Access section at the bottom of the page, select Accessible from repositories owned by 'USERNAME' user.
  6. Click Save to apply the settings.

Next steps

To reuse your shared workflows, see Reuse workflows.