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.

Avertissement

  • Si vous rendez un référentiel privé accessible aux workflows GitHub Actions dans d’autres référentiels, les collaborateurs externes des autres référentiels peuvent indirectement accéder au référentiel privé, même s’ils n’ont pas d’accès direct à ces référentiels. Les collaborateurs externes peuvent consulter les journaux des exécutions de workflow lorsque des actions ou des workflows du référentiel privé sont utilisés.
  • Pour permettre aux exécuteurs de télécharger ces actions, GitHub transmet un jeton d’installation délimité à l’exécuteur. Ce jeton a un accès en lecture au référentiel et expire automatiquement après une heure.

Sharing actions and workflows with your organization

  1. Store the action or reusable workflow in a private repository. For more information, see À propos des dépôts.
  2. On GitHub, navigate to the main page of the private repository.
  3. Under your repository name, click Settings.
  4. Dans la barre latérale gauche, cliquez sur Actions, puis sur Général.
  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.