Skip to content
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

[Dev][CI] Notify when the GitHub crossbow token is close to expiration #14977

Closed
raulcd opened this issue Dec 15, 2022 · 0 comments
Closed

[Dev][CI] Notify when the GitHub crossbow token is close to expiration #14977

raulcd opened this issue Dec 15, 2022 · 0 comments

Comments

@raulcd
Copy link
Member

raulcd commented Dec 15, 2022

Describe the enhancement requested

As noted on this Mailing Thread: https://lists.apache.org/thread/ldj6n1jvzb66hr0pcw3bgo5jdpbw2tor

Nightly CI and other Crossbow related tasks stopped working because the token used as a secret on both the Arrow repository, the crossbow repository and Azure had expired.

We are using a fine grained Personal Access Token (PAT): https://github.blog/2022-10-18-introducing-fine-grained-personal-access-tokens-for-github/

Those tokens have a maximum expiration of 1 year.

We could add a scheduled job (weekly?) that sends a notification if the token is near to expiration.

Requests sent to GitHub with a PAT receive a header response with the expiration date:

< github-authentication-token-expiration: 2023-12-13 00:00:00 +0100

Component(s)

Continuous Integration, Developer Tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants