Skip to content

Commit

Permalink
unbreak template initialization workflow
Browse files Browse the repository at this point in the history
GITHUB_TOKEN now defaults to readonly access, unless permissions are explicitly specified in the workflow.

Also updated ad-m/github-push-action version.
  • Loading branch information
siddharthvp authored Apr 5, 2024
1 parent 303c617 commit c0915f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/template_initialization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
template_initialization:
runs-on: ubuntu-latest
if: ${{ github.event.created && github.repository != 'wikimedia-gadgets/twinkle-starter' }}
permissions: write-all
steps:

- uses: actions/checkout@v3
Expand All @@ -35,7 +36,7 @@ jobs:
git config --local user.name "twinkle_bot"
git commit -am "Replacing the template's placeholders"
- name: Push changes
uses: ad-m/github-push-action@v0.6.0
uses: ad-m/github-push-action@v0.8.0
with:
github_token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
branch: master
Expand Down

0 comments on commit c0915f7

Please sign in to comment.