Skip to content

Instantly share code, notes, and snippets.

@andyshinn
Created February 24, 2016 00:51
Show Gist options
  • Save andyshinn/f71b05ba59a901db78e1 to your computer and use it in GitHub Desktop.
Save andyshinn/f71b05ba59a901db78e1 to your computer and use it in GitHub Desktop.
Change Quay permissions for all repositories
for repo in $(http --session quay GET "https://quay.io/api/v1/repository?namespace=$NAMESPACE&public=false" Authorization:"Bearer $AUTH_TOKEN" | jq -r '.repositories[].name'); do http --session quay PUT "https://quay.io/api/v1/repository/$NAMESPACE/$repo/permissions/team/$TEAM" role=read; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment