{
  "slug": "glab-adds-a-token-self-rotate-option-7036e26722af",
  "title": "glab adds a token self-rotate option",
  "tools": [
    "glab"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-27T12:17:04.369Z",
  "announced_at": "2026-10-27T12:17:04.369Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When rotating the token currently used for authentication, run `glab token rotate --self` and capture the new token from stdout.",
    "examples": [
      "glab token rotate --self"
    ],
    "gotchas": [
      "Version: v1.125.0",
      "Non-interactive: Default text output provides the new token value; `--output json` returns the token with metadata.",
      "--self: Selects the access token currently used for authentication.",
      "--output: Choose `text` for the new token value or `json` for token metadata; default is `text`.",
      "Prerequisite: Requires GitLab 17.9 or later."
    ]
  },
  "why_it_matters": "Rotate a token using the token's self-rotation capability.",
  "sources": [
    "https://gitlab.com/gitlab-org/cli/-/releases/v1.125.0",
    "https://docs.gitlab.com/cli/token/rotate/"
  ],
  "rank": 0.95028,
  "review_state": "approved",
  "provenance": {
    "run_id": "daily-20261027-20",
    "verdict_id": "daily-20261027-20:daily-20261027-20-2bdb5ee3afb04fc4-6:rescue",
    "evidence_hash": "d80878fe7007b0e8be6ac39b6e216b951b573c495e9e5e1214e5799b17d8eb2e"
  }
}
