警告
- プライベート リポジトリを他のリポジトリの GitHub Actions ワークフローからアクセスできるようにする場合、プライベート リポジトリに直接アクセスできない他のリポジトリの外部コラボレーターは、プライベート リポジトリに間接的にアクセスできます。 外部コラボレーターは、プライベート リポジトリのアクションまたはワークフローが使用されている場合に、ワークフローの実行をログで確認できます。
- ランナーがこれらのアクションをダウンロードできるように、GitHub はスコープ付きのインストール トークンをランナーに渡します。 このトークンはリポジトリへの読み取りアクセス権を持ち、1 時間後に自動的に期限切れになります。
Sharing actions and workflows from your private repository
- Store the action or reusable workflow in a private repository. For more information, see リポジトリについて.
- On GitHub, navigate to the main page of the private repository.
- Under your repository name, click Settings.
- 左のサイドバーで [アクション] をクリックして、 [全般] をクリックします。
- 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.
- Click Save to apply the settings.
Next steps
To reuse your shared workflows, see Reuse workflows.