pale-knight/redteam-skill / skills/cicd
cicd
VerifiedCI/CD pipeline and software-supply-chain exploitation: Jenkins, GitHub Actions, GitLab CI/CD, Azure DevOps, Gitea/Forgejo, self-hosted runners/agents, poisoned pipeline execution, artifact/cache abuse, dependency confusion, third-party Action trust, GitOps/registry poisoning, workload identity/OIDC, and emerging agentic CI/CD. Use this skill when the operator has access to a CI/CD system, source repository, build/deploy configuration, runner/agent, artifact/package/registry path, or software delivery trust chain.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.3 KB |
| references/agentic-cicd.md | markdown | 2.8 KB |
| references/artifact-supply-chain.md | markdown | 3.1 KB |
| references/automation-audit.md | markdown | 3.2 KB |
| references/cicd-attacks.md | markdown | 2.3 KB |
| references/dependency-supply-chain.md | markdown | 2.5 KB |
| references/github-actions.md | markdown | 7.1 KB |
| references/gitlab-azuredevops.md | markdown | 3.5 KB |
| references/gitops-registry.md | markdown | 1.9 KB |
| references/jenkins.md | markdown | 2.7 KB |
| references/runner-agent.md | markdown | 4.2 KB |
| references/vulnerability-intelligence.md | markdown | 487 B |
| references/workload-identity.md | markdown | 3.5 KB |
references/gitops-registry.md
View on GitHub# GitOps / Registry / Gitea / Forgejo
---
## 1. Gitea / Forgejo
```bash
# API identity
curl -s http://GITEA:3000/api/v1/user -H "Authorization: token $TOKEN"
# 可见repo
curl -s 'http://GITEA:3000/api/v1/user/repos?limit=50' -H "Authorization: token $TOKEN"
```
重点不是单纯“能读repo”,而是:
```text
repo write/admin
Actions/CI workflow
Deploy keys
Webhooks
Packages/Container Registry
Branch protection
release/token
```
如果 Forgejo/Gitea Actions 或外部 Runner 存在,按 Runner/Workflow 信任链继续。
---
## 2. ArgoCD — GitOps视角
```bash
argocd app list
argocd app get APP
argocd repo list
argocd proj list
```
记录:
```text
Application source repo/path/targetRevision
auto-sync?
Project destination restrictions
repo credentials
cluster destinations
image updater / helm values
```
CI/CD链成功条件之一:从 Repo/ArgoCD 权限出发,使**受控、可回滚的测试变更**被目标 Application 接受/同步。
不要因为底层是 K8s 就中途切;如果已经取得独立 cluster-admin 并准备全面做 RBAC/Node 路径,再由操作者考虑 `/k8s`。
---
## 3. Container / Artifact Registry Poisoning
先证明:
```text
拥有 push/write
+ 下游使用可变tag/版本
+ deploy pipeline会自动消费
```
测试:
```bash
# 使用授权测试tag,不覆盖真实production tag
IMAGE=registry.target.local/app:cicd-proof
# build/push benign marker image
```
### 不能直接下结论的情况
```text
push成功但deployment按digest pin
有provenance/attestation gate
registry写权限只限dev repo
生产需要人工promotion/签名
```
必须观察下游 consumer。
---
## 4. GitOps + Package/Registry链
常见完整链:
```text
Repo write
→ build image/package
→ publish registry
→ GitOps manifest/tag update
→ ArgoCD/Flux sync
→ workload receives controlled build
```
本模块可以把这条交付链走到部署接受;不需要在“进入ArgoCD API”时机械拆模块。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |