Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Not able to scan images form Github container registry  #187

@shyam-ks

Description

@shyam-ks

anchore-cli, version 0.9.2

anchore-cli image add ghcr.io/org/xxx-2.0:831
Error: cannot fetch image digest/manifest from registry
HTTP Code: 400
Detail: {'error_codes': ['REGISTRY_PERMISSION_DENIED'], 'raw_exception_message': 'Error encountered in skopeo operation. cmd=/bin/sh -c skopeo
inspect --raw --tls-verify=false docker://ghcr.io/org/asset-2.0:831, rc=1, stdout=None, stderr=b'time="2022-01-17T10:05:20Z" level=fatal msg="Error parsing image name \\"docker://ghcr.io/org/xxx-2.0:831\\": unable to retrieve auth token: invalid username/password: unauthorized"\n', error_code=REGISTRY_PERMISSION_DENIED'}

anchore-cli registry add ghcr.io/org username token
Registry: ghcr.io/org
Name: ghcr.io/org
User: username
Type: docker_v2
Verify TLS: True
Created: 2022-01-17T09:59:53Z
Updated: 2022-01-17T09:59:53Z

Token has the right permissions but still its giving unauthorized

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