Skip to main content

Sign in to


This assumes that you've created an account using your GitHub account.

Just like with docker login, the policy CLI requires you to sign in to an OCIv2-compliant registry. To sign in to the registry, use the GitHub account you registered with, and a GitHub personal access token (PAT) as your password.


You can create a GitHub PAT on this page.

policy login -u <GitHub-account> -p <GitHub-PAT>


-u <GitHub-account>: specify the GitHub account as the OPCR user

-p <GitHub-PAT>: specify a GitHub personal access token (PAT) as the OPCR password

--password-stdin: read the password from stdin


echo $GITHUB_PAT | policy login -u ogazitt --password-stdin