From 5fa20a3914084420597a05a163eb471029005608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 8 Feb 2025 14:37:45 +0100 Subject: [PATCH] fix missing permissions for repo-sync --- .github/workflows/repo-sync.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/repo-sync.yml b/.github/workflows/repo-sync.yml index 8f734cd4d..99e078ffe 100644 --- a/.github/workflows/repo-sync.yml +++ b/.github/workflows/repo-sync.yml @@ -3,10 +3,8 @@ on: schedule: - cron: "39 * * * *" workflow_dispatch: - permissions: contents: write - jobs: repo-sync: if: github.repository_owner == 'clan-lol' @@ -15,10 +13,15 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.CI_APP_ID }} + private-key: ${{ secrets.CI_PRIVATE_KEY }} - name: repo-sync uses: repo-sync/github-sync@v2 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} with: source_repo: "https://git.clan.lol/clan/clan-core.git" source_branch: "main"