This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
Command to create a short-lived auth token #980
Labels
Every day, I use the GitLab web UI to create a short-lived token with permissions I need for that day. The token gets sent to one or more other machines and stored temporarily so that some semi-automated tools can act using my identity.
I've got the GitLab auth tokens page bookmarked, and I've gotten pretty fast at using it, but it would be even faster and more convenient to automate this with
glab
. I picture a flow like:I specify permissions for the token and time to live as an ISO 8601 duration. Or after I'm done I could revoke the token explicitly:
I haven't researched yet what's possible to do using the GitLab API regarding tokens. If necessary I can open an issue over there as well.
The text was updated successfully, but these errors were encountered: