Skip to content

Commit 5317a3f

Browse files
authored
Merge pull request #17 from sbt/wip/token
Add token rights?
2 parents ad001cb + 8e4748e commit 5317a3f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/update-default.yml

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ jobs:
66
update_default:
77
runs-on: ubuntu-latest
88
timeout-minutes: 3
9+
permissions:
10+
contents: read
11+
pull-requests: write
912
steps:
1013
- uses: actions/checkout@v4
1114
- id: update_default
@@ -22,9 +25,12 @@ jobs:
2225
else
2326
echo "pushed=false" >> $GITHUB_OUTPUT
2427
fi
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2530
- uses: actions/github-script@v7
2631
if: steps.update_default.outputs.pushed == 'true'
2732
with:
33+
github-token: ${{ secrets.GITHUB_TOKEN }}
2834
script: |
2935
await github.rest.pulls.create({
3036
owner: context.repo.owner,

0 commit comments

Comments
 (0)