Skip to content

Commit 37eec3f

Browse files
chore: add permissions so use of github api is ok regardless of submitter (#984)
Co-authored-by: Joel Dodge <[email protected]>
1 parent fd7c979 commit 37eec3f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/required-checks-hack-ci.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
branches:
2828
- main
2929

30+
permissions:
31+
checks: write
32+
3033
jobs:
3134
satisfy-required-checks:
3235
name: Satisfy Required Checks
@@ -84,7 +87,7 @@ jobs:
8487
run: |
8588
curl --request POST \
8689
--url https://api.github.com/repos/looker-open-source/sdk-codegen/check-runs \
87-
--header "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
90+
--header "authorization: token ${{ secrets.GITHUB_TOKEN }}" \
8891
--header "content-type: application/json" \
8992
--header "Accept: application/vnd.github.v3+json" \
9093
--data '{
@@ -103,7 +106,7 @@ jobs:
103106
run: |
104107
curl --request POST \
105108
--url https://api.github.com/repos/looker-open-source/sdk-codegen/check-runs \
106-
--header "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
109+
--header "authorization: token ${{ secrets.GITHUB_TOKEN }}" \
107110
--header "content-type: application/json" \
108111
--header "Accept: application/vnd.github.v3+json" \
109112
--data '{
@@ -122,7 +125,7 @@ jobs:
122125
run: |
123126
curl --request POST \
124127
--url https://api.github.com/repos/looker-open-source/sdk-codegen/check-runs \
125-
--header "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
128+
--header "authorization: token ${{ secrets.GITHUB_TOKEN }}" \
126129
--header "content-type: application/json" \
127130
--header "Accept: application/vnd.github.v3+json" \
128131
--data '{
@@ -141,7 +144,7 @@ jobs:
141144
run: |
142145
curl --request POST \
143146
--url https://api.github.com/repos/looker-open-source/sdk-codegen/check-runs \
144-
--header "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
147+
--header "authorization: token ${{ secrets.GITHUB_TOKEN }}" \
145148
--header "content-type: application/json" \
146149
--header "Accept: application/vnd.github.v3+json" \
147150
--data '{
@@ -160,7 +163,7 @@ jobs:
160163
run: |
161164
curl --request POST \
162165
--url https://api.github.com/repos/looker-open-source/sdk-codegen/check-runs \
163-
--header "authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
166+
--header "authorization: token ${{ secrets.GITHUB_TOKEN }}" \
164167
--header "content-type: application/json" \
165168
--header "Accept: application/vnd.github.v3+json" \
166169
--data '{

0 commit comments

Comments
 (0)