Skip to content

Commit

Permalink
Add token rights?
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Oct 31, 2024
1 parent ad001cb commit 8e4748e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/update-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ jobs:
update_default:
runs-on: ubuntu-latest
timeout-minutes: 3
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- id: update_default
Expand All @@ -22,9 +25,12 @@ jobs:
else
echo "pushed=false" >> $GITHUB_OUTPUT
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/github-script@v7
if: steps.update_default.outputs.pushed == 'true'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.pulls.create({
owner: context.repo.owner,
Expand Down

0 comments on commit 8e4748e

Please sign in to comment.