Skip to content

Failing to push image to ghcr.io: 403 (Forbidden) #52

@J3RN

Description

@J3RN

Luckily I managed to figure out this issue, but I wanted to write about it so that other could find it.

Issue

In the step using this action, I would receive the following error from Podman:

Error: trying to reuse blob sha256:b2d5eeeaba3a22b9b8aa97261957974a6bd65274ebd43e1d81d0a7b8b752b116 at destination: failed to read from destination repository my_org/my_image: 403 (Forbidden)

Solution

This was a pre-existing package that I'm simply trying to automate the workflow around. The solution lied in permissions on the package. Namely, I needed to:

  1. Navigate to the package
  2. Click "Package settings" on the right side
    image
  3. Add the repository running the GitHub Action in the "Manage Actions access" section
    image

Voila! It works now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions