スキル一覧に戻る
kaihendry

github-workflow-debugger

by kaihendry

Kai Hendry's blog

13🍴 2📅 2026年1月18日
GitHubで見るManusで実行

SKILL.md


name: Github Workflow Debugger allowed-tools: "Read,Bash(gh:*)" description: How to fetch logs from Github's CI/CD with the gh cli

Github worklows found in .github/workflows/ define critical CI/CD steps to build / test / deploy the project and they should not fail.

Engineers typically share URLs like: https://github.com/$REPO/actions/runs/$RUN_ID/job/$JOB_ID, to view this log:

gh run view -R $REPO --job $JOB_ID --log

Since the repository might be private, the best way to view Github managed workflows is via the Github cli, which should be pre-installed and available as gh.

** Step 1: List latest runs

A run should start from the moment a new commit is pushed, but in practice it can take several seconds and again you need to wait until a workflow is run to get a complete picture (often minutes!).

GH_PAGER=cat gh run ls

Doc: gh run ls --help

To know when the workflow is done:

gh run watch $RUN_ID --exit-status

** Step 2: Verify latest commit corresponds to the latest run

gh run view $RUN_ID --json headSha -q '.headSha[:7]'

Should be the same as

git describe --always

Else warn the user hasn't pushed the current change?

** Step 3: Debug errors

To zoom into failed runs:

gh run view $RUN_ID --log-failed

Doc: gh run view --help

** Step 4: Plan and fix the issue

AskUserQuestionTool for any clarifications and whether to git push to kick off another workflow iteration.

Workflow syntax errors

Use actionlint to debug broken workflows.

スコア

総合スコア

55/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

レビュー

💬

レビュー機能は近日公開予定です