Skip to content

github(artifact): check upload artifact support for GHES#382

Merged
crazy-max merged 1 commit intodocker:mainfrom
crazy-max:github-upload-artifact-ghes
Jun 25, 2024
Merged

github(artifact): check upload artifact support for GHES#382
crazy-max merged 1 commit intodocker:mainfrom
crazy-max:github-upload-artifact-ghes

Conversation

@crazy-max
Copy link
Member

relates to docker/build-push-action#1154

@actions/artifact v2+ is not yet supported on GHES. Users trying to upload an artifact will have an error that doesn't give enough context:

Failed to get backend IDs: The provided JWT token is invalid and/or missing claims

Before trying to downgrade to v1 we should at least return a better error message. This is similar to what actions/upload-artifact currently returns: https://github.com/actions/toolkit/blob/361a115e538ac6d8eb06cc47f3fcecce557d04c8/packages/artifact/src/internal/shared/errors.ts#L32

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the github-upload-artifact-ghes branch from 861955a to 4ce8a70 Compare June 24, 2024 12:15
@crazy-max crazy-max merged commit bbf0a8d into docker:main Jun 25, 2024
@crazy-max crazy-max deleted the github-upload-artifact-ghes branch June 25, 2024 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant