cloud-gov-instructions: Instructions file for GitHub Copilot

.github/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,973 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

Written for GitHub Copilot: a Copilot instructions file.

This is adhocteam/cloud-gov-instructions's own configuration. It tells GitHub Copilot how to work on cloud-gov-instructions itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cloud-gov-instructions configures →

Reuse

Borrowing it

Nothing to install: this file belongs to adhocteam/cloud-gov-instructions. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/adhocteam/cloud-gov-instructions/main/.github/instructions/cicd.instructions.md
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/github.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/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 cloud-gov-instructions cicd.instructions.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,973 This file is loaded in full into every session.
When invoked 2,973 The same file — it is already loaded in full.
Security scan B 2 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.02973 $0.02973
Opus 5.5 $0.01189 $0.01189
Sonnet 5.5 $0.00595 $0.00595
Haiku 4.5 $0.00297 $0.00297

Measured 1mo ago against content hash 268347e56c72, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 478 lines

How it starts

The opening of the file, as written. The whole thing — 478 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 · 478 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. 1mo ago Changed · -2 lines · -12 tokens per session 268347e56c72
  2. 1mo 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 1mo ago), licensed MIT. It adds 2,973 tokens to every session, about $0.0119 per session on Opus 5.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.