From ca1eaefc860c8a005847ead4edcd8b484a1a08dd Mon Sep 17 00:00:00 2001 From: Evan Goode Date: Tue, 1 Jul 2025 21:30:08 +0000 Subject: [PATCH] actions: Replace L10N_SSH_KEY secret with RSM CI GitHub token This will reduce the number of secrets we have to manage. We already use the RSM_CI_APP_ID and RSM_CI_APP_PRIVATE_KEY in `do-release.yaml`. --- .github/workflows/weblate-sync-pot.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/weblate-sync-pot.yml b/.github/workflows/weblate-sync-pot.yml index b3d4acb2..11a9b887 100644 --- a/.github/workflows/weblate-sync-pot.yml +++ b/.github/workflows/weblate-sync-pot.yml @@ -16,6 +16,15 @@ jobs: options: --user root timeout-minutes: 10 steps: + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.RSM_CI_APP_ID }} + private-key: ${{ secrets.RSM_CI_APP_PRIVATE_KEY }} + permissions: + contents: "write" + repositories: "rpm-software-management/dnf5-l10n" + - name: Clone source repository uses: actions/checkout@v4 with: @@ -33,7 +42,7 @@ jobs: with: path: l10n repository: ${{ github.repository }}-l10n - ssh-key: ${{ secrets.L10N_SSH_KEY }} + token: ${{ steps.app-token.outputs.token }} - name: Commit .pot to weblate repo run: |