Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c32ce14

Browse filesBrowse files
authored
Merge pull request actions#145 from MichaelDeBoey/patch-1
docs: remove `github-token` usage from examples
2 parents a3e7071 + cec0870 commit c32ce14
Copy full SHA for c32ce14

File tree

1 file changed

+0
-6
lines changed
Filter options

1 file changed

+0
-6
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
-6Lines changed: 0 additions & 6 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.