You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,15 @@
8
8
9
9
GitHub Action allowing for applying labels to issues and pull requests based on patterns found in the title or description.
10
10
11
-
**NOTE** Thanks to the awesome efforts from the people at GitHub, `v2` and later support labeling from forked repositories via the [pull_request_target](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target) event.
11
+
## Deprecation Notice
12
+
13
+
⚠️ **The `GITHUB_TOKEN` input is deprecated and will be removed in v3.** Pass the token via `env` instead:
14
+
15
+
```yaml
16
+
- uses: jimschubert/labeler-action@v2
17
+
env:
18
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19
+
```
12
20
13
21
## Usage
14
22
@@ -102,7 +110,7 @@ labels:
102
110
103
111
### Create a Workflow
104
112
105
-
The action requires a single input parameter: `GITHUB_TOKEN`. This token allows the action to access the GitHub API for your account. Workflows automatically provide a default `GITHUB_TOKEN`, which provides full API access. You create a secret from a [new token](https://github.com/settings/tokens) with `public_repo` scope to limit the action's footprint.
113
+
The action requires the `GITHUB_TOKEN` environment variable. This token allows the action to access the GitHub API for your account. Workflows automatically provide a default `GITHUB_TOKEN`, which provides full API access. You can create a secret from a [new token](https://github.com/settings/tokens) with `public_repo` scope to limit the action's footprint.
106
114
107
115
**NOTE** Binding to issue or pull_request `edit` actions is _not_ recommended.
assert.Contains(t, output, "::warning::The GITHUB_TOKEN input is deprecated and will be removed in v3. Pass it via env instead. See docs for details.")
0 commit comments