-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
CircleCI : use only Status permission for the API calls #1064
Comments
Any opinion on that? If you tell me that a PR fixing this would get merged I might implement it 🙂 |
Hi! This sounds like an excellent idea. If you can work up a pull request and add some tests I would be really happy to review and merge it. |
It looks like there is no endpoint on CircleCI that is able to make use of this restricted scope for now 🙁 I'll follow up here when I get some news! |
There was a little bit of talk about this awhile ago here, not sure if anything has changed on CircleCI's end since then though. A
|
Thanks for the input @RedSparr0w , much appreciated 👍 I think I'll let this open until I get some news from CircleCI about the request of a new endpoint being able to work with a status-only scoped token |
Huh. How come doesn't the status token doesn't work for our badge? |
So, it sounds like we could use a I wonder, would using the status badge help us solve #1995? (cc @chris48s) This just came up because @haythem just added some documentation in #2379, and I'm wondering if we should tweak it. It's also worth noting that the Circle badge is the one exception to our typical pattern of not accepting secret tokens. It might be worth noting that somewhere, perhaps in a code comment. |
I've not tried, but if there's a SVG badge we can probably scrape it using the |
The Circle route will need to be updated for #3329. While Shields has long had a policy of not accepting secrets on the public badge service, this service has been an exception. Perhaps we could resolve the policy conflict by solving this issue. If the badge is using a status-only token, we're in fine shape. |
tl;dr : I think the CircleCI badge with token should be able to work with an API token having the "Status" scope only
When generating an API token for CircleCI (used for private projects badges), it is possible to assign a scope to it. They currently support 3 scopes : "Status", "Build artifacts" and "all".
"Status" scope should be enough to get informations for a badge, and it is the scope used for the "official" CircleCI tokens. Yet, shields.io requires a "all" scope, and will display a "permission denied" badge otherwise. I think that it could and should be limited to API calls allowed by the "Status" permission since it's made for it; and I am a bit concerned about using "all" scope for a badge since it gives full access to the API on a private project...
The text was updated successfully, but these errors were encountered: