Skip to content

Commit cec0870

Browse files
docs: remove github-token usage from examples
1 parent a3e7071 commit cec0870

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

README.md

-6
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ output of a github-script step. For some workflows, string encoding is preferred
6666
- uses: actions/github-script@v4
6767
id: my-script
6868
with:
69-
github-token: ${{secrets.GITHUB_TOKEN}}
7069
result-encoding: string
7170
script: return "I will be string (not JSON) encoded!"
7271
```
@@ -100,7 +99,6 @@ jobs:
10099
steps:
101100
- uses: actions/github-script@v4
102101
with:
103-
github-token: ${{secrets.GITHUB_TOKEN}}
104102
script: |
105103
github.issues.createComment({
106104
issue_number: context.issue.number,
@@ -123,7 +121,6 @@ jobs:
123121
steps:
124122
- uses: actions/github-script@v4
125123
with:
126-
github-token: ${{secrets.GITHUB_TOKEN}}
127124
script: |
128125
github.issues.addLabels({
129126
issue_number: context.issue.number,
@@ -144,7 +141,6 @@ jobs:
144141
steps:
145142
- uses: actions/github-script@v4
146143
with:
147-
github-token: ${{secrets.GITHUB_TOKEN}}
148144
script: |
149145
// Get a list of all issues created by the PR opener
150146
// See: https://octokit.github.io/rest.js/#pagination
@@ -188,7 +184,6 @@ jobs:
188184
steps:
189185
- uses: actions/github-script@v4
190186
with:
191-
github-token: ${{secrets.GITHUB_TOKEN}}
192187
script: |
193188
const diff_url = context.payload.pull_request.diff_url
194189
const result = await github.request(diff_url)
@@ -213,7 +208,6 @@ jobs:
213208
steps:
214209
- uses: actions/github-script@v4
215210
with:
216-
github-token: ${{secrets.GITHUB_TOKEN}}
217211
script: |
218212
const query = `query($owner:String!, $name:String!, $label:String!) {
219213
repository(owner:$owner, name:$name){

0 commit comments

Comments
 (0)