Gitlab私人令牌许可
是否可以检查我们连接到GitLab的私人令牌的范围 /权限? 在BASH脚本中,我想检查是否可以使用我授权的令牌创建分支。 此命令只会返回所有令牌的列表,我想检查授权的洗涤。
curl -s --header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" "https://gitlab.com/api/v4/personal_access_tokens"
Is it possible to check the scope / permissions of the private token that we connect to gitlab?
In the bash script I would like to check if I can create a branch with the token that I authorize.
This command only returns me a list of all tokens, and I would like to check what washing is the one that authorizes.
curl -s --header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" "https://gitlab.com/api/v4/personal_access_tokens"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
获得GitLab令牌ID后,您需要在卷发中添加一些后处理:
You would need to add some post-processing to your curl, after getting your GitLab token ID: