ropensci-review-tools / pkgcheck

Check whether a package is ready for submission to rOpenSci's peer-review system
https://docs.ropensci.org/pkgcheck/
18 stars 6 forks source link

Create an account just for token creation #140

Open maelle opened 2 years ago

maelle commented 2 years ago

as mentioned by @assignUser https://github.com/ropensci-review-tools/pkgcheck/issues/123#issue-1109573181

Advantages

mpadge commented 1 year ago

This gained a boost in importance this week, with the discovery that GitHub must have somehow changed their token handling. Up until now, the main token shared between pkgcheck and pkgcheck-action (called "RRT_TOKEN") was a simple repo-level token that could be created by anyone with admin access, yet did not need to be a personal token. That recently stopped working, and the use of the token here: https://github.com/ropensci-review-tools/pkgcheck/blob/86bb65490969a76bf4bfd1ca92a7247ca9d27768/.github/workflows/docker.yaml#L50-L54 now only works with a personal token copied over to the equivalent token values here and in pkgcheck-action. I'll update the docs straight away to indicate this. The process will then definitely be easier and more robust if we had an account for token creation.

maelle commented 1 year ago

why not use ropenscibot then?

mpadge commented 1 year ago

Yep, my thought too. We would then need to ensure that at least one person with admin there was also watching notifications from pkgcheck.

maelle commented 1 year ago

what sort of notifications would be relevant? the token expiration?

mpadge commented 1 year ago

Yes. Technically they'd just have to watch whatever issue was given here: https://github.com/ropensci-review-tools/pkgcheck/blob/0728387cf316b51129aea3f73f156eb620144dc7/.github/workflows/monthly.yaml#L26 which is where the token expiration notifications come. Shall we set that up then?

mpadge commented 1 year ago

Description of tokens added in this ropensci-review-tools commit, including a section on "Assigning 'RRT_TOKEN' updates to a different person." Maybe that's actually sufficient for now? What do you think @maelle @assignUser :question:

Rendered section on tokens is here, with description of maintance-handover here.