From 370af92a2b3ce6448e625d707ebf50bf04a5f9b7 Mon Sep 17 00:00:00 2001 From: Angus Bayley Date: Thu, 2 Jan 2025 18:32:25 +0000 Subject: [PATCH] ci: pass GH token to update-snapshots action --- .github/workflows/generate-screenshots.yml | 1 + tools/actions/composites/update-snapshots-desktop/action.yml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate-screenshots.yml b/.github/workflows/generate-screenshots.yml index 4c2299b91edd..450c21ac5302 100644 --- a/.github/workflows/generate-screenshots.yml +++ b/.github/workflows/generate-screenshots.yml @@ -78,6 +78,7 @@ jobs: id: update-snapshots with: os: ubuntu-22.04 + token: ${{ secrets.GITHUB_TOKEN }} report-start: name: Report start diff --git a/tools/actions/composites/update-snapshots-desktop/action.yml b/tools/actions/composites/update-snapshots-desktop/action.yml index 18ee2726b10e..3e28feb45f4b 100644 --- a/tools/actions/composites/update-snapshots-desktop/action.yml +++ b/tools/actions/composites/update-snapshots-desktop/action.yml @@ -4,6 +4,9 @@ inputs: os: description: "name of the os (same as runs-on)" required: true + token: + description: "GitHub token" + required: true runs: using: "composite" @@ -46,7 +49,7 @@ runs: uses: swinton/commit@v2.0.0 if: ${{ steps.status.outputs.status != 0 || steps.status-windows.outputs.status != 0 }} env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ inputs.token }} with: files: | apps/ledger-live-desktop/tests/specs*