Use it when configuring, checking or troubleshooting Secrets in CI/CD.
Secrets · CI/CD
CI/CD Secrets supply sensitive credentials or tokens to bounded jobs and environments while minimizing exposure in repositories, logs, artifacts, caches and untrusted execution contexts.
1. Pipeline secrets: deploy credentials, tokens.
2. Prefer OIDC federation to cloud (no static keys).
3. Scope to environments/protected branches.
4. Masked in logs.
5. Rotate.
job → OIDC/secret store → short-lived credential
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
Healthy evidence: Secrets are scoped to least privilege, protected environments/branches, short-lived where possible, not persisted in artifacts/caches and auditable by usage context.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: Fork/untrusted code can access production secrets, long-lived tokens are shared broadly, or masking is treated as the primary security boundary.
Step 3 Common mistakes Narrow the fault
- Secrets exposed to pull requests from forks.
Step 4 Where it fails Narrow the fault
Where Secrets usually goes wrong: secret reference/version, least-privilege retrieval, redaction, rotation/expiry and revocation.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Secret masked ≠ secret protected everywhere; masking is a display control and does not prevent exfiltration, artifact capture, child-process exposure or misuse by untrusted code.
- Pipeline status is execution evidence, not independent proof of target service health or business outcome.
- The exact revision, evaluated pipeline definition, effective inputs and execution worker are part of the evidence context.
- Preserve artifact identity and target read-back so validation, promotion and runtime acceptance cannot be silently conflated.
- Secrets from secret store/OIDC — no long-lived credentials
- Masking in logs — protection
- Secret access limited to protected branches/environments — scope
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Secret masked ≠ secret protected everywhere; masking is a display control and does not prevent exfiltration, artifact capture, child-process exposure or misuse by untrusted code.
In depth
Secrets in CI/CD are credentials pipelines need — API tokens, SSH keys, cloud credentials, vault tokens. They must reach jobs that need them and nowhere else.
Controls:
| Control | Purpose |
|---|---|
| Masked/protected variables | Hidden in logs; only on protected branches |
| Environment-scoped secrets | Production secrets only in production jobs |
| No secrets for untrusted code | Fork/MR pipelines without secrets |
| OIDC/workload identity | Short-lived cloud credentials, nothing stored |
| External vault | Central rotation and audit |
| Secret scanning | Detect leaks in commits |
Masking is a safety net, not protection: a job that can read a secret can exfiltrate it. The real protection is controlling which code runs with which secrets.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in CI/CD > Secrets. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Secrets CI/CD proof-boundary map
Fast trigger/execution/artifact/promotion/target-proof boundaries for Secrets.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Trigger / evaluation | Exact commit and evaluated pipeline/inputs are known | Wrong ref, inherited rule or hidden variable changes the run |
| Execution / validation | Expected worker, jobs and tests execute with traceable context | Skips, retries, stale cache or worker drift hides the failure |
| Artifact / promotion | Immutable artifact is linked to release, approval and environment | Rebuild/mutable tag breaks provenance or approval scope |
| Target proof | Rollout plus independent readiness/acceptance confirms the intended release | Pipeline/API success is treated as runtime health |
Deep reference
Healthy vs suspicious evidence
Output interpretation
For Secrets, rely on structured fields and stable IDs (secret reference/version, least-privilege retrieval, redaction, rotation/expiry and revocation) rather than text formatted for display.