diff --git a/content/actions/tutorials/migrate-to-github-actions/index.md b/content/actions/tutorials/migrate-to-github-actions/index.md index 4b8e30b37fdb..942c8fe9c231 100644 --- a/content/actions/tutorials/migrate-to-github-actions/index.md +++ b/content/actions/tutorials/migrate-to-github-actions/index.md @@ -12,6 +12,7 @@ redirect_from: - /actions/how-tos/migrating-to-github-actions - /actions/tutorials/migrating-to-github-actions children: + - /migrate-an-enterprise - /automated-migrations - /manual-migrations contentType: tutorials diff --git a/content/actions/tutorials/migrate-to-github-actions/migrate-an-enterprise.md b/content/actions/tutorials/migrate-to-github-actions/migrate-an-enterprise.md new file mode 100644 index 000000000000..33f570021007 --- /dev/null +++ b/content/actions/tutorials/migrate-to-github-actions/migrate-an-enterprise.md @@ -0,0 +1,148 @@ +--- +title: Migrating your enterprise to GitHub Actions +shortTitle: Migrate an enterprise +intro: Plan and run an AI-assisted migration from your existing CI/CD system to {% data variables.product.prodname_actions %}, moving repositories in waves without disrupting delivery. +versions: + fpt: '*' + ghec: '*' + ghes: '*' +redirect_from: + - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions + - /enterprise-onboarding/github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions + - /admin/managing-github-actions-for-your-enterprise/getting-started-with-github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions +contentType: tutorials +category: + - Migrate to GitHub Actions +--- + +## Introduction + +This guide is for administrators who are migrating many pipelines from an existing CI/CD system, such as Jenkins, Azure DevOps, GitLab CI/CD, or CircleCI, to {% data variables.product.prodname_actions %}. + +By the end of this guide, you'll have: + +* A target design that improves on your current setup +* A live inventory of which repositories use which CI/CD system, and how far each one has migrated +* A pilot migration group and a plan for future migration waves +* AI tooling for converting pipeline syntax to your organization's standards +* A plan for retiring the old CI/CD system + +This guide draws on [actions-migrations-via-copilot](https://github.com/github/actions-migrations-via-copilot), an open source project from {% data variables.product.github %}. You can use the project for your migration or apply the same principles to plan a migration using your own tooling. + +## Choose a pilot group + +When you use this guide, we recommend starting with a pilot. Choose a small group of early adopters and a handful of pipelines that represent the breadth of your existing setup, such as your most common build type, a deployment pipeline, and a pipeline with approval gates. Then, you'll follow this guide to migrate these repositories before expanding to the rest of your enterprise. + +## Design your target state + +Before converting anything, decide what your {% data variables.product.prodname_actions %} setup should look like. Treat the migration as a chance to improve your CI/CD system rather than a line-by-line port. Pipelines that grew over years in another system often contain unnecessarily broad credentials or duplicated logic. + +For each pattern in your existing system, choose the {% data variables.product.prodname_actions %} equivalent you want to end up with. + +| In your existing system | Aim for in {% data variables.product.prodname_actions %} | +|---|---| +| A flat, global credential store that every pipeline can read | Secrets scoped to the organization, repository, or environment that needs them | +| Long-lived cloud credentials stored in the CI system | Short-lived tokens issued through OpenID Connect (OIDC). See [AUTOTITLE](/actions/concepts/security/openid-connect). | +| Manual approval and promotion steps | Environments with deployment protection rules. See [AUTOTITLE](/actions/how-tos/deploy/configure-and-manage-deployments/manage-environments). | +| Pipeline logic copied between many repositories | A small number of reusable workflows that teams call. See [AUTOTITLE](/actions/how-tos/reuse-automations/reuse-workflows). | +| Build agents with broad access | Runners scoped to the organizations and repositories that need them, with least-privilege `GITHUB_TOKEN` permissions in each workflow | + +Identify the gates and checks in your existing system and verify that you can implement them with {% data variables.product.prodname_actions %}. Identify any processes, integrations, and third-party tools that will be affected by your migration, and make a plan for any updates you'll need to make. + +Consider how the migration may affect your compliance concerns. For example, will your existing credential scanning and security analysis tools work with {% data variables.product.prodname_actions %}, or will you need to use new tools? + +## Inventory your pipelines + +Record each repository's source CI/CD system and migration status in a shared inventory. Identify which pipelines are actively used and need to migrate, and which can be left behind. + +Your inventory should also include any pipelines that are defined outside of a repository, such as Jenkins freestyle jobs or Azure DevOps classic release pipelines. + +If your repositories are hosted on {% data variables.product.github %}, you can use custom properties to create a live migration tracker alongside your inventory of individual pipelines. For example, you could use: + +* `ci_source`, with values such as `Jenkins`, `Azure DevOps`, and `GitLab` +* `migration_status`, with values such as `Not started`, `In progress`, `Side by side`, `Migrated`, and `Retired` + +You can then filter repositories to select a migration wave, for example with `org:YOUR-ORG props.ci_source:Jenkins props.migration_status:"Not started"`. See [AUTOTITLE](/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization). + +Whichever tracking method you use, keep it updated throughout the migration. If your source code is hosted elsewhere, include moving it to {% data variables.product.github %} in your migration plan. + +## Classify your secrets and variables + +Before you convert any pipelines, inventory the credentials and configuration values they use. This is your chance to narrow access instead of carrying broad credentials into {% data variables.product.prodname_actions %}. + +For each value that a pipeline uses, decide: + +* **Is it sensitive?** Store credentials, tokens, and keys as secrets. Store non-sensitive configuration, such as region names and feature flags, as variables. See [AUTOTITLE](/actions/how-tos/write-workflows/choose-what-workflows-do/use-secrets) and [AUTOTITLE](/actions/how-tos/write-workflows/choose-what-workflows-do/use-variables). +* **Who needs it?** Store it at the narrowest level that works: an environment, a repository, or an organization with access limited to selected repositories. +* **Can you remove it?** If the value is a long-lived cloud credential, plan to replace it with OIDC where your cloud provider and deployment support it. + +Record secret names and scopes in your inventory, never secret values. + +You will want to create new, narrowly scoped credentials for {% data variables.product.prodname_actions %} rather than copying the old system's credentials. This means you will be able to revoke the old credentials at retirement without breaking anything. + +## Build AI tools for migration + +Many enterprises have had success using AI agents to convert pipelines. Agents are good at handling the unpredictability of real-world pipelines and at implementing your organization's standards. + +[actions-migrations-via-copilot](https://github.com/github/actions-migrations-via-copilot) includes syntax mappings and a baseline set of migration standards, such as pinning actions to verified commit SHAs and setting least-privilege permissions. Treat these as a starting point and extend them with your organization's own standards. + +If you're building custom tooling, you can create custom agents, skills, or plugins with shared migration standards. + +{% ifversion ghes %} + +If you're on {% data variables.product.prodname_ghe_server %}, check which {% data variables.product.prodname_copilot_short %} capabilities are available before choosing your tooling. See [AUTOTITLE](/copilot/copilot-on-ghes/about-copilot-on-ghes). + +{% endif %} + +### Define shared migration standards + +Provide migrators with your organization's migration standards. For example: + +* **Approved actions.** Specify approved actions and verify their dependency references. {% ifversion actions-workflow-lockfiles %}If your organizations use workflow dependency lockfiles, migrated workflows can reference a tag, and the lockfiles can lock tags to a commit SHA. Otherwise, require workflows to include full-length commit SHAs for references to external actions. See [AUTOTITLE](/actions/concepts/security/workflow-dependency-lockfiles).{% else %}Require verified full-length commit SHAs for external repository actions.{% endif %} +* **Token permissions.** Require explicit, least-privilege `GITHUB_TOKEN` permissions, granting additional permissions only to jobs that need them. +* **Secrets and configuration.** Define secret and configuration-variable naming conventions and appropriately scoped organization, repository, and environment access. Keep credential values out of source code, prompts, and reports. +* **Behavior and validation.** Preserve workflow behavior and deployment approval gates, and require representative tests against the source system. Require a report that explicitly identifies missing or unconverted controls. + +Continue to refine these standards after the pilot and each subsequent migration wave. + +## Run the migration + +Use your new AI tools and standards to help people migrate pipelines. Do this for the pilot first, then plan waves for the remaining pipelines. + +### Consolidate into reusable code + +Review each migration wave for patterns that repeat across repositories, such as the same build, test, or deployment steps. Replace those patterns with a small number of reusable workflows, and add them to your migration standards for the next wave. + +### Verify the conversion before cutover + +Check each converted workflow before cutover. Run a linter such as [actionlint](https://github.com/rhysd/actionlint) to catch syntax errors, then run representative workflows and confirm that their results match the source system. + +AI-assisted conversion tends to fail in predictable ways, so also review what the agent did. Look for anything the agent invented, such as action references or commit SHAs that don't exist, security risks it carried over from the old system, and approval gates or other controls it dropped without an error. Make sure migration reports contain secret names only, and rotate any credential that may have been exposed. + +Because one bad pattern can appear across every repository in a wave, review the pilot as a set before expanding. Repeat this review for each subsequent wave before converting the next. For more guidance on securing workflows, see [AUTOTITLE](/actions/reference/security/secure-use). + +## Run both systems side by side + +Run the old and new pipelines in parallel until you're confident the new workflows are stable and that developers' experience hasn't degraded. + +* If your existing system reads pipeline configuration from the repository, such as a `Jenkinsfile` or `.gitlab-ci.yml`, keep that file in place until cutover. Removing or archiving it during conversion stops the old pipeline before you can compare results. +* Let only one system deploy at a time, so a release doesn't run twice. +* If you need build artifacts or logs from the old system, archive them before you retire it. +* When a repository is stable, switch deployments to {% data variables.product.prodname_actions %} and mark it as migrated in your inventory. + +## Roll out across the enterprise + +After the pilot succeeds, use what you've learned to update your process. Then, migrate the remaining pipelines in waves, applying what you learn along the way to minimize disruption. + +1. **Identify waves.** Group the remaining repositories by source CI/CD system and complexity, and migrate one group at a time. Decide whether a central team will migrate each wave, or whether teams will migrate their own repositories using the standards you set during the pilot. Repeat the steps in this guide for each wave, retiring the old system only when the full migration is complete. +1. **Set a deadline.** Set a date for retiring the old system, such as the end of your contract with your current provider, and tell teams early. Look at your business's cadence and the workload of each individual team, and schedule each team's migration at a time that won't impact their ability to deliver. You can point to the successes of other teams to reassure them that migration is possible and desirable. + +## Retire the old system + +Keep the old system available for repositories outside the pilot that still depend on it. Once every repository in the full migration has migrated, you can retire your old system completely. + +1. Check the source pipeline configuration for secrets written directly into the files. Rotate any you find, even if they're no longer used. +1. Disable any remaining pipelines in the old CI/CD system, and archive or remove the source pipeline configuration from your repositories. +1. Revoke credentials used only by the old system. For shared credentials, coordinate with the other teams using them before rotating or replacing them. +1. Shut down the old system, and make sure no one can turn it back on. +1. Update your inventory to record that retirement is complete. diff --git a/content/admin/managing-github-actions-for-your-enterprise/getting-started-with-github-actions-for-your-enterprise/index.md b/content/admin/managing-github-actions-for-your-enterprise/getting-started-with-github-actions-for-your-enterprise/index.md index 11782f16b759..182645dde6ae 100644 --- a/content/admin/managing-github-actions-for-your-enterprise/getting-started-with-github-actions-for-your-enterprise/index.md +++ b/content/admin/managing-github-actions-for-your-enterprise/getting-started-with-github-actions-for-your-enterprise/index.md @@ -1,13 +1,12 @@ --- title: Getting started with GitHub Actions for your enterprise -intro: 'Learn how to adopt {% data variables.product.prodname_actions %} for your enterprise.' +intro: Learn how to adopt {% data variables.product.prodname_actions %} for your enterprise. versions: ghec: '*' ghes: '*' children: - /about-github-actions-for-enterprises - /introducing-github-actions-to-your-enterprise - - /migrating-your-enterprise-to-github-actions - /getting-started-with-github-actions-for-github-enterprise-cloud - /getting-started-with-github-actions-for-github-enterprise-server - /getting-started-with-self-hosted-runners-for-your-enterprise diff --git a/content/admin/managing-github-actions-for-your-enterprise/getting-started-with-github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions.md b/content/admin/managing-github-actions-for-your-enterprise/getting-started-with-github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions.md deleted file mode 100644 index 295e44d10390..000000000000 --- a/content/admin/managing-github-actions-for-your-enterprise/getting-started-with-github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions.md +++ /dev/null @@ -1,88 +0,0 @@ ---- -title: Migrating your enterprise to GitHub Actions -shortTitle: Migrate to Actions -intro: Learn how to plan a migration to {% data variables.product.prodname_actions %} for your enterprise from another provider. -versions: - ghec: '*' - ghes: '*' -redirect_from: - - /admin/github-actions/getting-started-with-github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions - - /enterprise-onboarding/github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions -contentType: how-tos -category: - - Enable GitHub features for your enterprise ---- - -## About enterprise migrations to {% data variables.product.prodname_actions %} - -To migrate your enterprise to {% data variables.product.prodname_actions %} from an existing system, you can plan the migration, complete the migration, and retire existing systems. - -This guide addresses specific considerations for migrations. For additional information about introducing {% data variables.product.prodname_actions %} to your enterprise, see [AUTOTITLE](/admin/managing-github-actions-for-your-enterprise/getting-started-with-github-actions-for-your-enterprise/introducing-github-actions-to-your-enterprise). - -## Planning your migration - -Before you begin migrating your enterprise to {% data variables.product.prodname_actions %}, you should identify which workflows will be migrated and how those migrations will affect your teams, then plan how and when you will complete the migrations. - -### Leveraging migration specialists - -{% data variables.product.company_short %} can help with your migration, and you may also benefit from purchasing {% data variables.product.prodname_professional_services %}. For more information, contact your dedicated representative or {% data variables.contact.contact_enterprise_sales %}. - -### Identifying and inventorying migration targets - -Before you can migrate to {% data variables.product.prodname_actions %}, you need to have a complete understanding of the workflows being used by your enterprise in your existing system. - -First, create an inventory of the existing build and release workflows within your enterprise, gathering information about which workflows are being actively used and need to migrated and which can be left behind. - -Next, learn the differences between your current provider and {% data variables.product.prodname_actions %}. This will help you assess any difficulties in migrating each workflow, and where your enterprise might experience differences in features. For more information, see [AUTOTITLE](/actions/tutorials/migrate-to-github-actions). - -With this information, you'll be able to determine which workflows you can and want to migrate to {% data variables.product.prodname_actions %}. - -### Determine team impacts from migrations - -When you change the tools being used within your enterprise, you influence how your team works. You'll need to consider how moving a workflow from your existing systems to {% data variables.product.prodname_actions %} will affect your developers' day-to-day work. - -Identify any processes, integrations, and third-party tools that will be affected by your migration, and make a plan for any updates you'll need to make. - -Consider how the migration may affect your compliance concerns. For example, will your existing credential scanning and security analysis tools work with {% data variables.product.prodname_actions %}, or will you need to use new tools? - -Identify the gates and checks in your existing system and verify that you can implement them with {% data variables.product.prodname_actions %}. - -### Identifying and validating migration tools - -Automated migration tools can translate your enterprise's workflows from the existing system's syntax to the syntax required by {% data variables.product.prodname_actions %}. Identify third-party tooling or contact your dedicated representative or {% data variables.contact.contact_enterprise_sales %} to ask about tools that {% data variables.product.company_short %} can provide. For example, you can use the {% data variables.product.prodname_actions_importer %} to plan, scope, and migrate your CI pipelines to {% data variables.product.prodname_actions %} from various supported services. For more information, see [AUTOTITLE](/actions/tutorials/migrate-to-github-actions/automated-migrations/use-github-actions-importer). - -After you've identified a tool to automate your migrations, validate the tool by running the tool on some test workflows and verifying that the results are as expected. - -Automated tooling should be able to migrate the majority of your workflows, but you'll likely need to manually rewrite at least a small percentage. Estimate the amount of manual work you'll need to complete. - -### Deciding on a migration approach - -Determine the migration approach that will work best for your enterprise. Smaller teams may be able to migrate all their workflows at once, with a "rip-and-replace" approach. For larger enterprises, an iterative approach may be more realistic. You can choose to have a central body manage the entire migration or you can ask individual teams to self serve by migrating their own workflows. - -We recommend an iterative approach that combines active management with self service. Start with a small group of early adopters that can act as your internal champions. Identify a handful of workflows that are comprehensive enough to represent the breadth of your business. Work with your early adopters to migrate those workflows to {% data variables.product.prodname_actions %}, iterating as needed. This will give other teams confidence that their workflows can be migrated, too. - -Then, make {% data variables.product.prodname_actions %} available to your larger organization. Provide resources to help these teams migrate their own workflows to {% data variables.product.prodname_actions %}, and inform the teams when the existing systems will be retired. - -Finally, inform any teams that are still using your old systems to complete their migrations within a specific timeframe. You can point to the successes of other teams to reassure them that migration is possible and desirable. - -### Defining your migration schedule - -After you decide on a migration approach, build a schedule that outlines when each of your teams will migrate their workflows to {% data variables.product.prodname_actions %}. - -First, decide the date you'd like your migration to be complete. For example, you can plan to complete your migration by the time your contract with your current provider ends. - -Then, work with your teams to create a schedule that meets your deadline without sacrificing their team goals. Look at your business's cadence and the workload of each individual team you're asking to migrate. Coordinate with each team to understand their delivery schedules and create a plan that allows the team to migrate their workflows at a time that won't impact their ability to deliver. - -## Migrating to {% data variables.product.prodname_actions %} - -When you're ready to start your migration, translate your existing workflows to {% data variables.product.prodname_actions %} using the automated tooling and manual rewriting you planned for above. - -You may also want to maintain old build artifacts from your existing system, perhaps by writing a scripted process to archive the artifacts. - -## Retiring existing systems - -After your migration is complete, you can think about retiring your existing system. - -You may want to run both systems side-by-side for some period of time, while you verify that your {% data variables.product.prodname_actions %} configuration is stable, with no degradation of experience for developers. - -Eventually, decommission and shut off the old systems, and ensure that no one within your enterprise can turn the old systems back on. diff --git a/content/copilot/concepts/prompting-and-context/copilot-dreaming.md b/content/copilot/concepts/prompting-and-context/copilot-dreaming.md index 28d58abb12bf..cb4899a3ed2a 100644 --- a/content/copilot/concepts/prompting-and-context/copilot-dreaming.md +++ b/content/copilot/concepts/prompting-and-context/copilot-dreaming.md @@ -56,8 +56,7 @@ Code review customization does not currently support self-hosted runners. All capabilities require an eligible {% data variables.product.prodname_copilot_short %} subscription and permission under applicable enterprise and organization policies. See [AUTOTITLE](/copilot/how-tos/use-copilot-agents/copilot-memory/manage-as-administrator#enabling-copilot-dreaming). -> [!IMPORTANT] -> Before enabling {% data variables.copilot.copilot_dreaming %}, complete the prerequisites shown in the table for the capabilities you want to use. If {% data variables.copilot.copilot_dreaming_short %} is already enabled when you complete additional prerequisites, turn {% data variables.copilot.copilot_dreaming %} off and on again using the setting that controls the affected personal memories or repositories. Completing the prerequisites alone does not activate additional capabilities. +For organization-owned repositories with {% data variables.copilot.copilot_dreaming_short %} enabled, {% data variables.product.github %} rechecks eligibility when you enable a policy for cloud session storage, {% data variables.copilot.copilot_code-review_short %}, or its preview features, or grant repository access to {% data variables.copilot.copilot_memory_short %}. Each {% data variables.copilot.copilot_dreaming_short %} setting enables the capabilities whose prerequisites are met within its scope. For repositories, this can include both repository customization and code review customization. You cannot switch these capabilities on or off individually. diff --git a/content/copilot/how-tos/configure-content-exclusion/exclude-content-from-copilot.md b/content/copilot/how-tos/configure-content-exclusion/exclude-content-from-copilot.md index 097d309f3249..911abe65f2fc 100644 --- a/content/copilot/how-tos/configure-content-exclusion/exclude-content-from-copilot.md +++ b/content/copilot/how-tos/configure-content-exclusion/exclude-content-from-copilot.md @@ -30,6 +30,9 @@ category: ## Configuring content exclusion for your repository +> [!NOTE] +> Repository-level content exclusion is available only for repositories owned by an organization with {% data variables.product.prodname_copilot_short %} enabled—not personal repositories, even if their owner has an organization-provided {% data variables.product.prodname_copilot_short %} seat. + {% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %} diff --git a/content/copilot/reference/copilot-cli-reference/cli-config-dir-reference.md b/content/copilot/reference/copilot-cli-reference/cli-config-dir-reference.md index 8d90c4a2edd4..e756c650323a 100644 --- a/content/copilot/reference/copilot-cli-reference/cli-config-dir-reference.md +++ b/content/copilot/reference/copilot-cli-reference/cli-config-dir-reference.md @@ -127,7 +127,7 @@ By default, this file is located at `~/.copilot/providers.json`. Override its lo Models in this file are available alongside the models provided by your {% data variables.product.prodname_copilot_short %} subscription. After editing the file manually, restart {% data variables.copilot.copilot_cli_short %} to load your changes. For setup instructions, see [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/add-llm-models). > [!WARNING] -> API keys, bearer tokens, and header values in this file are stored as plain text. Do not commit the file to a repository or share it without removing credentials. Values such as `$MY_API_KEY` are literal strings, not references to environment variables. +> API keys, bearer tokens, and header values in this file are stored as plain text. Do not commit the file to a repository or share it without removing credentials. To keep an API key out of the file, use `apiKeyCommand`. Values such as `$MY_API_KEY` are literal strings, not references to environment variables. #### Provider configuration structure @@ -156,6 +156,7 @@ Each entry in `providers` accepts the following fields. Only `name` and `baseUrl | `providers[].wireApi` | String | No | `"completions"` | The API format for OpenAI and Azure connections: `"completions"` for Chat Completions or `"responses"` for the Responses API. Ignored for Anthropic. | | `providers[].transport` | String | No | `"http"` | Accepts `"http"` or `"websockets"`. WebSockets require `"type": "openai"` and `"wireApi": "responses"`, and the provider must support that transport. | | `providers[].apiKey` | String | Provider-dependent | Unset | The provider's API key. Can be omitted for an unauthenticated local server. | +| `providers[].apiKeyCommand` | String | No | Unset | A command that prints the provider's API key. The CLI runs it with your shell before each request to this provider, so the key does not have to be stored in this file. The command must exit with status 0 within 30 seconds, and its output, with surrounding whitespace removed, is used as the API key. The CLI does not ask a provider that uses `apiKeyCommand` for its list of models, so declare its models in `models`. | | `providers[].bearerToken` | String | Provider-dependent | Unset | A bearer token, without the `Bearer ` prefix. Takes precedence over `apiKey` when both are set. This is a static token, not a token-refresh command. | | `providers[].headers` | Object | No | Unset | Additional HTTP headers, with header names as keys and strings as values. | | `providers[].headers.` | String | No | Unset | The value of a header, for example `"X-Project": "my-project"`. Use `apiKey` or `bearerToken` for standard provider authentication. | @@ -165,7 +166,7 @@ Each entry in `providers` accepts the following fields. Only `name` and `baseUrl | `providers[].modelProvider` | String | No | Inferred from the connection | A provider label used only for telemetry. Recognized values are `"openai"`, `"anthropic"`, `"azure_openai"`, `"ollama"`, `"lm_studio"`, `"foundry_local"`, and `"llama_cpp"`. Does not change the connection protocol or model behavior. | | `providers[].hasBearerTokenProvider` | Boolean | No | `false` | Indicates that an application using the SDK supplies tokens through a callback. Omit this when configuring the CLI manually. Setting it to `true` in this file does not register a token provider. | -The named-provider file does not support `apiKeyCommand`. Do not put credentials or token-refresh commands in `metadata` or `localModel.args`. +Do not put credentials or token-refresh commands in `metadata` or `localModel.args`. #### Local model server settings diff --git a/content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations.md b/content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations.md index 4b959e461d08..ef7e7017d6f7 100644 --- a/content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations.md +++ b/content/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations.md @@ -45,16 +45,23 @@ You can enable or disable the built-in workflows for your project. {% ifversion issue-statuses %} -## Turning off the issue status sync + + -By default, a project's **Status** field syncs with issue statuses. You can turn off the sync for one project. Built-in workflows still run with their configured options, so **Item closed** can still set **Status** when an issue closes, and **Auto-close issue** can still close an issue when its item's **Status** changes. +## Enabling issue status sync + +Issue status sync is off by default for existing and new projects that don't have a saved setting. People with write access to the project can change the setting. Copies of the project, and projects created from it as a template, keep the setting. {% data reusables.projects.access-workflows %} -1. In the list of workflows, click **Sync with issue status**. -1. Click the toggle to turn the sync off or on. +1. In the left sidebar, under "Statuses," click **Sync with issue status**. +1. On the right side of the page, click the toggle to turn the sync on. + +You can also open this setting from the project's **Status** field settings. Above the options list, click **Sync with issue status**. + +When you turn the sync on, items don't change right away. For each issue and its project item, syncing starts or resumes the next time the issue's status changes, someone moves the item, or a built-in workflow sets its **Status**. Depending on the change, the issue's status can update the item, or the item's **Status** can update the issue's status. -When you turn the sync back on, items don't change right away. For each issue and its project item, syncing resumes the next time the issue's status changes, someone moves the item, or a built-in workflow sets its **Status**. Depending on the change, the issue's status can update the item, or the item's **Status** can update the issue's status. +To keep a project's **Status** field separate from issue statuses, turn the sync off from the same setting. Built-in workflows still run with their configured options, so **Item closed** can still set **Status** when an issue closes, and **Auto-close issue** can still close an issue when its item's **Status** changes. {% endif %} diff --git a/content/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses.md b/content/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses.md index 0d603d1af1a8..19cf799009ca 100644 --- a/content/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses.md +++ b/content/issues/tracking-your-work-with-issues/learning-about-issues/about-issue-statuses.md @@ -81,7 +81,7 @@ Only pull requests in the same repository as the issue, or in a public repositor ## Syncing statuses with projects -{% data variables.product.github %} keeps an issue's status and the **Status** field of its project items in sync when the project is owned by the same organization or personal account as the issue's repository. Projects owned by other accounts aren't affected. +When status sync is enabled for a project, {% data variables.product.github %} keeps an issue's status and the **Status** field of its project items in sync. The project must be owned by the same organization or personal account as the issue's repository. Projects owned by other accounts aren't affected. * **Issue to project**: When an issue's status changes, its item moves to the project's **Status** option with the same name. Names match regardless of case, extra spaces, and emoji, so a new project's **In Progress** option matches In progress. If no option matches, the item's **Status** doesn't change. * **Project to issue**: Moving an issue's item to a **Status** option with the same name as a status sets the issue's status, which can close or reopen the issue. Adding an issue to a project with a **Status**, for example in a board column, counts as a move. Options that don't match a status don't change the issue's status. A project's **Duplicate** option also doesn't change the status because closing an issue as a duplicate requires identifying the issue it duplicates. If you can't set the issue's status, the item moves back to the option that matches it. @@ -89,7 +89,7 @@ Only pull requests in the same repository as the issue, or in a public repositor If a project's **Item added to project** workflow is turned off, issues added to the project without a **Status** don't get one. Their item gets a **Status** the next time the issue's status changes or someone moves the item. -To keep a project's **Status** field separate from issue statuses, you can turn off the sync for that project. For more information, see [AUTOTITLE](/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations#turning-off-the-issue-status-sync). +Sync is off by default for existing and new projects that don't have a saved setting. To enable sync, see [AUTOTITLE](/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations#enabling-issue-status-sync). ## Using statuses with other tools diff --git a/content/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks.md b/content/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks.md index 24a40a5ecd31..7efe56117891 100644 --- a/content/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks.md +++ b/content/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks.md @@ -69,6 +69,22 @@ This restriction applies only to checks created by workflow jobs, not to checks Merge queues require the separate `merge_group` event. See [Status checks with {% data variables.product.prodname_actions %} and a Merge queue](#status-checks-with-github-actions-and-a-merge-queue). +## Check runs created with `GITHUB_TOKEN` stay "Expected" + +A required check can show as "Expected" and "Waiting for status to be reported" in the merge box, even though the check run completed successfully on the head commit. This can happen when the `GITHUB_TOKEN` is used in a workflow to make an explicit call to the REST API to create a check run. See [AUTOTITLE](/rest/checks/runs). + +{% data variables.product.prodname_actions %} creates a separate check suite for each workflow run, and you can't choose a check suite when you create a check run. A check run created this way can be added to any existing {% data variables.product.prodname_actions %} check suite on the commit, not necessarily the one for the workflow run that created it. + +This matters because required status checks only evaluate the latest check suite for each workflow. If the check run is attached to an older workflow run, and the same workflow has a newer run on the commit, the check run doesn't count toward the requirement. It can still appear as successful when you list check runs for the commit with the REST API. + +We recommend that you don't use the `GITHUB_TOKEN` to create check runs manually with the API. Instead, use one of these approaches: + +* Report the result as a commit status. Commit statuses aren't part of a check suite, and you can create them with the `GITHUB_TOKEN` when the workflow has the `statuses: write` permission. See [AUTOTITLE](/rest/commits/statuses). +* Create the check run with a {% data variables.product.prodname_github_app %} token instead of the `GITHUB_TOKEN`. See [AUTOTITLE](/apps/creating-github-apps/authenticating-with-a-github-app/making-authenticated-api-requests-with-a-github-app-in-a-github-actions-workflow). +* Create the check run through a job. Every job in a workflow run creates its own check run automatically, in the correct check suite. Put the logic for your check in a dedicated job, and require that job's check. + +If you change the source of a required check, make sure your ruleset or branch protection rule expects the new source. See [Required status checks from unexpected sources](#required-status-checks-from-unexpected-sources). + ## Handling skipped but required checks | Cause | Result | How to fix or check | diff --git a/data/reusables/actions/migrating-enterprise.md b/data/reusables/actions/migrating-enterprise.md index b36be9e8555a..41b93823a036 100644 --- a/data/reusables/actions/migrating-enterprise.md +++ b/data/reusables/actions/migrating-enterprise.md @@ -1 +1 @@ -If you're migrating your enterprise to {% data variables.product.prodname_actions %} from another provider, there are additional considerations. For more information, see [AUTOTITLE](/admin/managing-github-actions-for-your-enterprise/getting-started-with-github-actions-for-your-enterprise/migrating-your-enterprise-to-github-actions). +If you're migrating your enterprise to {% data variables.product.prodname_actions %} from another provider, there are additional considerations. For more information, see [AUTOTITLE](/actions/tutorials/migrate-to-github-actions/migrate-an-enterprise). diff --git a/data/reusables/copilot/content-exclusions-scope.md b/data/reusables/copilot/content-exclusions-scope.md index 56023358c91b..97fd7022eef7 100644 --- a/data/reusables/copilot/content-exclusions-scope.md +++ b/data/reusables/copilot/content-exclusions-scope.md @@ -1,4 +1,4 @@ -* **Repository administrators** can exclude content for their own repositories. This affects any {% data variables.product.prodname_copilot_short %} users in the enterprise working within those specific repositories. +* **Repository administrators** can exclude content for any organization-owned repositories that they administer. This affects any {% data variables.product.prodname_copilot_short %} users working within those specific repositories. * **Organization owners** can exclude content for users assigned a {% data variables.product.prodname_copilot_short %} seat through their organization. {% ifversion ghec %}