1
0
mirror of synced 2026-01-01 18:05:46 -05:00
Files
docs/data/reusables/actions/workflows/required-workflow-source-notes.md
Steve Guntrip 0e17f92559 [2023-01-10]: GitHub Actions Required workflows - [Public Beta] (#32793)
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Jyotsna <Josh-01@github.com>
2023-01-09 06:29:19 +00:00

2.0 KiB

  • Required workflows can be stored in any repository folder and are not restricted to the .github/workflows folder like normal workflows. If a required workflow calls a reusable workflow, the reusable workflow must be stored in the .github/workflows folder. When calling a reusable workflow, a required workflow must use the full path and ref to the reusable workflow. For example, {owner}/{repo}/.github/workflows/{filename}@{ref}.
  • If the required workflow is contained in a private {% ifversion ghes or ghec or ghae %}or internal {% endif %}repository, you must ensure that workflows within the repository are accessible by other repositories in your organization. For more information, see "Allowing access to components in a private repository{% ifversion ghes or ghec or ghae %}" and "Allowing access to components in an internal repository{% endif %}."
  • Workflows stored in a public repository can be configured as required workflows for any repository in your organization. Workflows stored in a private repository can only be configured as required workflows for other private repositories in your organization. {% ifversion ghes or ghec or ghae %} Workflows stored in internal repositories can be configured as required workflows for internal and private repositories in your organization.{% endif %}
  • CodeQL is not supported in required workflows because CodeQL requires configuration at the repository level. For information on configuring code scanning, see "Setting up code scanning for a repository."