Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to pull policies from OCI ECR AWS registry #9

Open
mhkok opened this issue Jan 14, 2022 · 0 comments
Open

Trying to pull policies from OCI ECR AWS registry #9

mhkok opened this issue Jan 14, 2022 · 0 comments

Comments

@mhkok
Copy link

mhkok commented Jan 14, 2022

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!

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

No branches or pull requests

1 participant