Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

glab-artifact-registry

БесплатноБез исполняемых скриптовНе проверен

Exchange GitLab credentials for short-lived Artifact Registry tokens, verify token identity, and configure package-manager authentication with glab. Use when…

vince-winkintelот vince-winkintel★ 51 звезда на GitHub

Об этом скилле

glab artifact-registry

Exchange the active GitLab credential for a short-lived Artifact Registry access token. The command group also accepts the glab ar alias. This command group is experimental; verify live help and the target GitLab instance before using it in durable automation.

Linux apt and dnf login

Requires glab v1.134.0 or later. This is a source-backed summary, not a new binary help capture. Historical help below or in references retains its original version and normalization.

login --apt and login --dnf each select one package manager and require Linux and root access. Approve the host, credential exchange, exact files and package trust changes separately before an operator runs either command. Root has a separate credential context; do not copy tokens into argv, logs, repositories, or reports, and do not change credential storage automatically.

  • --apt --registry https://ar.example.com/acme/debian/packages writes /etc/apt/auth.conf.d/packages.conf with mode 0600. It receives one token with the selected --duration (default 15 minutes, maximum 12 hours). On a terminal it prints manual instructions to download the repository's key.asc to /etc/apt/keyrings/packages.asc, check its fingerprints against the Artifact Registry UI, and reference that keyring in the suggested .sources entry's Signed-By: field. Glab does not download or verify the apt signing keys or write the .sources file; the operator must separately approve and perform those trust changes, including choosing the suite/component. The printed curl --user example expands a token into argv; do not copy it as a secret-safe recipe. Use an independently reviewed credential handoff that keeps tokens out of argv and logs. Names are repository-only: another host/namespace with the same repository name replaces the auth file and can collide with operator-installed keyrings, .sources files, and glab-apt-packages service/timer names. Check all of these before login or setup.
  • Apt also prints suggested systemd service/timer text on a terminal; it does not install or enable either. The timer runs every third of the token duration and after resume, with a 30-second failure retry requiring systemd 244+. It pins GLAB_CONFIG_DIR and, when a host was resolved, GITLAB_HOST; a system service starts without the interactive HOME/environment. The root timer trusts the pinned config directory and glab executable, including their symlink targets and parent directories. Glab warns about paths changeable by non-root users: sudo -E can preserve a user's config path, and custom_headers in config.yml can execute commands as root during refresh. Resolve these warnings and independently verify root-only write access before approving unit installation; warning checks are not proof of path safety. An interactive environment token or keyring token is not automatically available to it. The printed instructions distinguish config-file credentials from a separately protected EnvironmentFile=. Do not adopt plaintext credential storage or install a timer/cron job without separate approval of storage, refresh scope and persistence. A one-shot CI login needs no scheduler.
  • --dnf --registry https://ar.example.com/acme/rpm/packages needs an existing /etc/yum.repos.d directory. It writes packages.repo, a root-only token under /etc/dnf/vars/artoken_{host}_{handle} (host punctuation is normalized), and public keys under /etc/pki/rpm-gpg/RPM-GPG-KEY-glab-packages. It uses root's stored glab credential, ignoring environment-token overrides like the Docker helper. It always requests a 12-hour token, ignores --duration with a warning, and does not refresh automatically. Non-root dnf cannot read the token and skips the repository; RHEL 8 microdnf does not read that token file.
  • Dnf refuses an unmanaged .repo file or one for another registry URL. It fetches the repository-selected fingerprints and key material over verified TLS, refuses redirects, requires exactly the selected keys, and retries a fingerprint mismatch once for rotation. A mismatch writes nothing; later filesystem failures can leave partial key/token writes. skip_tls_verify is refused; use separately approved CA configuration. The generated repo enables repository-metadata signature verification (repo_gpgcheck=1) but sets package signature verification to gpgcheck=0; this is not a guarantee that individual RPM signatures are verified. Review that trust model before approving use; do not weaken existing checks to make a download work.

The v1.134.0 source adds an internal ID-token exchange helper with CI_JOB_TOKEN fallback and a build_attribution result field derived from a non-null gitlab.job claim. The helper is not called by the shipped Artifact Registry commands in this tag. Do not assume ARTIFACT_CENTRAL_ID_TOKEN, ARTIFACT_CENTRAL_REQUIRE_BUILD_ATTRIBUTION, or --require-build-attribution changes these commands, or that status now prin

Полный SKILL.md на GitHub

Установить glab-artifact-registry в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/commands.md

FAQ

Что делает скилл glab-artifact-registry?

Exchange GitLab credentials for short-lived Artifact Registry tokens, verify token identity, and configure package-manager authentication with glab. Use when checking GitLab Artifact Registry access, obtaining an ephemeral registry token, or configuring Docker, Maven, Gradle, npm, Yarn, sbt, apt, or dnf for a GitLab Artifact Registry. Triggers on artifact registry, glab artifact-registry, glab ar, get-token, token exchange, registry access status, artifact-registry login, Docker credential helper, Maven registry, Gradle registry, npm auth, sbt credentials.

Как установить скилл glab-artifact-registry?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл glab-artifact-registry запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить glab-artifact-registry с