sgaunet/gitlab-token-expiration
GitHub: sgaunet/gitlab-token-expiration
一款用于监控并报告 GitLab 各类访问令牌过期日期的命令行工具,帮助团队避免因凭证失效导致的服务中断。
Stars: 3 | Forks: 0
[](https://github.com/sgaunet/gitlab-token-expiration/releases/latest)
[](https://goreportcard.com/report/github.com/sgaunet/gitlab-token-expiration)


[](https://godoc.org/github.com/sgaunet/gitlab-token-expiration)
[](https://github.com/sgaunet/gitlab-token-expiration/actions/workflows/linter.yml)
[](https://github.com/sgaunet/gitlab-token-expiration/actions/workflows/release.yml)
[](https://github.com/sgaunet/gitlab-token-expiration/actions/workflows/snapshot.yml)
[](LICENSE)
# gitlab-token-expiration
该工具会列出 gitlab 项目、gitlab 组以及 gitlab 个人访问令牌等各类可过期的令牌。此工具的目的是提供令牌过期日期的概览。
## 快速开始
示例:
```
$ export GITLAB_TOKEN=yourtoken
# export GITLAB_URI=https://your-instance-of-gitlab.com # 如果您使用的是另一个 gitlab 实例,则为可选
$ gitlab-token-expiration -h
```
## 开发
本项目使用:
* Golang
* [用于开发的 task](https://taskfile.dev/#/)
* [goreleaser](https://goreleaser.com/)
使用 task 来编译/创建发布版本...
```
$ task
task: [default] task -a
task: Available tasks for this project:
* build: Build the binary
* default: List tasks
* doc: Start godoc server
* release: Create a release
* snapshot: Create a snapshot release
```
## 安装
### 从发布版本
从[发布页面](https://github.com/sgaunet/gitlab-token-expiration/releases)下载最新版本并将其安装到您的 PATH 中。
### Homebrew
```
brew tap sgaunet/homebrew-tools
brew install sgaunet/tools/gitlab-token-expiration
```
标签:EVTX分析, GitLab, Golang, 安全编程, 开发运维, 文档结构分析, 日志审计, 监控工具