Agent skill

CI CD Security

by Hack23 in Hack23/cia

CI/CD pipeline security, supply chain security, SLSA compliance, artifact signing, dependency scanning

Apache-2.0Auto-check passedSecurity

Install CI CD Security

skills CLI
$ npx skills add Hack23/cia --skill ci-cd-security -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Hack23/cia ci-cd-security --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Hack23/cia.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/ci-cd-security .claude/skills/ci-cd-security && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ci-cd-security
GitHub stars
239
Token cost
~1.3k tokens
SKILL.md length
330 words
Files
1
Skills in repo
78
Repo updated
First seen
Licence
Apache-2.0

At a glance

CI/CD pipeline security, supply chain security, SLSA compliance, artifact signing, dependency scanning

  • Works in 5 steps: Pin all action versions to commit SHAs —… → Use permissions at job level — minimize… → Never echo secrets — use ::add-mask::… → …
  • Tasks that involve Supply chain security
  • SKILL.md covers Purpose, When to Use, GitHub Actions Security… and Supply Chain Security, plus 5 more sections
  • Calls mvn; needs SONAR_TOKEN

What it does

CI CD Security is an agent skill from Hack23/cia. CI/CD pipeline security, supply chain security, SLSA compliance, artifact signing, dependency scanning

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Security, covering Supply chain security and CI/CD. It works with GitHub Actions. The repository describes itself as: Citizen Intelligence Agency. Open-source intelligence platform analyzing Swedish political activities using AI and data visualization. Tracks politicians, government… The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Supply chain security
  • Tasks that involve CI/CD

Example prompts

  • “/ci-cd-security”

Requirements

  • A credential in SONAR_TOKEN

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Pin all action versions to commit SHAs — tags can be moved
  2. Use permissions at job level — minimize token scope
  3. Never echo secrets — use ::add-mask:: for dynamic values
  4. Audit third-party actions — review source before adopting
  5. Use CODEOWNERS for workflow files — require review for changes

What it can do on your machine

Read from SKILL.md and the folder at commit 6a9797b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • mvn

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • SONAR_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

CI CD Security loads about 1.3k tokens when it runs. Until then it costs about 29 tokens; SKILL.md has 330 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~29
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Hack23/cia at commit 6a9797b, republished under its Apache-2.0 licence (© Hack23). 330 words, ~1,327 tokens.

Download SKILL.mdSave it as .claude/skills/ci-cd-security/SKILL.md (or your agent's skills folder).
name
ci-cd-security
description
CI/CD pipeline security, supply chain security, SLSA compliance, artifact signing, dependency scanning
license
Apache-2.0

CI/CD Security Skill

Purpose

Secure the CIA platform's CI/CD pipelines against supply chain attacks, ensure artifact integrity, and maintain compliance with SLSA (Supply-chain Levels for Software Artifacts) requirements. Covers GitHub Actions hardening, dependency scanning, and build provenance.

When to Use

  • ✅ Creating or modifying GitHub Actions workflows
  • ✅ Adding new dependencies to the project
  • ✅ Configuring build artifact signing or attestation
  • ✅ Reviewing pipeline security posture
  • ✅ Implementing dependency update policies

Do NOT use for:

  • ❌ Application-level security (use secure-code-review skill)
  • ❌ Infrastructure security (use threat-modeling skill)

GitHub Actions Security Hardening

Workflow Permissions
yaml
# Always use minimum required permissions
permissions:
  contents: read
  actions: read
  security-events: write  # Only if needed for CodeQL

# Pin actions to full SHA, not tags
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
      - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
        with:
          distribution: 'temurin'
          java-version: '25'
Key Security Rules
  1. Pin all action versions to commit SHAs — tags can be moved
  2. Use permissions at job level — minimize token scope
  3. Never echo secrets — use ::add-mask:: for dynamic values
  4. Audit third-party actions — review source before adopting
  5. Use CODEOWNERS for workflow files — require review for changes
Secret Management
yaml
# Good: Use GitHub Secrets
env:
  SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

# Bad: Never hardcode or log secrets
# run: echo ${{ secrets.TOKEN }}  # NEVER DO THIS

Supply Chain Security

SLSA Compliance Levels
LevelRequirementCIA Status
SLSA 1Build process documented✅ GitHub Actions
SLSA 2Hosted build, signed provenance✅ GitHub-hosted runners
SLSA 3Hardened build, non-falsifiable provenance🔄 In progress
Dependency Scanning Stack
yaml
# Multi-layer dependency scanning
- name: OWASP Dependency Check
  run: mvn dependency-check:check -DfailBuildOnCVSS=7

- name: GitHub Dependency Review
  uses: actions/dependency-review-action@v4
  with:
    fail-on-severity: high

- name: Dependabot Auto-merge (patch only)
  # Configured in .github/dependabot.yml
SBOM Generation
yaml
- name: Generate SBOM
  run: |
    mvn org.cyclonedx:cyclonedx-maven-plugin:makeBom
    # Output: target/bom.json (CycloneDX format)

- name: Attest SBOM
  uses: actions/attest-sbom@v1
  with:
    subject-path: 'target/*.jar'
    sbom-path: 'target/bom.json'

Build Integrity

Reproducible Builds
xml
<!-- Maven settings for reproducible builds -->
<properties>
    <project.build.outputTimestamp>2024-01-01T00:00:00Z</project.build.outputTimestamp>
</properties>

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <configuration>
        <archive>
            <manifest>
                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
            </manifest>
        </archive>
    </configuration>
</plugin>
Artifact Attestation
yaml
- name: Generate artifact attestation
  uses: actions/attest-build-provenance@v1
  with:
    subject-path: 'target/citizen-intelligence-agency-*.war'

Dependency Management Rules

Adding New Dependencies
  1. Check license compatibility — must be Apache 2.0 compatible
  2. Run security scan — mvn dependency-check:check
  3. Check GitHub Advisory Database — use gh-advisory-database tool
  4. Verify publisher — check Maven Central publisher identity
  5. Pin version — use exact versions, not ranges
  6. Document justification — explain why the dependency is needed in PR
Dependency Update Policy
Update TypeAuto-mergeReview Required
Patch (x.x.PATCH)✅ If tests passNo
Minor (x.MINOR.x)❌Yes
Major (MAJOR.x.x)❌Yes + security review

Runner Security

yaml
jobs:
  build:
    runs-on: ubuntu-latest  # Use GitHub-hosted runners
    # Never use self-hosted runners for public repos without hardening
    steps:
      - name: Harden Runner
        uses: step-security/harden-runner@v2
        with:
          egress-policy: audit  # Monitor outbound connections

Monitoring and Alerts

  • Enable Dependabot alerts for all ecosystems
  • Enable secret scanning with push protection
  • Enable code scanning with CodeQL
  • Review Security tab weekly for new alerts
  • Monitor OSSF Scorecard results for security posture

ISMS Alignment

ControlRequirement
ISO 27001 A.8.25Secure development lifecycle
ISO 27001 A.8.31Separation of dev/test/prod
NIST CSF PR.IP-1Configuration management
CIS Control 16Application software security
SLSA L2Signed provenance, hosted build

© Hack23, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/ci-cd-security of Hack23/cia.

Open the folder on GitHubat commit 6a9797b

Compare with similar skills

CI CD Security next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

CI CD Security compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
CI CD Security this skillHack23/cia239—~1.3kAutomated safety check: PassApache-2.0
GitHub Actions Supply Chain Pinningasyncapi/generator1.1k—~1.9kAutomated safety check: PassApache-2.0
Vibe CI Supply Chainmistralai/mistral-vibe5.1k—~1kAutomated safety check: PassApache-2.0
CI/CD Pipeline Principlesirahardianto/awesome-agv157—~2.7kAutomated safety check: NotesMIT
Atmos CIcloudposse/atmos1.4k—~3.8kAutomated safety check: PassApache-2.0
Detecting Supply Chain Attacks In CI CDmukul975/Anthropic-Cybersecurity-Skills34k—~655Automated safety check: PassApache-2.0

Similar skills

  • A skill your agent uses when editing, adding, or reviewing any file under .github/workflows/, or when a CI step installs a CLI tool (npm i -g, npx, pipx, uses: /setup-).

    1.1k GitHub stars~1.9k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Vibe CI Supply Chain

    mistralai/mistral-vibe

    Official

    Git workflow, CI/GitHub Actions, and supply-chain pinning rules for Mistral Vibe.

    5.1k GitHub stars~1k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • CI/CD Pipeline Principles

    irahardianto/awesome-agv

    Rules for designing CI/CD pipelines in layers: universal lint, test and scan stages, container builds with SBOM attestation, and GitOps for orchestrated deployments.

    157 GitHub stars~2.7k tokensUpdated 2 days ago
    DevOps & CloudAuto-check: notes
  • Atmos CI

    cloudposse/atmos

    Atmos CI: Native CI with GitHub Actions containers, native outputs, SBOM workflow-artifact publication, collapsible log groups, affected/all matrix workflows, OIDC profiles, toolchain-aware jobs…

    1.4k GitHub stars~3.8k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Detecting Supply Chain Attacks In CI CD

    mukul975/Anthropic-Cybersecurity-Skills

    Scans GitHub Actions workflows and CI/CD pipeline configurations for supply chain attack vectors including unpinned actions, script injection via expressions, dependency confusion, and secrets…

    34k GitHub stars~655 tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Supply Chain Guard

    davila7/claude-code-templates

    Detect and remediate software supply chain attacks in npm, PyPI, crates.io, GitHub Actions, and CI/CD pipelines by scanning for known compromised packages, malicious versions, filesystem IOCs, C2…

    32k GitHub stars~1.7k tokensUpdated today
    DevOps & CloudAuto-check: notes

More from Hack23/cia

All 78 skills in this repo
  • WCAG 2.1 AA compliance, ARIA attributes, keyboard navigation, screen reader optimization for accessible political data platforms

    239 GitHub stars~2.7k tokensUpdated yesterday
    Auto-check passed
  • Advanced chart types, D3.js/Vaadin Charts patterns, political data visualization, time series analysis

    239 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • AI Governance

    Hack23/cia

    AI governance, EU AI Act compliance, OWASP LLM security, responsible AI practices for GitHub Copilot agents

    239 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • API Integration

    Hack23/cia

    External API integration patterns, retry logic, circuit breakers, caching, rate limiting for government data APIs

    239 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • AWS CloudWatch metrics, alarms, dashboards, log insights, and application monitoring for the CIA platform

    239 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • AWS security best practices, VPC security, IAM, KMS, CloudTrail, GuardDuty for CIA platform deployment

    239 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about CI CD Security

What does CI CD Security do?

CI/CD pipeline security, supply chain security, SLSA compliance, artifact signing, dependency scanning. CI CD Security is an agent skill from Hack23/cia.

When should I use CI CD Security?

CI CD Security fits situations like: tasks that involve Supply chain security; tasks that involve CI/CD.

How do I install CI CD Security in Claude Code?

Run `npx skills add Hack23/cia --skill ci-cd-security -a claude-code`. Or copy the skill folder (.github/skills/ci-cd-security in Hack23/cia) into .claude/skills/ci-cd-security in your project. Claude Code loads it when a task matches its description.

How do I install CI CD Security in Codex?

Run `npx skills add Hack23/cia --skill ci-cd-security -a codex`. Or copy the skill folder (.github/skills/ci-cd-security in Hack23/cia) into .agents/skills/ci-cd-security in your project. Codex loads it when a task matches its description.

Can I use CI CD Security in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Hack23/cia --skill ci-cd-security -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ci-cd-security, .gemini/skills/ci-cd-security, .github/skills/ci-cd-security and .opencode/skills/ci-cd-security in your project.

What does CI CD Security need to run?

Going by SKILL.md and its folder, CI CD Security needs the command-line tools its instructions call (mvn) and credentials named SONAR_TOKEN. Our summary lists: A credential in SONAR_TOKEN.

Does CI CD Security access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is CI CD Security safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does CI CD Security use?

CI CD Security is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does CI CD Security use?

About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to CI CD Security?

Skills that share tags, products or a category with CI CD Security: GitHub Actions Supply Chain Pinning (asyncapi/generator, 1.1k stars), Vibe CI Supply Chain (mistralai/mistral-vibe, 5.1k stars), CI/CD Pipeline Principles (irahardianto/awesome-agv, 157 stars) and Atmos CI (cloudposse/atmos, 1.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains CI CD Security?

Hack23 (a GitHub organization) maintains it in Hack23/cia, which has 239 GitHub stars. The repository holds 78 skills in this directory. The repository was last updated on October 6, 2026.

Source: Hack23/cia on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.