Przejdź do treści
Biblioteka skilli
DevOps i chmura · Automatyzacja

glab-deploy-token

/glab-deploy-token

Sprawdza, tworzy i usuwa tokeny wdrożeniowe GitLab dla projektów i grup, wraz z datami wygaśnięcia i zakresami uprawnień.

Licencja
MIT
Ostatnia zmiana repozytorium
10.11.2026

Ocena i bezpieczeństwo

95/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść30 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
4
Przestarzałość

Brak sygnałów. Repozytorium zmienione 10.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Sprawdza, tworzy i usuwa tokeny wdrożeniowe GitLab dla projektów i grup, wraz z datami wygaśnięcia i zakresami uprawnień.

Oryginalny opis (EN)

Use when inspecting, creating, or deleting GitLab project or group deploy tokens, including metadata, active inventory, expiry, scopes, and one-time secret handling. Use glab-token for personal, project, or group access-token rotation.

Jak działa

  1. Inspect metadata
  2. Create with a protected secret handoff
  3. Delete after approval and verify without secrets
Sekcje z nagłówków SKILL.md, w oryginale · 59 linii, 772 słów
Podgląd SKILL.md
---
name: glab-deploy-token
description: Use when inspecting, creating, or deleting GitLab project or group deploy tokens, including metadata, active inventory, expiry, scopes, and one-time secret handling. Use glab-token for personal, project, or group access-token rotation.
---

# glab deploy-token

Manage deploy-token metadata and explicitly approved creation or deletion for a project or group. Deploy tokens authenticate with a username/token pair and are separate from personal, project, and group access tokens.

## Inspect metadata

`list` (alias `ls`) collects all API pages; `--active` filters out both revoked and expired tokens. `get <token-id>` selects one numeric ID from the inventory. Both commands clear the token value before JSON serialization; text output contains metadata only. Neither recovers a secret. `--output json` and `--jq` support structured metadata selection.

```bash
# Credential-free discovery
glab deploy-token --help
glab deploy-token create --help
glab deploy-token get --help
glab deploy-token delete --help
```

Always select a nonempty explicit `--repo <project-path-or-URL>` or `--group <group-id-or-path>` for reads, creation, and deletion; these flags are mutually exclusive. Without either flag, `GITLAB_GROUP` selects group scope even inside a project checkout. An explicit `--repo` suppresses that environment fallback; an explicit `--group` selects that group instead. A checkout alone does not guarantee project scope.

Confirm the exact host, project/group, and actor before approving any operation. A full project URL pins the repository host. For group scope, a resolvable checkout can still determine the API host; outside a checkout, default/environment host selection applies. Review any configured API-host routing too. `--group` selects a group, not a host; do not assume it changes the host or that a default host overrides a checkout.

After approval for authenticated metadata reads on the selected host and targets:

```bash
# Project inventory and one numeric ID from that inventory
glab deploy-token list --repo https://gitlab.example.com/group/project --active --output json
glab deploy-token get 42 --repo https://gitlab.example.com/group/project --output json

# Group reads: first verify the resolved host as described above
glab deploy-token list --group group/subgroup --active --output json
glab deploy-token get 42 --group group/subgroup --output json
```

## Create with a protected secret handoff

`create <name>` requires at least one `--scope` (`-S`), repeated or comma-separated. The server validates granted scopes. `--username` defaults to `gitlab+deploy-token-<id>`; `--expires-at` (`-E`) accepts YYYY-MM-DD at midnight UTC or an RFC 3339 timestamp. Omitting expiry creates a non-expiring token. Prefer the minimum approved scopes and a bounded expiry. The special name `gitlab-deploy-token` can expose the pair to CI/CD as `CI_DEPLOY_USER` and `CI_DEPLOY_PASSWORD`; approve that distribution scope too.

Creation has no confirmation prompt and prints the one-time secret in both text and JSON output. It is excluded from glab's MCP tools. Before creation, obtain explicit approval for the host, project/group, actor, name, scopes, expiry, username, and secret destination. Arrange a trusted operator-controlled secret-manager handoff that keeps both output streams out of agent tool results, terminal recording, shell tracing, logs, artifacts, and repository files. If that path is unavailable, stop after help inspection and let the operator perform the approved creation privately. Never run creation as a connectivity test, echo a secret, put it in command arguments, or collect it into a task report.

Conceptual syntax only: `glab deploy-token create <name> --scope <approved-scope> --expires-at <approved-expiry> --repo https://<approved-host>/<project-path>`. The resulting `<deploy-username>` and `<deploy-token-secret>` are placeholders, not values to substitute into task output. The exact upstream help includes examples that print secrets; those are reference output, not permission to execute them. A lost secret cannot be retrieved with `get`; approve a separate credential replacement and dependent-system update instead of silently creating another token. This command group does not expose revoke or rotate.

## Delete after approval and verify without secrets

`delete <token-id>` (alias `del`) permanently removes the selected deploy token and immediately breaks anything authenticating with it. This differs from the GitLab UI's revoke action: revoked tokens remain listed, while deleted tokens disappear. There is no CLI revoke or rotate operation.

First obtain approval for metadata reads and inspect the numeric ID using `list`/`get` on the explicit project or group. Confirm the host, actor, scope, token metadata, dependent systems, and any separately approved replacement before obtaining explicit deletion approval. Apply the same host-routing and `GITLAB_GROUP` precautions described above. Interactive deletion prompts; non-interactive deletion requires `--yes`. That flag skips the prompt, not the approval requirement.

```bash
# Only after approval for this exact project, token ID, and impact
glab deploy-token delete 42 --repo https://gitlab.example.com/group/project --yes

# Group alternative: verify the resolved API host first and approve this target separately
glab deploy-token delete 42 --group group/subgroup --yes
```

After an approved deletion, rerun the full metadata `list` with the same explicit target and confirm that ID is absent. Do not use `--active` for this check: expired or revoked tokens are also absent from active-only output. A failed read does not prove deletion. Never verify by authenticating with the secret, printing credentials, or automatically creating a replacement.

See [references/commands.md](references/commands.md) for complete captured parent, create, get, list, and delete help.
Pliki w paczce (2)
  • SKILL.md 6 KB
  • references/commands.md 8 KB

Wersje

W bazie nie ma innych skilli o nazwie glab-deploy-token.

Migawka bazy z 13.11.2026 · wersja paczki c1f4e38adffd (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 95glab-token
    Zarządza osobistymi, projektowymi i grupowymi tokenami dostępu GitLab: tworzy je, odbiera dostęp i rotuje token na wyraźną prośbę.
  • 95glab-service-account
    Zarządza kontami serwisowymi projektów i grup GitLab: przegląda je, szuka, zakłada po zatwierdzeniu, zmienia metadane i usuwa.
  • 100glab
    Tworzy, czyta, aktualizuje i zamyka issues oraz merge requesty GitLab przez glab CLI.
  • 95wicked-garden-platform-glab-cli
    Podpowiada polecenia glab do debugowania pipeline'ów, zarządzania MR i automatyzacji wydań w GitLab.
  • 100gitlab-cicd
    Tworzy i naprawia potoki GitLab CI/CD na własnych instancjach: pliki .gitlab-ci.yml, runnery, glab i wdrożenia.
  • 90gitlab-cli
    Podaje składnię poleceń glab dla issues, merge requestów, pipeline'ów, wydań i CI/CD.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.