cloud-gov-instructions cicd.instructions.md

cloud-gov-instructions cicd.instructions.md is an instructions file for GitHub Copilot from adhocteam/cloud-gov-instructions. It costs 2,985 tokens per session, scanned B, original, MIT.

Deployment guidance for connecting cloud.gov applications to continuous integration and continuous deployment pipelines. CI/CD means automatically testing code and deploying it through a service such as a build server.

In plain words
What is it for?
Use it to prepare cloud.gov deployments from Git-based pipelines, install the CF CLI, create deployer or read-only service accounts, obtain service keys, and store credentials securely.
Why use it?
Automated deployments need the right command-line tools, restricted credentials, and secure secret storage. These instructions describe the prerequisites and service-account setup needed for that workflow.

Instructions file for GitHub Copilot

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.

agentmods
npx agentmods add instructions/adhocteam/cloud-gov-instructions/cicd
Clone the repo
git clone --depth 1 https://github.com/adhocteam/cloud-gov-instructions

Made for: GitHub Copilot.

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 cloud-gov-instructions cicd.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/adhocteam/cloud-gov-instructions/cicd.svg)](https://agentmods.dev/instructions/adhocteam/cloud-gov-instructions/cicd)
Your own site
<a href="https://agentmods.dev/instructions/adhocteam/cloud-gov-instructions/cicd"><img src="https://agentmods.dev/badge/instructions/adhocteam/cloud-gov-instructions/cicd.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,985 This file is loaded in full into every session.
When invoked 2,985 The same file — it is already loaded in full.
Security scan B 2 findings. Scan, not verified.
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 $0.02985 $0.02985
Opus 5 $0.01492 $0.01492
Sonnet 5 $0.00597 $0.00597
Haiku 4.5 $0.00298 $0.00298

Measured 4d ago against content hash ae7f6cc4527a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

cloud-gov-instructions cicd.instructions.md scanned grade B with 2 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 4d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo tar xzf /tmp/cf.tar.gz -C /usr/local/bin

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sf https://my-app-dev.app.cloud.gov/health || exit 1
.github/instructions/cicd.instructions.md · 480 lines

How it starts

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

Cloud.gov CI/CD Instructions

This document provides guidance for setting up continuous integration and continuous deployment (CI/CD) pipelines for cloud.gov applications.

Overview

Cloud.gov integrates with any CI/CD service. The core requirements are:

  1. A service account with deployment credentials
  2. The CF CLI installed in your CI/CD environment
  3. Secure storage for credentials

Prerequisites

Before setting up CI/CD:

  1. Production-ready application - Follow the production-ready guide
  2. Version control - Code in Git with a manifest.yml
  3. Continuous integration - Tests passing before deployment

Service Account Setup

Create a Service Account

Service accounts provide restricted credentials for automated deployments.

# Create a deployer service account (can push apps)
cf create-service cloud-gov-service-account space-deployer my-deployer

# Or create an auditor account (read-only)
cf create-service cloud-gov-service-account space-auditor my-auditor

Obtain Credentials

# Create a service key
cf create-service-key my-deployer deploy-key

# View the credentials
cf service-key my-deployer deploy-key

Output:

{
  "username": "deadbeef-aabb-1234-feha-0987654321000",
  "password": "oYasdfliaweinasfdliecV"
}

Important Notes

  • Password expiration: Service account passwords expire every 90 days
  • Rotate credentials: Delete and recreate service keys to rotate
  • Least privilege: Service accounts are limited to the space where created
  • Not for humans: Never use service accounts for interactive login

Rotate Expired Credentials

cf delete-service-key my-deployer deploy-key
cf create-service-key my-deployer deploy-key
cf service-key my-deployer deploy-key

Pre-Deployment Validation Chain

Run a deterministic validation chain before every deployment. Each step should exit non-zero on failure, blocking subsequent stages. This catches issues early and reduces the risk of deploying broken or insecure code.

Read the full file on GitHub · 480 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. 4d ago First seen · 480 lines · 2,985 tokens per session scan B ae7f6cc4527a

Subscribe to this mod's changes

cloud-gov-instructions cicd.instructions.md is an instructions file published in the GitHub repository adhocteam/cloud-gov-instructions (10 stars, last pushed 5mo ago), licensed MIT. It adds 2,985 tokens to every session, about $0.0149 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.