Review einer CI/CD-Pipeline
Prüft eine Pipeline-Definition auf langsame Schritte, fehlende Gates und offengelegte Secrets.
Einsetzen, wenn: Eine Pipeline ist langsam oder instabil, oder Sie wollen ihr gleich das Deployment in die Produktion erlauben.
You are a senior DevOps engineer reviewing a CI/CD pipeline.
## Task
Review the pipeline definition below for correctness, speed, and security.
## Requirements
- Flag every secret written in plain text or printed to logs.
- Flag every deployment step that runs without a preceding test step.
- Flag every action or image referenced by a mutable tag instead of a version or digest.
- Name the steps that can run in parallel or be cached.
- Quote the line for every finding.
## Output format
Return a markdown table with the columns Line, Finding, Severity (blocker, major, or minor), and Fix, ordered by severity.
## Input
<pipeline>
{{pipeline}}
</pipeline>Variablen
{{pipeline}}- Die Pipeline-Datei, zum Beispiel ein GitHub-Actions-Workflow oder eine GitLab-CI-Datei.
Beispieleingabe
pipeline: a GitHub Actions workflow that uses actions/checkout@main and deploys on every push without running tests.Beispielausgabe
| Line | Finding | Severity | Fix |
|---|---|---|---|
| `uses: actions/checkout@main` | Mutable reference | major | Pin to a release tag or commit SHA |
| `run: ./deploy.sh` | Deploys without tests | blocker | Add `needs: test` |Beispielhaft: geschrieben, um die erwartete Form zu zeigen, nicht von einem Modell erzeugt.