Skip to content

Conversation

@ethanjli
Copy link
Member

@ethanjli ethanjli commented Jan 4, 2024

This PR attempts to resolve the GitHub Actions errors in the documentation-build workflow for the following PRs:

The error occurs in the "build and push" step:

[...]

#18 [auth] planktoscope/project-docs:pull,push token for ghcr.io
#18 DONE 0.0s

#17 exporting to image
#17 pushing layers 0.2s done
#17 ERROR: failed to push ghcr.io/planktoscope/project-docs:pr-328: unexpected status from POST request to https://ghcr.io/v2/planktoscope/project-docs/blobs/uploads/: 403 Forbidden
------
 > exporting to image:
------
ERROR: failed to solve: failed to push ghcr.io/planktoscope/project-docs:pr-328: unexpected status from POST request to https://ghcr.io/v2/planktoscope/project-docs/blobs/uploads/: 403 Forbidden
Error: buildx failed with: ERROR: failed to solve: failed to push ghcr.io/planktoscope/project-docs:pr-328: unexpected status from POST request to https://ghcr.io/v2/planktoscope/project-docs/blobs/uploads/: 403 Forbidden

According to docker/build-push-action#687 (comment), maybe we just need to explicitly set the permissions for the jobs. This PR attempts to do that.

@ethanjli ethanjli marked this pull request as ready for review January 4, 2024 00:25
@ethanjli
Copy link
Member Author

ethanjli commented Jan 4, 2024

Since the checks for this PR passed, I'm going to guess that the fix provided by this PR does work, and I'll merge it in.

@ethanjli ethanjli merged commit a603135 into master Jan 4, 2024
@ethanjli ethanjli deleted the hotfix/github-actions-permissions branch January 4, 2024 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants