1
0
mirror of synced 2025-12-22 19:34:15 -05:00
Files
docs/content/code-security/getting-started/about-securing-your-repository.md

6.3 KiB

title, intro, redirect_from, versions, topics
title intro redirect_from versions topics
About securing your repository {% data variables.product.product_name %} provides a number of ways that you can help keep your repository secure.
/github/administering-a-repository/about-securing-your-repository
free-pro-team enterprise-server github-ae
* >=3.0 *
repositories

Setting up your repository securely

The first step to securing a repository is to set up who can see and modify your code. For more information, see "Managing repository settings."

Securing your repository

{% data variables.product.prodname_dotcom %} has a growing set of security features that help you keep your code secure. You can find these on the Security tab for your repository.

{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %}

Available for all repositories

{% if currentVersion == "free-pro-team@latest" %}

{% if currentVersion ver_gt "enterprise-server@2.22" %}

  • {% data variables.product.prodname_dependabot_alerts %}

    View alerts about dependencies that are known to contain security vulnerabilities, and manage these alerts. For more information, see "About alerts for vulnerable dependencies." {% endif %}

{% if currentVersion == "free-pro-team@latest" %}

  • {% data variables.product.prodname_dependabot %} version updates

    Use {% data variables.product.prodname_dependabot %} to automatically raise pull requests to keep your dependencies up-to-date. This helps reduce your exposure to older versions of dependencies. Using newer versions makes it easier to apply patches if security vulnerabilities are discovered, and also makes it easier for {% data variables.product.prodname_dependabot_security_updates %} to successfully raise pull requests to upgrade vulnerable dependencies. For more information, see "About {% data variables.product.prodname_dependabot_version_updates %}." {% endif %} {% endif %}

{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" or currentVersion == "github-ae@latest" %}

Available {% if currentVersion == "free-pro-team@latest" %}for public repositories and for repositories {% endif %}with {% data variables.product.prodname_advanced_security %}

{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %} These features are available {% if currentVersion == "free-pro-team@latest" %}for all public repositories, and for private repositories owned by organizations with {% else %}if you have {% endif %}an {% data variables.product.prodname_advanced_security %} license. {% data reusables.advanced-security.more-info-ghas %} {% endif %}

  • {% data variables.product.prodname_code_scanning_capc %} alerts

    Automatically detect security vulnerabilities and coding errors in new or modified code. Potential problems are highlighted, with detailed information, allowing you to fix the code before it's merged into your default branch. For more information, see "About code scanning."

  • {% data variables.product.prodname_secret_scanning_caps %} alerts

    {% if currentVersion == "free-pro-team@latest" %}For private repositories, view {% else %}View {% endif %}any secrets that {% data variables.product.prodname_dotcom %} has found in your code. You should treat tokens or credentials that have been checked into the repository as compromised. For more information, see "About secret scanning."

{% endif %}

{% if currentVersion == "free-pro-team@latest" %}

  • Dependency review - Show the full impact of changes to dependencies and see details of any vulnerable versions before you merge a pull request. For more information, see "About dependency review." {% endif %}

{% if currentVersion != "github-ae@latest" %}

Exploring dependencies

{% data variables.product.prodname_dotcom %}'s dependency graph allows you to explore:

  • Ecosystems and packages that your repository depends on
  • Repositories and packages that depend on your repository

You must enable the dependency graph before {% data variables.product.prodname_dotcom %} can generate {% data variables.product.prodname_dependabot_alerts %} for dependencies with security vulnerabilities. {% if currentVersion == "free-pro-team@latest" %}Enabling the dependency graph also enables {% data variables.product.prodname_dotcom %} to run dependency reviews of pull requests.{% endif %}

You can find the dependency graph on the Insights tab for your repository. For more information, see "About the dependency graph." {% endif %}