Replies: 3 comments 1 reply
|
Artifacts always need a signed-in GitHub account to download, even on public repos. The REST endpoint needs a token too, so what you're seeing is expected. The 404 instead of 403 is most likely GitHub not confirming that the artifact exists to anonymous users. If you want anonymous downloads, a release is the way to go. You don't need a PAT for it, the built-in GITHUB_TOKEN is enough. To avoid clutter, keep one rolling release and overwrite the asset on each run: permissions:
For a file this small, committing it to a data branch and using raw.githubusercontent.com also works. If this solves it, feel free to mark the reply as the answer so others with the same question can find it. |
|
One more consideration if you move to the release approach: artifacts also expire (90 days by default, less if configured), so even for signed-in users they aren't a stable download location for data you want to keep serving. A rolling release asset doesn't have that expiry problem, which is another reason it's the better fit for a data file like this. Worth also noting the docs describe artifacts as a way to share data between jobs and to save workflow output — public distribution isn't one of the intended uses, which is why the auth requirement isn't called out prominently. |
|
I agree that the main problem here is the user experience rather than artifact retention. The authentication requirement is explicitly mentioned in two places:
However, returning a generic Since you've already migrated to releases, I'd recommend exposing a permanent download URL using a fixed release tag: This allows the CI workflow to update the existing release asset without creating a new release every week, assuming immutable releases are not enabled. Regarding GitHub itself, I think there are two reasonable product improvements:
The second option would preserve the existing security model while supporting legitimate public data distribution use cases like yours. A rolling release solves the immediate distribution problem, but it doesn't invalidate your original usability concern. I'd consider this valid product feedback rather than a workflow configuration issue. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
💬 Feature/Topic Area
ARC (Actions Runner Controller)
Discussion Details
Artifacts released by
upload-artifactcan not be downloaded without being logged in.I checked it in a separate private window, but the download button does not appear. Even though the artifact name is visible.
Even if I try to access it via direct download URL, it returns 404(not found) instead of 403(forbidden). But it works if I am logged in.
The docs do not mention requiring an account to download public repo artifacts. I am aware release section does exist, but it requires token. The process is also more tedious, and old releases cause clutter.
Affected repo: IN ISIN DB.
All reactions