github-actions-debugger
Specialized skill for diagnosing, analyzing, and fixing failing GitHub Actions workflows by parsing run logs and pipeline definitions.
它会碰到什么
扫了多少1 个文本文件,5 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
GitHub Actions Pipeline Debugger
Overview
This skill is designed to act as an expert CI/CD diagnostician. It focuses specifically on reading raw logs from failed GitHub Actions, identifying the root cause of the crash or failure, and outputting the precise YAML or code changes required to fix the pipeline.
When to Use
- Use when a GitHub Actions workflow fails unexpectedly and the error log is long, obscure, or misleading.
- Use when debugging dependency mismatch errors, missing secrets, caching issues, or runner environment problems in CI.
- Use to optimize slow pipelines by identifying bottlenecks in workflow steps.
- Use to update and modernize deprecated actions or workflow syntax.
How It Works
- Log Ingestion & Redaction: Analyze the provided GitHub Actions workflow log (often exported as a raw text file or pasted directly). CRITICAL SAFETY REQUIREMENT: The user/agent must redact all sensitive credentials, secrets, tokens, private keys, and internal system paths from the logs before pasting or uploading them.
- Context Mapping: Cross-reference the failure point with the specific step and job in the
.github/workflows/*.ymldefinition. - Root Cause Analysis: Identify if the failure is due to:
- Missing or misconfigured secrets (
${{ secrets.API_KEY }}). - Node/Python/OS environment version mismatches.
- Flaky tests or timeout limits.
- Syntax errors in bash scripts run within the
run:block. - Invalid action versions or deprecated actions.
- Resolution Proposal: Provide a direct
diffof the.ymlfile or the underlying script that needs to be modified.
Best Practices
- Provide Full Context: Always review both the workflow definition (
.ymlfile) and the failure log simultaneously to ensure accurate diagnosis. - Check Action Versions: Many failures are caused by deprecated runtime versions (e.g., Node.js 16) in older third-party actions (e.g.,
actions/checkout@v2). Always recommend upgrading to the latest major versions (e.g.,v4). - Permissions Audit: Ensure the workflow has the correct
permissions:block if it's attempting to write to the repository, packages, or deploy environments. - Reproducibility: If a test fails in CI but passes locally, investigate environment differences such as timezone, headless browser state, memory limits, or parallel execution race conditions.
Examples
Example 1: Fixing a Deprecated Node.js Action Version Error
Failing Log:
Warning: The Go/Node.js/Python version used by this action is deprecated.
Error: Node.js 16 actions are deprecated. Please update to use Node.js 20.
Proposed Fix Diff:
- name: Checkout Code
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
Example 2: Diagnosing and Fixing a Missing Repository Secret
Failing Log:
Run npm run deploy
npm run deploy
shell: /usr/bin/bash -e {0}
Error: API Key is required for deployment. Process exited with code 1.
Proposed Fix Diff:
- name: Deploy App
run: npm run deploy
+ env:
+ DEPLOY_API_KEY: ${{ secrets.DEPLOY_API_KEY }}
Security & Safety Notes
- Credential Exposure & Raw Log Redaction: Under no circumstances should raw logs containing unmasked secrets, private URLs, deployment targets, or tokens be processed without prior redaction. Always ensure the user or agent redacts all sensitive info before ingestion.
- Dry-Run Mode: When recommending modifications to bash script steps inside workflows, ensure you suggest adding flags like
--dry-runor staging execution where possible to prevent unintended side effects in downstream environments during debugging.
Limitations
- The skill cannot securely read repository secrets. It can only infer missing or malformed secrets if the log complains about undefined environment variables or authentication failures.
- It cannot execute the GitHub action itself to test the fix; validation requires pushing the proposed fix to the repository and triggering a workflow run.
- Network-related transient failures (e.g., a package registry being down temporarily) might be incorrectly diagnosed as structural workflow issues if not carefully analyzed.
Common Pitfalls
- Ignoring Transient Failures: Mistaking temporary network dropouts or registry downtime (e.g., npm or pip install errors) for actual code or configuration bugs. Always check if a rerun succeeds before attempting heavy changes.
- Hardcoding Tokens: Fixing authentication errors by hardcoding secrets or API tokens directly into the YAML files instead of utilizing GitHub Secrets (
${{ secrets.SECRET_NAME }}). - Overlooking Caching Side Effects: Forgetting that outdated cache keys can keep corrupt dependencies loaded. If dependency installation is failing, try running a job with actions caching bypassed.
Related Skills
@devops-troubleshooter- General DevOps and infrastructure issue resolution.@cicd-automation-workflow-automate- For creating new CI/CD pipelines from scratch.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。
它属于哪个仓库
星标★ 46,490
本站分层T1
该仓技能数6676
原文件路径
plugins/agentic-awesome-skills-claude/skills/github-actions-debugger/SKILL.md同一个仓库里的其他技能
同名技能的其他版本
有 3 个不同仓库或目录里都有叫 github-actions-debugger 的技能。它们内容并不相同,别混用:
- sickn33/agentic-awesome-skills — Specialized skill for diagnosing, analyzing, and fixing failing GitHub Actions workflows b
- sickn33/agentic-awesome-skills — Specialized skill for diagnosing, analyzing, and fixing failing GitHub Actions workflows b