From 34c3bf6713c1f1b8001e0c0585f6acc06f134bdc Mon Sep 17 00:00:00 2001 From: Eng Zer Jun Date: Tue, 10 Dec 2024 00:27:57 +0800 Subject: [PATCH] ci(uffizzi-preview): provide GitHub token to download artifacts (#10005) GitHub token is required to download artifacts from another workflow run. Reference: https://github.com/actions/download-artifact/issues/320 Fixes: 62e1485143 ("ci(uffizzi-preview): use id of the workflow that triggered the workflow run (#10003)") Fixes: 2684cedddf ("chore(release-pr): update `upload-artifact` action to v4 (#9859)") Signed-off-by: Eng Zer Jun --- .github/workflows/uffizzi-preview.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/uffizzi-preview.yml b/.github/workflows/uffizzi-preview.yml index 1f648e2b33..ed512d1ca9 100644 --- a/.github/workflows/uffizzi-preview.yml +++ b/.github/workflows/uffizzi-preview.yml @@ -19,12 +19,14 @@ jobs: action: ${{ steps.event.outputs.ACTION }} steps: - name: 'Download artifacts' - # Fetch output (zip archive) from the workflow run that triggered this workflow. + # Download artifacts from the workflow run that triggered this workflow. + # Token is required to download from a different workflow run. uses: actions/download-artifact@v4 with: path: preview-spec pattern: preview-spec-* merge-multiple: true + github-token: ${{ github.token }} run-id: ${{ github.event.workflow_run.id }} - name: 'Accept event from first stage'