Skip to content

Commit ba7db08

Browse files
committed
apply versioning
1 parent 537ad75 commit ba7db08

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

content/github/finding-security-vulnerabilities-and-errors-in-your-code/setting-up-code-scanning-for-a-repository.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ You decide how to generate {% data variables.product.prodname_code_scanning %} a
3333
!["Set up {% data variables.product.prodname_code_scanning %}" button to the right of "{% data variables.product.prodname_code_scanning_capc %}" in the Security Overview](/assets/images/help/security/overview-set-up-code-scanning.png)
3434
4. Under "Get started with {% data variables.product.prodname_code_scanning %}", click **Set up this workflow** on the {% data variables.product.prodname_codeql_workflow %} or on a third-party workflow.
3535
!["Set up this workflow" button under "Get started with {% data variables.product.prodname_code_scanning %}" heading](/assets/images/help/repository/code-scanning-set-up-this-workflow.png)
36-
Most workflows are unavailable if they aren't relevant for the programming languages detected in the repository. The only exception is the {% data variables.product.prodname_codeql_workflow %}, which is always displayed, but the "Set up this workflow" button will be disabled if the {% data variables.product.prodname_codeql %} analysis doesn't support the languages present in the repository.
36+
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %}
37+
Most workflows are unavailable if they aren't relevant for the programming languages detected in the repository. The only exception is the {% data variables.product.prodname_codeql_workflow %}, which is always displayed, but the "Set up this workflow" button will be disabled if the {% data variables.product.prodname_codeql %} analysis doesn't support the languages present in the repository.{% endif %}
3738
5. To customize how {% data variables.product.prodname_code_scanning %} scans your code, edit the workflow.
3839

3940
Generally you can commit the {% data variables.product.prodname_codeql_workflow %} without making any changes to it. However, many of the third-party workflows require additional configuration, so read the comments in the workflow before committing.

0 commit comments

Comments
 (0)