Bitzu

GH-900 ยท Repositories

Dependency insights and maintenance practices

Dependency graph and dependency insights for visibility, repository metrics dashboards, and maintenance best practices such as archiving and keeping docs current.

Key points

  • The dependency graph summarizes what a repository depends on (from manifest and lock files) and, for public repos, what depends on it; it underpins Dependabot alerts.
  • For upkeep, keep README and description current, close stale issues and PRs, and archive repositories you no longer maintain so they become read-only.

Source: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-the-dependency-graph

Practice questions

Single choice

What happens to a repository when it is archived?

  1. It becomes read-only
  2. It is permanently deleted
  3. It becomes private
  4. Its history is squashed into one commit
Show answer

Answer: A. It becomes read-only

Archiving makes the repository read-only and signals it is no longer actively maintained. It is not deleted, and it can be unarchived later.

Select all that apply

Which statements about the dependency graph are correct?

  1. It summarizes dependencies from manifest and lock files
  2. It is the basis for Dependabot alerts
  3. For public repositories it can list repositories that depend on yours
  4. It reports dependents of private repositories too
  5. It automatically opens pull requests to bump every dependency
Show answer

Answer: A. It summarizes dependencies from manifest and lock files, B. It is the basis for Dependabot alerts, C. For public repositories it can list repositories that depend on yours

The graph summarizes manifest and lock files, feeds Dependabot alerts, and lists dependents only for public repositories. It does not report dependents of private repositories, and opening bump PRs is Dependabot version updates, not the graph.

True or false

True or false: once a repository is archived, it can never be changed again.

Show answer

Answer: False

False. An archived repository can be unarchived from its settings, after which it can be edited again.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More GH-900 topics in this module