Skip to content

Commit 3aa8419

Browse files
authored
repo sync
2 parents eca05af + bf383bf commit 3aa8419

5 files changed

Lines changed: 12 additions & 8 deletions

File tree

content/actions/reference/environment-variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ We strongly recommend that actions use environment variables to access the files
5151
| `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`. |
5252
| `GITHUB_SHA` | The commit SHA that triggered the workflow. For example, `ffac537e6cbbf934b08745a378932722df287a53`. |
5353
| `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. |
54-
| `GITHUB_HEAD_REF` | Only set for forked repositories. The branch of the head repository.
55-
| `GITHUB_BASE_REF` | Only set for forked repositories. The branch of the base repository.
54+
| `GITHUB_HEAD_REF` | Only set for pull request events. The name of the head branch.
55+
| `GITHUB_BASE_REF` | Only set for pull request events. The name of the base branch.
5656
| `GITHUB_SERVER_URL`| Returns the URL of the {% data variables.product.product_name %} server. For example: `https://{% data variables.product.product_url %}`.
5757
| `GITHUB_API_URL` | Returns the API URL. For example: `{% data variables.product.api_url_code %}`.
5858
| `GITHUB_GRAPHQL_URL` | Returns the GraphQL API URL. For example: `{% data variables.product.graphql_url_code %}`.

content/actions/reference/events-that-trigger-workflows.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,12 @@ on:
578578

579579
This event is similar to `pull_request`, except that it runs in the context of the base repository of the pull request, rather than in the merge commit. This means that you can more safely make your secrets available to the workflows triggered by the pull request, because only workflows defined in the commit on the base repository are run. For example, this event allows you to create workflows that label and comment on pull requests, based on the contents of the event payload.
580580

581+
{% warning %}
582+
583+
**Warning**: When using the `pull_request_target` event, be aware that it runs in the context of the base repository. This means that the `GITHUB_TOKEN` has write access to the repository, and the cache shares the same scope as the base branch. As a result, do not run untrusted code in the same context, as there is a risk that it may access sensitive information and unexpectedly manipulate the workflow environment. In addition, to help prevent cache poisoning, do not save the cache if there is a possibility that the cache contents were altered.
584+
585+
{% endwarning %}
586+
581587
| Webhook event payload | Activity types | `GITHUB_SHA` | `GITHUB_REF` |
582588
| --------------------- | -------------- | ------------ | -------------|
583589
| [`pull_request`](/webhooks/event-payloads/#pull_request) | - `assigned`<br/>- `unassigned`<br/>- `labeled`<br/>- `unlabeled`<br/>- `opened`<br/>- `edited`<br/>- `closed`<br/>- `reopened`<br/>- `synchronize`<br/>- `ready_for_review`<br/>- `locked`<br/>- `unlocked` <br/>- `review_requested` <br/>- `review_request_removed` | Last commit on the PR base branch | PR base branch |

content/developers/apps/authorizing-oauth-apps.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,9 @@ The optional `redirect_uri` parameter can also be used for localhost URLs. If th
272272

273273
For the `http://localhost/path` callback URL, you can use this `redirect_uri`:
274274

275-
http://localhost:1234/path
275+
```
276+
http://localhost:1234/path
277+
```
276278

277279
### Creating multiple tokens for OAuth Apps
278280

content/developers/apps/using-content-attachments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ To create a Probot App, follow these steps:
166166
}
167167
```
168168

169-
4. [Run the GitHub App locally](https://probot.github.io/docs/development/#running-the-app-locally). Navigate to [localhost:3000](http://localhost:3000), and click the **Register GitHub App** button:
169+
4. [Run the GitHub App locally](https://probot.github.io/docs/development/#running-the-app-locally). Navigate to `http://localhost:3000`, and click the **Register GitHub App** button:
170170

171171
![Register a Probot GitHub App](/assets/images/github-apps/github_apps_probot-registration.png)
172172

lib/excluded-links.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ module.exports = [
99
'https://github.com/github/docs/edit',
1010
'https://github.com/github/insights-releases/releases/latest',
1111

12-
// Developer content uses these for examples; they should not be checked.
13-
'http://localhost:1234',
14-
'localhost:3000',
15-
1612
// Oneoff links that link checkers think are broken but are not.
1713
'https://haveibeenpwned.com/',
1814
'https://www.ilo.org/dyn/normlex/en/f\\?p=NORMLEXPUB:12100:0::NO::P12100_ILO_CODE:P029'

0 commit comments

Comments
 (0)