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.
Warnung
- Wenn du ein privates Repository für GitHub Actions-Workflows in anderen Repositorys zugänglich machst, können externe Projektmitarbeiter in den anderen Repositorys indirekt auf das private Repository zugreifen, auch wenn sie keinen direkten Zugriff auf diese Repositorys haben. Die externen Projektmitarbeiter können Protokolle für Workflowausführungen anzeigen, wenn Aktionen oder Workflows aus dem privaten Repository verwendet werden.
- Damit Runner diese Aktionen herunterladen können, übergibt GitHub ein bereichsbezogenes Installationstoken an den Runner. Dieses Token verfügt über Lesezugriff auf das Repository und läuft nach einer Stunde automatisch ab.
Sharing actions and workflows with your enterprise
- Store the action or reusable workflow in an internal or private repository. For more information, see Informationen zu Repositorys.
- Configure the repository to allow access to workflows in other internal or private repositories. For more information, see Verwalten von GitHub Actions-Einstellungen für ein Repository and Verwalten von GitHub Actions-Einstellungen für ein Repository.