1
0
mirror of synced 2025-12-31 06:02:42 -05:00
Files
docs/content/admin/github-actions/enabling-github-actions-for-github-enterprise-server/setting-up-dependabot-updates.md
Vanessa 8bd8c10f9a GitHub Enterprise Server 3.3 release candidate (#22286)
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Kelly Arwine <kellyarwine@github.com>
Co-authored-by: vgrl <vgrl@github.com>
Co-authored-by: Elijah Buck <buckelij@github.com>
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Kelly Arwine <kellyarwine@github.com>
Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Felicity Chapman <felicitymay@github.com>
Co-authored-by: Jules Parker <19994093+jules-p@users.noreply.github.com>
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
Co-authored-by: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com>
Co-authored-by: github-openapi-bot <github-openapi-bot@users.noreply.github.com>
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
2021-11-09 12:12:00 -05:00

7.6 KiB

title, intro, allowTitleToDifferFromFilename, miniTocMaxHeadingLevel, versions, topics, shortTitle
title intro allowTitleToDifferFromFilename miniTocMaxHeadingLevel versions topics shortTitle
Setting up Dependabot security and version updates on your enterprise You can create dedicated runners for {% data variables.product.product_location %} that {% data variables.product.prodname_dependabot %} uses to create pull requests to help secure and maintain the dependencies used in repositories on your enterprise. true 3
ghes
> 3.2
Enterprise
Security
Dependabot
Dependencies
Set up Dependabot updates

{% data reusables.dependabot.beta-security-and-version-updates %}

{% tip %}

Tip: If {% data variables.product.product_location %} uses clustering, you cannot set up {% data variables.product.prodname_dependabot %} security and version updates as {% data variables.product.prodname_actions %} are not supported in cluster mode.

{% endtip %}

About {% data variables.product.prodname_dependabot %} updates

When you set up {% data variables.product.prodname_dependabot %} security and version updates for {% data variables.product.product_location %}, users can configure repositories so that their dependencies are updated and kept secure automatically. This is an important step in helping developers create and maintain secure code.

Users can set up {% data variables.product.prodname_dependabot %} to create pull requests to update their dependencies using two features.

Prerequisites for {% data variables.product.prodname_dependabot %} updates

Both types of {% data variables.product.prodname_dependabot %} update have the following requirements.

Additionally, {% data variables.product.prodname_dependabot_security_updates %} rely on the dependency graph, vulnerability data from {% data variables.product.prodname_github_connect %}, and {% data variables.product.prodname_dependabot_alerts %}. These features must be enabled on {% data variables.product.product_location %}. For more information, see "Enabling the dependency graph and {% data variables.product.prodname_dependabot %} alerts on your enterprise account."

Setting up self-hosted runners for {% data variables.product.prodname_dependabot %} updates

When you have configured {% data variables.product.product_location %} to use {% data variables.product.prodname_actions %}, you need to add self-hosted runners for {% data variables.product.prodname_dependabot %} updates. For more information, see "Getting started with {% data variables.product.prodname_actions %} for GitHub Enterprise Server."

System requirements for {% data variables.product.prodname_dependabot %} runners

Any VM that you use for {% data variables.product.prodname_dependabot %} runners must meet the requirements for self-hosted runners. In addition, they must meet the following requirements.

  • Linux operating system
  • The following dependencies installed:
    • Docker running as the same user as the self-hosted runner application
    • Git

The CPU and memory requirements will depend on the number of concurrent runners you deploy on a given VM. As guidance, we have successfully set up 20 runners on a single 2 CPU 8GB machine, but ultimately, your CPU and memory requirements will heavily depend on the repositories being updated. Some ecosystems will require more resources than others.

If you specify more than 14 concurrent runners on a VM, you must also update the Docker /etc/docker/daemon.json configuration to increase the default number of networks Docker can create.

{
  "default-address-pools": [
    {"base":"10.10.0.0/16","size":24}
  ]
}

Network requirements for {% data variables.product.prodname_dependabot %} runners

{% data variables.product.prodname_dependabot %} runners require access to the public internet, {% data variables.product.prodname_dotcom_the_website %}, and any internal registries that will be used in {% data variables.product.prodname_dependabot %} updates. To minimize the risk to your internal network, you should limit access from the Virtual Machine (VM) to your internal network. This reduces the potential for damage to internal systems if a runner were to download a hijacked dependency.

Adding self-hosted runners for {% data variables.product.prodname_dependabot %} updates

  1. Provision self-hosted runners, at the repository, organization, or enterprise account level. For more information, see "About self-hosted runners" and "Adding self-hosted runners."

  2. Verify that the self-hosted runners meet the requirements for {% data variables.product.prodname_dependabot %} before assigning a dependabot label to each runner you want {% data variables.product.prodname_dependabot %} to use. For more information, see "Using labels with self-hosted runners."

  3. Optionally, enable workflows triggered by {% data variables.product.prodname_dependabot %} to use more than read-only permissions and to have access to any secrets that are normally available. For more information, see "Troubleshooting {% data variables.product.prodname_actions %} for your enterprise."