Skip to content

Commit 3f14ec4

Browse files
authored
Merge branch 'main' into patch-1
2 parents 6018b56 + c7847dc commit 3f14ec4

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

content/actions/reference/environment-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ We strongly recommend that actions use environment variables to access the files
4949
| `GITHUB_REPOSITORY` | The owner and repository name. For example, `octocat/Hello-World`. |
5050
| `GITHUB_EVENT_NAME` | The name of the webhook event that triggered the workflow. |
5151
| `GITHUB_EVENT_PATH` | The path of the file with the complete webhook event payload. For example, `/github/workflow/event.json`. |
52-
| `GITHUB_WORKSPACE` | The {% data variables.product.prodname_dotcom %} workspace directory path. The workspace directory contains a subdirectory with a copy of your repository if your workflow uses the [actions/checkout](https://github.com/actions/checkout) action. If you don't use the `actions/checkout` action, the directory will be empty. For example, `/home/runner/work/my-repo-name/my-repo-name`. |
52+
| `GITHUB_WORKSPACE` | The {% data variables.product.prodname_dotcom %} workspace directory path. The workspace directory is a copy of your repository if your workflow uses the [actions/checkout](https://github.com/actions/checkout) action. If you don't use the `actions/checkout` action, the directory will be empty. For example, `/home/runner/work/my-repo-name/my-repo-name`. |
5353
| `GITHUB_SHA` | The commit SHA that triggered the workflow. For example, `ffac537e6cbbf934b08745a378932722df287a53`. |
5454
| `GITHUB_REF` | The branch or tag ref that triggered the workflow. For example, `refs/heads/feature-branch-1`. If neither a branch or tag is available for the event type, the variable will not exist. |
5555
| `GITHUB_HEAD_REF` | Only set for forked repositories. The branch of the head repository.

content/github/finding-security-vulnerabilities-and-errors-in-your-code/running-code-scanning-in-your-ci-system.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,18 @@ chmod +x codeql-runner-macos
3939
sudo xattr -d com.apple.quarantine codeql-runner-macos
4040
```
4141

42+
On Windows, the `codeql-runner-win.exe` file usually requires no change to permissions.
43+
4244
### Adding the {% data variables.product.prodname_codeql_runner %} to your CI system
4345

44-
Once you have downloaded the {% data variables.product.prodname_codeql_runner %} and verified that it can be executed, you should make the runner available to each CI server that you intend to use for {% data variables.product.prodname_code_scanning %}. In addition to this, each CI server also needs:
46+
Once you have downloaded the {% data variables.product.prodname_codeql_runner %} and verified that it can be executed, you should make the runner available to each CI server that you intend to use for {% data variables.product.prodname_code_scanning %}. It is important to notice that each CI server that you intend to use for {% data variables.product.prodname_code_scanning %} needs to have the {% data variables.product.prodname_codeql_runner %}. You might configure each server to copy the runner from a central, internal location, or you could use the REST API to get the runner direct from GitHub, for example:
47+
48+
```shell
49+
wget https://github.com/github/codeql-action/releases/download/codeql-bundle-20200826/codeql-runner-linux
50+
chmod +x codeql-runner-linux
51+
```
52+
53+
In addition to this, each CI server also needs:
4554

4655
- A {% data variables.product.prodname_github_apps %} or personal access token for the {% data variables.product.prodname_codeql_runner %} to use. For private repositories the token must have the `repo` scope. For public the token needs only the `public_repo` and `repo:security_events` scopes. For information, see "[Building {% data variables.product.prodname_github_apps %}](/developers/apps/building-github-apps)" and "[Creating a personal access token](/github/authenticating-to-github/creating-a-personal-access-token)."
4756
- Access to the {% data variables.product.prodname_codeql %} bundle associated with this release of the {% data variables.product.prodname_codeql_runner %}. This package contains the {% data variables.product.prodname_codeql %} CLI, queries, and libraries needed for {% data variables.product.prodname_codeql %} analysis. For information, see "[{% data variables.product.prodname_codeql %} CLI](https://help.semmle.com/codeql/codeql-cli.html)."

content/github/managing-your-work-on-github/applying-labels-to-issues-and-pull-requests.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ versions:
1111

1212
{% tip %}
1313

14-
**Tip:** You can also apply a label in the Labels drop-down menu within an issue or pull request.
14+
**Tip:** You can apply up to a maximum of 100 labels to issues and pull requests.
1515

1616
{% endtip %}
1717

1818
{% data reusables.repositories.navigate-to-repo %}
1919
{% data reusables.repositories.sidebar-issue-pr %}
2020
{% data reusables.repositories.select-items-in-issue-or-pr-list %}
21-
4. In the upper-right corner, click **Label**, then start typing the name of an existing label. Click the label's name to associate it with the selected items.
21+
4. In the upper-right corner, click **Label**, then start typing the name of an existing label. Click the label's name to associate it with the selected items. You can also apply a label in the Labels drop-down menu within an issue or pull request.
2222
![Issues Milestone assignment drop-down](/assets/images/help/issues/issues_applying_labels_dropdown.png)
23+
2324

2425
### Further reading
2526

0 commit comments

Comments
 (0)