Repository schützen

You can use a number of GitHub features to help keep your repository secure.

Repository administrators and organization owners can configure repository security settings.

Einführung

This guide shows you how to configure security features for a repository. You must be a repository administrator or organization owner to configure security settings for a repository.

Your security needs are unique to your repository, so you may not need to enable every feature for your repository. For more information, see "GitHub security features."

Some security features are only available if you have an Advanced Security license. Weitere Informationen findest Du unter „Informationen zu GitHub Advanced Security“.

Managing access to your repository

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."

From the main page of your repository, click Settings, then scroll down to the "Danger Zone."

code scanning konfigurieren

Code scanning is available for organization-owned repositories if you have an Advanced Security license.

You can set up code scanning to automatically identify vulnerabilities and errors in the code stored in your repository by using a CodeQL analysis workflow or third-party tool. For more information, see "Setting up code scanning for a repository."

Configuring secret scanning

Secret scanning is available for organization-owned repositories if you have an Advanced Security license.

Secret scanning may be enabled for your repository by default depending upon your organization's settings.

  1. From the main page of your repository, click Settings.
  2. Click Security & analysis.
  3. If GitHub Advanced Security is not already enabled, click Enable.
  4. Next to Secret scanning, click Enable.

Nächste Schritte:

You can view and manage alerts from security features to address dependencies and vulnerabilities in your code. For more information, see "Managing code scanning for your repository," and "Managing alerts from secret scanning."

Did this doc help you?Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Oder, learn how to contribute.