Validate artifact upload scope against repository #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up from rasterstate/download-artifact-action#15. The download-side fix rejects cross-repository reads when repository or RASTER_ARTIFACTS_SCOPE does not match GITHUB_REPOSITORY.
Upload should get the same scope validation for writes, so one repository cannot write or poison another repository's artifact prefix when repos share the same backend credential.
Expected fix: bind upload object keys to the current run's repository scope, or reject RASTER_ARTIFACTS_SCOPE/repository-style overrides unless backed by a signed scope claim.
The #16 review showed that binding to
GITHUB_REPOSITORYis still job-controlled and bypassable. The upload-side fix should mirror the signed-claim boundary from download-artifact-action#15 instead:RASTER_ARTIFACTS_SCOPE_CLAIMplusRASTER_ARTIFACTS_SCOPE_PUBLIC_KEYrepositoryclaim, not fromGITHUB_REPOSITORY/RASTER_ARTIFACTS_SCOPEGITHUB_REPOSITORYor any explicit scope override disagrees with the signed claimSo this issue is still valid, but the expected fix should be signed repo-scope claims, not a client-side comparison to
GITHUB_REPOSITORY.