Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

Commit ac24e63

Browse files
sapientpantsclaude
andcommitted
fix: enable cross-workflow artifact downloads in publish workflow
The Publish workflow was failing to download artifacts from the Main workflow because actions/download-artifact@v4 defaults to downloading only from the current workflow run. Added run-id and github-token parameters to all download-artifact steps to enable cross-workflow artifact access. This allows the Publish workflow to correctly download NPM packages and Docker images that were built and tested in the Main workflow. This fixes the "Artifact not found" errors in v1.10.8 and future releases. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 097635d commit ac24e63

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'sonarqube-mcp-server': patch
3+
---
4+
5+
Fix cross-workflow artifact downloads by adding run-id parameter
6+
7+
The Publish workflow was unable to download artifacts from the Main workflow because the actions/download-artifact@v4 action defaults to only downloading artifacts from the current workflow run. Added the run-id and github-token parameters to all three download steps (NPM, GitHub Packages, and Docker) to enable cross-workflow artifact access.

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ jobs:
103103
with:
104104
name: ${{ steps.artifact.outputs.artifact_name }}
105105
path: ./npm-artifact
106+
run-id: ${{ steps.artifact.outputs.run_id }}
107+
github-token: ${{ secrets.GITHUB_TOKEN }}
106108

107109
- name: Use pre-built package or build from source
108110
run: |
@@ -221,6 +223,8 @@ jobs:
221223
with:
222224
name: ${{ steps.artifact.outputs.artifact_name }}
223225
path: ./npm-artifact
226+
run-id: ${{ steps.artifact.outputs.run_id }}
227+
github-token: ${{ secrets.GITHUB_TOKEN }}
224228

225229
- name: Use pre-built package or build from source
226230
run: |
@@ -328,6 +332,8 @@ jobs:
328332
with:
329333
name: ${{ steps.artifact.outputs.artifact_name }}
330334
path: ./docker-artifact
335+
run-id: ${{ steps.artifact.outputs.run_id }}
336+
github-token: ${{ secrets.GITHUB_TOKEN }}
331337

332338
- name: Verify artifact exists
333339
if: steps.check-docker.outputs.has_credentials == 'true'

0 commit comments

Comments
 (0)