Skip to content

Trying to pull policies from OCI ECR AWS registry #9

@mhkok

Description

@mhkok

Hi! Thank you for creating this GitHub Action- I'm keen to use it. I'm interested in pulling policies from an OCI ECR AWS registry. As I've understood from the NOTE in the README I need to initially ensure that I've already logged in with the docker login command within the job.

I've done this with the following command: aws ecr get-login-password --region *** | docker login --username AWS --password-stdin ***.dkr.ecr.***.amazonaws.com. The login has succeed within the job, but for some reason I still get the following error when trying to pull the secrets: runnning conftest pull: Error: download policies: error downloading 'oci://***.dkr.ecr.***.amazonaws.com/***:latest': pulling policy: unexpected status code [manifests latest]: 401 Unauthorized

Any idea why the Action can't find the Docker creds? Originally I thought it would've been some permissions issue within the runner, but that does not seem the be case.

Any tips on how to solve are much appreciated!

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