Skip to content

Commit

Permalink
test(i18n): use machine account PAT for all git interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy authored Sep 30, 2024
1 parent 34a0a8a commit 89ae15f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/sync_translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@ name: Sync Translations
on:
workflow_dispatch:

permissions:
contents: read
# We use a machine account PAT from secrets so workflows are triggered
# the default token is not needed and should be fully restricted
permissions: {}

jobs:
sync_translations:
permissions:
contents: write # for Git to git push
pull-requests: write # to create the PR with changes
name: 'Sync Translations with Crowdin'
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.MACHINE_ACCOUNT_PAT }}
ref: 'main'
fetch-depth: 0

Expand Down

0 comments on commit 89ae15f

Please sign in to comment.