codejail
codejail copied to clipboard
Tests cannot be run on a PR from a fork
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.
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.
Good to know, thanks @aht007.