codejail icon indicating copy to clipboard operation
codejail copied to clipboard

Tests cannot be run on a PR from a fork

Open kdmccormick opened this issue 2 years ago • 2 comments

See https://github.com/openedx/codejail/pull/138, which I opened from my personal fork of codejail.

When trying to run tests, GHA shows:

Error: Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers

This is probably because my fork doesn't have access to secrets from the openedx organization.

This is not an issue from 2U or for most of tCRIL, but is an issue for anyone trying to contribute from an external organization.

kdmccormick avatar Oct 03 '22 15:10 kdmccormick

This is expected behavior since the CI image is hosted on edX's ECR account and talking about that, would it make more sense if the CI docker image was hosted on openedX's dockerhub account since this is an openedX repo now. And even when the image is hosted there, forks would still need to setup some secrets for the login etc in CI. But currently there is no way forks can run tests since they wouldn't have access to the ECR registry that contains the image.

aht007 avatar Oct 20 '22 18:10 aht007

Good to know, thanks @aht007.

kdmccormick avatar Nov 04 '22 13:11 kdmccormick