gcp-cicd-auth

gcp-cicd-auth is a skill for Claude Code from atretyak1985/swarmery. It costs 57 tokens per session (3,961 once invoked), scanned A, original, Apache-2.0.

A guide for configuring and reviewing how GitLab CI/CD pipelines authenticate to Google Cloud. It covers short-lived identity federation, image uploads to Artifact Registry, Secret Manager access, and restricted service accounts.

In plain words
What is it for?
Use it to set up GitLab-to-GCP authentication, grant pipeline access to secrets or container images, and audit pipeline credentials and service-account permissions.
Why use it?
It avoids relying on long-lived cloud keys in automated pipelines and helps limit access to only the required Google Cloud resources. It also helps identify unsafe login and credential patterns.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the infra-pack plugin — 11 skills, 1 command, 3 agents shipped together

Good fit Use it to set up GitLab-to-GCP authentication, grant pipeline access to secrets or container images, and audit pipeline credentials and service-account permissions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atretyak1985/swarmery/gcp-cicd-auth
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add atretyak1985/swarmery --skill gcp-cicd-auth
Clone the repo
git clone --depth 1 https://github.com/atretyak1985/swarmery

Made for: Claude Code.

Or install infra-pack, the plugin that ships this one along with the rest of its 11 skills, 1 command, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gcp-cicd-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/atretyak1985/swarmery/gcp-cicd-auth/github.svg)](https://agentmods.dev/skills/atretyak1985/swarmery/gcp-cicd-auth)
Your own site
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/gcp-cicd-auth"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/gcp-cicd-auth/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gcp-cicd-auth

Your own site · 80×15
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/gcp-cicd-auth"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/gcp-cicd-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,961 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.03961
Opus 5 $0.00028 $0.01980
Sonnet 5 $0.00011 $0.00792
Haiku 4.5 $0.00006 $0.00396

Measured 9d ago against content hash 10b7a5564d95, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

gcp-cicd-auth scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/infra-pack/skills/gcp-cicd-auth/SKILL.md · 297 lines

How it starts

The opening of the file, as written. The whole thing — 297 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purpose

You are a GCP authentication engineer for the project's CI/CD pipelines. You configure and review GCP auth stanzas in GitLab CI/CD, covering Workload Identity Federation (preferred keyless auth), Artifact Registry image push, Secret Manager access, and least-privilege service account setup. You produce reviewed pipeline YAML stanzas, verification commands, and a security checklist.

Done when: the auth method is identified, all anti-patterns are flagged with file:line citations, a pipeline stanza is provided for copy-paste, and every checklist item has a pass/fail determination.

When to use

  • Setting up a new GitLab CI/CD pipeline that pushes images to GCP Artifact Registry
  • Configuring Workload Identity Federation for keyless GitLab-to-GCP authentication
  • Granting a CI service account access to GCP Secret Manager
  • Reviewing an existing pipeline for GCP credential anti-patterns (hardcoded keys, long-lived tokens, gcloud auth login)

When NOT to use

  • Keycloak service account configuration or OIDC integration -- use keycloak
  • AWS or Azure CI/CD authentication
  • Kubernetes RBAC roles for pod-level access -- use kubernetes-deployment
  • Runtime pod identity or workload identity for application code (this skill covers CI/CD identity only)
  • GCP console UI walkthroughs (this skill produces pipeline YAML and gcloud CLI commands)
  • Pipeline YAML structure, stage ordering, or job dependencies -- use gitlab-ci-cd

Required environment

  • Runtime: .claude/skills/gcp-cicd-auth/SKILL.md
  • Tools: Read (inspect pipeline YAML), Bash with grep/ripgrep (search for auth patterns), Edit (annotate/fix pipeline YAML -- never on files containing credential material)
  • External: gcloud CLI (for verification commands; this skill produces commands, does not execute them)

GCP project layout (canonical reference)

Canonical doc: the Terraform repo's README §GCP projects (project.json → repos). Trust the README over stale variable defaults in legacy Terraform dirs -- retired project IDs often linger there.

Read the full file on GitHub · 297 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 297 lines · 57 tokens per session scan A 10b7a5564d95

Subscribe to this mod's changes

gcp-cicd-auth is a skill published in the GitHub repository atretyak1985/swarmery (6 stars, last pushed 2d ago), licensed Apache-2.0. It adds 57 tokens to every session and 3,961 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

devops-cloud

DevOps, cloud infrastructure, and platform engineering. Use when working with AWS, GCP, Azure, Kubernetes, Terraform, CI/CD pipelines, or infrastructure as code.

travisjneuman/.claude · 38 tokens

hr-devops

Help HR managers, recruiters, and talent acquisition teams understand DevOps, Platform Engineering, Site Reliability Engineering (SRE), cloud infrastructure, CI/CD, and modern software delivery workflows. Use when asked to explain DevOps, screen DevOps candidates, understand CI/CD, compare DevOps and SRE, evaluate…

tuanductran/hr-skills · 87 tokens

tailscale

This skill should be used when managing Tailscale mesh VPN networks. Use when the user asks to "check tailscale status", "list tailscale devices", "ping a device", "send file via tailscale", "tailscale funnel", "tailscale serve", "create auth key", "check who's online", "tailscale exit node", "Magic DNS", or mentions…

jmagar/claude-homelab · 93 tokens

railway

Railway allows you to deploy code simply by pushing to GitHub or using the CLI. The Railway Public API (GraphQL) allows programmatic management of projects, environments, and deployments.

ashish7802/awesome-api-skills · 0 tokens

define-slo-sli-sla

Establish Service Level Objectives (SLO), Service Level Indicators (SLI), and Service Level Agreements (SLA) with error budget tracking, burn rate alerts, and automated reporting using Prometheus and tools like Sloth or Pyrra. Use when defining reliability targets for customer-facing services, balancing feature…

pjt222/agent-almanac · 93 tokens

gws-script

Apps Script: Deploy and manage Google Apps Script projects with gws script +push.

fakoli/fakoli-plugins · 21 tokens