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★ 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/packageswrites/etc/apt/auth.conf.d/packages.confwith mode0600. 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'skey.ascto/etc/apt/keyrings/packages.asc, check its fingerprints against the Artifact Registry UI, and reference that keyring in the suggested.sourcesentry'sSigned-By:field. Glab does not download or verify the apt signing keys or write the.sourcesfile; the operator must separately approve and perform those trust changes, including choosing the suite/component. The printedcurl --userexample 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,.sourcesfiles, andglab-apt-packagesservice/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_DIRand, 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 -Ecan preserve a user's config path, andcustom_headersinconfig.ymlcan 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 protectedEnvironmentFile=. 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/packagesneeds an existing/etc/yum.repos.ddirectory. It writespackages.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--durationwith a warning, and does not refresh automatically. Non-root dnf cannot read the token and skips the repository; RHEL 8microdnfdoes not read that token file.- Dnf refuses an unmanaged
.repofile 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_verifyis refused; use separately approved CA configuration. The generated repo enables repository-metadata signature verification (repo_gpgcheck=1) but sets package signature verification togpgcheck=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
Установить glab-artifact-registry в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub