Remarque
Les exécuteurs hébergés sur GitHub ne sont pas pris en charge sur GitHub Enterprise Server. Vous pouvez voir plus d’informations sur le support futur planifié dans la GitHub public roadmap.
Overview
If you need to share workflows and other GitHub Actions features with your team, then consider collaborating within a GitHub organization. An organization allows you to centrally store and manage secrets, artifacts, and self-hosted runners. You can also create workflow templates in the .github
repository and share them with other users in your organization.
Sharing actions and workflows
You can share both individual actions and entire workflows with your organization, with or without publishing the actions or workflows publicly. You can reuse actions and workflows exactly by referencing them in your workflow file, and you can create workflow templates.
Sharing actions with your enterprise
Pour partager des actions au sein de votre entreprise sans les publier publiquement, vous pouvez les stocker dans un référentiel interne, puis configurer celui-ci pour autoriser l’accès aux workflows GitHub Actions dans d’autres référentiels appartenant à la même organisation ou à toute autre organisation de l’entreprise. Pour plus d’informations, consultez « Sharing actions and workflows with your enterprise ».
Reusing workflows
Vous pouvez partager des flux de travail avec votre organisation, publiquement ou en privé, en appelant un workflow à partir d’un autre. Cela vous permet de réutiliser des workflows, d’éviter leur duplication et de faciliter leur maintenance. Pour plus d’informations, consultez « Reusing workflows ».
Using workflow templates
Les modèles de workflow permettent à tous les membres de votre organisation disposant de l’autorisation de créer des workflows de le faire plus rapidement et plus facilement. Quand vous créez un workflow, vous pouvez choisir un modèle de workflow et une partie ou la totalité du travail d’écriture du workflow est effectuée à votre place. Vous pouvez utiliser les modèles de workflow comme point de départ pour créer votre workflow personnalisé ou l’utiliser tel quel. Cela permet non seulement de gagner du temps, mais également de promouvoir la cohérence et les bonnes pratiques dans l’ensemble de votre organisation. For more information, see Creating workflow templates for your organization.
Sharing secrets and variables within an organization
You can centrally manage your secrets and variables within an organization, and then make them available to selected repositories. This also means that you can update a secret or variable in one location, and have the change apply to all repository workflows that use it.
When creating a secret or variable in an organization, you can use a policy to limit which repositories can access it. For example, you can grant access to all repositories, or limit access to only private repositories or a specified list of repositories.
Les propriétaires d’organisations et les utilisateurs disposant des autorisations « Gérer les variables d’action de l’organisation » ou « Gérer les secrets d’action d’organisation » peuvent créer des secrets ou des variables au niveau de l’organisation.
Pour plus d’informations, consultez « À propos des rôles d'organisation personnalisés ».
-
Sur GitHub, accédez à la page principale de l’organisation.
-
Sous le nom de votre organisation, cliquez sur Paramètres. Si vous ne voyez pas l’onglet « Paramètres », sélectionnez le menu déroulant , puis cliquez sur Paramètres.
-
Dans la section Sécurité de la barre latérale, sélectionnez Secrets et variables, puis cliquez sur Actions.
-
Click the Secrets or Variables tab, and create the secret or variable with your desired values and options.
For more information, see Using secrets in GitHub Actions or Store information in variables.
Share self-hosted runners within an organization
Organization owners can add their self-hosted runners to groups, and then create policies that control which repositories can access the group.
For more information, see Managing access to self-hosted runners using groups.
Next steps
To continue learning about GitHub Actions, see Creating workflow templates for your organization.