1
0
mirror of synced 2026-01-05 12:07:35 -05:00
Files
docs/translations/ru-RU/content/github/finding-security-vulnerabilities-and-errors-in-your-code/enabling-code-scanning-for-a-repository.md
Jason Etcovitch caaee7a124 Update all files to use {% data %} (#15253)
* Add back changes from prior to purge

* Manually fix some invalid Liquid

* Updoot render-content

* Improve test messages to show correct output

* Run el scripto

* Pass the remaining test
2020-09-29 16:01:04 -04:00

4.6 KiB

title, shortTitle, intro, product, permissions, redirect_from, versions
title shortTitle intro product permissions redirect_from versions
Enabling code scanning for a repository Enabling code scanning You can enable {% data variables.product.prodname_code_scanning %} for your project's repository. {% data reusables.gated-features.code-scanning %} People with write permissions to a repository can enable {% data variables.product.prodname_code_scanning %} for the repository.
/github/managing-security-vulnerabilities/configuring-automated-code-scanning
/github/finding-security-vulnerabilities-and-errors-in-your-code/enabling-code-scanning
free-pro-team enterprise-server
* >=2.22

{% data reusables.code-scanning.beta %} {% data reusables.code-scanning.enterprise-enable-code-scanning-actions %}

Options for enabling {% data variables.product.prodname_code_scanning %}

You decide how you generate {% data variables.product.prodname_code_scanning %} alerts, and which tools you use, at a repository level. {% data variables.product.product_name %} provides fully integrated support for {% data variables.product.prodname_codeql %} analysis, and also supports analysis using third-party tools. For more information, see "About {% data variables.product.prodname_codeql %}."

{% data reusables.code-scanning.enabling-options %}

Enabling {% data variables.product.prodname_code_scanning %} using actions

{% if currentVersion == "free-pro-team@latest" %}Using actions to run {% data variables.product.prodname_code_scanning %} will use minutes. For more information, see "About billing for {% data variables.product.prodname_actions %}."{% endif %}

{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-security %} 3. To the right of "Code scanning", click Set up code scanning. "Set up code scanning" button to the right of "Code scanning" in the Security Overview 4. Under "Get started with code scanning", click Set up this workflow on the {% data variables.product.prodname_codeql_workflow %} or on a third-party workflow. "Set up this workflow" button under "Get started with code scanning" heading 5. Optionally, to customize how {% data variables.product.prodname_code_scanning %} scans your code, edit the workflow. For more information, see "Configuring {% data variables.product.prodname_code_scanning %}." 6. Use the Start commit drop-down, and type a commit message. Start commit 7. Choose whether you'd like to commit directly to the default branch, or create a new branch and start a pull request. Choose where to commit 8. Click Commit new file or Propose new file.

After you commit the workflow file or create a pull request, {% data variables.product.prodname_code_scanning %} will analyze your code according to the frequency you specified in your workflow file. If you created a pull request, {% data variables.product.prodname_code_scanning %} will only analyze the code on the pull request's topic branch until you merge the pull request into the default branch of the repository.

Дальнейшие шаги

After you enable {% data variables.product.prodname_code_scanning %}, you can monitor analysis, view results, and further customize how you scan your code.