-
-
Notifications
You must be signed in to change notification settings - Fork 52
Support usage of Organization Access Tokens (OAT) #294
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
Comments
Hi @dmohns It's not clear to me from the documentation whether these tokens support the API this action uses.
I don't have access to this feature so I can't check. 😅 |
This looks a lot like some issue on DockerHub side with this new tokens. I guess they are in beta after all 😄 I did some testing here on my side. Actually the {
"detail": "Cannot log into an organization account"
} I also noticed here in the Docker Hub API docs that Note As of Monday, September 16, 2024, this route requires a PAT instead of a password if your organization has SSO enforced. Maybe this is interfering. I will raise the issue to DockerHub. Let's see what the response is. Keeping this issue open for visibility. |
I created PR #311 for updating the endpoint as @jspiewak mentioned. This does fix the 401 issue when creating tokens using an OAT, but it would appear that OATs still lack sufficient permissions to use the @peter-evans do you happen to know if there's any public documentation of that |
Hey 👋
loving this Github Action so far!
Problem description:
Our org recently moved to use Organization Access Tokens (OAT) rather than Personal Access Tokens (PAT) in our deployment pipelines, see https://docs.docker.com/security/for-admins/access-tokens/
This works well for all other actions which Push images to DockerHub. However, the
update-description
action fails withIt would be great if we can use the
update-description
with OAT.Additional information:
I don't fully understand where the issues is coming from. It might be related to the fact that OAT and PAT have slightly different permission levels. For example, for PAT I chose
Read, Write, Delete
as scope, while OAT have scopePush and Pull
.The text was updated successfully, but these errors were encountered: