Skip to content

Commit c204b5f

Browse files
authored
Merge branch 'main' into personalizing-codespaces-for-your-account-more-files
2 parents 7efef30 + 2843cff commit c204b5f

File tree

5 files changed

+43
-6
lines changed

5 files changed

+43
-6
lines changed
Loading
Loading

content/code-security/secure-coding/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ You need write permission to view a summary of all the alerts for a repository o
4848
{% data reusables.repositories.sidebar-security %}
4949
{% data reusables.repositories.sidebar-code-scanning-alerts %}
5050
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.1"%}
51-
1. Optionally, use the drop-down menus to filter alerts. For example, you can filter by the tool that was used to identify alerts.
51+
1. Optionally, use{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.2" %} the free text search box or{% endif %} the drop-down menus to filter alerts. For example, you can filter by the tool that was used to identify alerts.
5252
![Filter by tool](/assets/images/help/repository/code-scanning-filter-by-tool.png){% endif %}
5353
1. Under "{% data variables.product.prodname_code_scanning_capc %}," click the alert you'd like to explore.
5454
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.1"%}
@@ -61,12 +61,49 @@ You need write permission to view a summary of all the alerts for a repository o
6161
1. Alerts from {% data variables.product.prodname_codeql %} analysis include a description of the problem. Click **Show more** for guidance on how to fix your code.
6262
![Details for an alert](/assets/images/help/repository/code-scanning-alert-details.png)
6363

64+
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.2" %}
65+
### Searching {% data variables.product.prodname_code_scanning %} alerts
66+
67+
You can search the list of alerts. This is useful if there is a large number of alerts in your repository, or if you don't know the exact name for an alert for example. {% data variables.product.product_name %} performs the free text search across:
68+
- The name of the alert
69+
- The alert description
70+
- The alert details (this also includes the information hidden from view by default in the **Show more** collapsible section)
71+
72+
![The alert information used in searches](/assets/images/help/repository/code-scanning-free-text-search-areas.png)
73+
74+
| Supported search | Syntax example | Results |
75+
| ---- | ---- | ---- |
76+
| Single word search | `injection` | Returns all the alerts containing the word `injection` |
77+
| Multiple word search | `sql injection` | Returns all the alerts containing `sql` or `injection` |
78+
| Exact match search</br>(use double quotes) | `"sql injection"` | Returns all the alerts containing the exact phrase `sql injection` |
79+
| OR search | `sql OR injection` | Returns all the alerts containing `sql` or `injection` |
80+
| AND search | `sql AND injection` | Returns all the alerts containing both words `sql` and `injection` |
81+
82+
{% tip %}
83+
84+
**Tips:**
85+
- The multiple word search is equivalent to an OR search.
86+
- The AND search will return results where the search terms are found _anywhere_, in any order in the alert name, description, or details.
87+
88+
{% endtip %}
89+
90+
{% data reusables.repositories.navigate-to-repo %}
91+
{% data reusables.repositories.sidebar-security %}
92+
{% data reusables.repositories.sidebar-code-scanning-alerts %}
93+
1. To the right of the **Filters** drop-down menus, type the keywords to search for in the free text search box.
94+
![The free text search box](/assets/images/help/repository/code-scanning-search-alerts.png)
95+
2. Press <kbd>return</kbd>. The alert listing will contain the open {% data variables.product.prodname_code_scanning %} alerts matching your search criteria.
96+
97+
{% endif %}
98+
6499
### Fixing an alert
65100

66101
Anyone with write permission for a repository can fix an alert by committing a correction to the code. If the repository has {% data variables.product.prodname_code_scanning %} scheduled to run on pull requests, it's best to raise a pull request with your correction. This will trigger {% data variables.product.prodname_code_scanning %} analysis of the changes and test that your fix doesn't introduce any new problems. For more information, see "[Configuring {% data variables.product.prodname_code_scanning %}](/code-security/secure-coding/configuring-code-scanning)" and "[Triaging {% data variables.product.prodname_code_scanning %} alerts in pull requests](/code-security/secure-coding/triaging-code-scanning-alerts-in-pull-requests)."
67102

68103
If you have write permission for a repository, you can view fixed alerts by viewing the summary of alerts and clicking **Closed**. For more information, see "[Viewing the alerts for a repository](#viewing-the-alerts-for-a-repository)." The "Closed" list shows fixed alerts and alerts that users have dismissed.
69104

105+
You can use{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.2" %} the free text search or{% endif %} the filters to display a subset of alerts and then in turn mark all matching alerts as closed.
106+
70107
Alerts may be fixed in one branch but not in another. You can use the "Branch" drop-down menu, on the summary of alerts, to check whether an alert is fixed in a particular branch.
71108

72109
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.1"%}
@@ -105,7 +142,7 @@ To dismiss or delete alerts:
105142

106143
![Deleting alerts](/assets/images/help/repository/code-scanning-delete-alerts.png)
107144

108-
Optionally, you can use the filters to display a subset of alerts and then delete all matching alerts at once. For example, if you have removed a query from {% data variables.product.prodname_codeql %} analysis, you can use the "Rule" filter to list just the alerts for that query and then select and delete all of those alerts.
145+
Optionally, you can use{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.2" %} the free text search or{% endif %} the filters to display a subset of alerts and then delete all matching alerts at once. For example, if you have removed a query from {% data variables.product.prodname_codeql %} analysis, you can use the "Rule" filter to list just the alerts for that query and then select and delete all of those alerts.
109146

110147
{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@3.1"%}
111148
![Filter alerts by rule](/assets/images/help/repository/code-scanning-filter-by-rule.png)

content/code-security/secure-coding/using-codeql-code-scanning-with-your-existing-ci-system/running-codeql-runner-in-your-ci-system.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ This example is similar to the previous example, however this time the repositor
158158
$ . /srv/checkout/example-repo-2/codeql-runner/codeql-env.sh
159159
```
160160
161-
1. Build the code. On macOS, you need to prefix the build command with the environment variable `$CODEQL_RUNNER`. For more information, see "[Troubleshooting {% data variables.product.prodname_codeql_runner %} in your CI system](/code-security/secure-coding/troubleshooting-codeql-runner-in-your-ci-system#no-code-found-during-the-build)#no-code-found-during-the-build)."
161+
1. Build the code. On macOS, you need to prefix the build command with the environment variable `$CODEQL_RUNNER`. For more information, see "[Troubleshooting {% data variables.product.prodname_codeql_runner %} in your CI system](/code-security/secure-coding/troubleshooting-codeql-runner-in-your-ci-system#no-code-found-during-the-build)."
162162
163163
{% data reusables.code-scanning.codeql-runner-analyze-example %}
164164

content/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Creating a default community health file
3-
intro: 'You can create default community health files, such as CONTRIBUTING and CODE_OF_CONDUCT. Default files will be used for any public repository owned by the account that does not contain its own file of that type.'
3+
intro: 'You can create default community health files, such as CONTRIBUTING and CODE_OF_CONDUCT. Default files will be used for any repository owned by the account that does not contain its own file of that type.'
44
redirect_from:
55
- /articles/creating-a-default-community-health-file-for-your-organization
66
- /github/building-a-strong-community/creating-a-default-community-health-file-for-your-organization
@@ -16,12 +16,12 @@ topics:
1616

1717
You can add default community health files to the root of a public repository called `.github` that is owned by an organization{% if currentVersion == "free-pro-team@latest" or currentVersion == "github-ae@latest" or currentVersion ver_gt "enterprise-server@2.19" %} or user account{% endif %}.
1818

19-
{% data variables.product.product_name %} will use and display default files for any public repository owned by the account that does not have its own file of that type in any of the following places:
19+
{% data variables.product.product_name %} will use and display default files for any repository owned by the account that does not have its own file of that type in any of the following places:
2020
- the root of the repository
2121
- the `.github` folder
2222
- the `docs` folder
2323

24-
For example, anyone who creates an issue or pull request in a public repository that does not have its own CONTRIBUTING file will see a link to the default CONTRIBUTING file. If a repository has any files in its own `.github/ISSUE_TEMPLATE` folder{% if currentVersion == "free-pro-team@latest" or currentVersion == "github-ae@latest" or currentVersion ver_gt "enterprise-server@2.19" %}, including issue templates or a *config.yml* file,{% endif %} none of the contents of the default `.github/ISSUE_TEMPLATE` folder will be used.
24+
For example, anyone who creates an issue or pull request in a repository that does not have its own CONTRIBUTING file will see a link to the default CONTRIBUTING file. If a repository has any files in its own `.github/ISSUE_TEMPLATE` folder{% if currentVersion == "free-pro-team@latest" or currentVersion == "github-ae@latest" or currentVersion ver_gt "enterprise-server@2.19" %}, including issue templates or a *config.yml* file,{% endif %} none of the contents of the default `.github/ISSUE_TEMPLATE` folder will be used.
2525

2626
Default files are not included in clones, packages, or downloads of individual repositories because they are stored only in the `.github` repository.
2727

0 commit comments

Comments
 (0)