sgaunet/gitlab-token-expiration

GitHub: sgaunet/gitlab-token-expiration

一款用于监控并报告 GitLab 各类访问令牌过期日期的命令行工具,帮助团队避免因凭证失效导致的服务中断。

Stars: 3 | Forks: 0

[![GitHub release](https://img.shields.io/github/release/sgaunet/gitlab-token-expiration.svg)](https://github.com/sgaunet/gitlab-token-expiration/releases/latest) [![Go Report Card](https://goreportcard.com/badge/github.com/sgaunet/gitlab-token-expiration)](https://goreportcard.com/report/github.com/sgaunet/gitlab-token-expiration) ![GitHub Downloads](https://img.shields.io/github/downloads/sgaunet/gitlab-token-expiration/total) ![Test Coverage](https://static.pigsec.cn/wp-content/uploads/repos/cas/a7/a7f25895aaf1e9540640c9dbc987d4b3993aa6e1118944694c4965f19040157d.svg) [![GoDoc](https://godoc.org/github.com/sgaunet/gitlab-token-expiration?status.svg)](https://godoc.org/github.com/sgaunet/gitlab-token-expiration) [![Linter](https://static.pigsec.cn/wp-content/uploads/repos/cas/2d/2d40efe63fdc65fad1f42f12832545a04256c3ed12c266066cde0fedf33a6cb4.svg)](https://github.com/sgaunet/gitlab-token-expiration/actions/workflows/linter.yml) [![Release](https://static.pigsec.cn/wp-content/uploads/repos/cas/64/64f96943e530c079a780e46d8bc3fe41af837c35cadbc388133edba520d84ff9.svg)](https://github.com/sgaunet/gitlab-token-expiration/actions/workflows/release.yml) [![Snapshot](https://static.pigsec.cn/wp-content/uploads/repos/cas/bd/bd9988aac1a3fdf8cb0f8dea5e09b7e88c3b0af8af4b71d5b778f66320f2662b.svg)](https://github.com/sgaunet/gitlab-token-expiration/actions/workflows/snapshot.yml) [![License](https://img.shields.io/github/license/sgaunet/gitlab-token-expiration.svg)](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, 安全编程, 开发运维, 文档结构分析, 日志审计, 监控工具