npx skills add ...
npx skills add github/gh-aw-firewall --skill debugging-workflows
Debug GitHub Actions workflows by downloading logs, analyzing summaries, and understanding how agentic workflows and the AWF firewall work together.
npx skills add github/gh-aw-firewall --skill debugging-workflows
Use this skill when you need to debug GitHub Actions workflows, download workflow logs or summaries, or understand how agentic workflows and the AWF firewall work together.
Use the download-workflow-logs.ts script to download logs from a workflow run:
Use the download-workflow-summary.ts script to get a summary of workflow runs:
The gh CLI is essential for debugging workflows. Here are the most useful commands:
Agentic workflows are GitHub Actions workflows that use AI agents (like GitHub Copilot or Claude) to perform tasks. They are defined using markdown + YAML frontmatter format in .github/workflows/*.md files and compiled to GitHub Actions YAML (.lock.yml files).
Workflow File Format: .github/workflows/<name>.md
.github/workflows/<name>.lock.ymlTriggers (on: field):
issues, pull_request, push, schedule/mention in issues/commentsworkflow_dispatch for manual triggersSafe Outputs: Controlled way for AI to create GitHub entities
create-issue: - Create GitHub issuescreate-pull-request: - Create PRs with git patchesadd-comment: - Add comments to issues/PRsadd-labels: - Add labels to issues/PRscreate-discussion: - Create GitHub discussionsTools Configuration (tools: field):
github: - GitHub API toolsagentic-workflows: - Workflow introspection toolsedit: - File editing toolsweb-fetch: / web-search: - Web access toolsbash: - Shell command toolsmissing_tools in audit outputsafe_outputs.jsonl artifactpermissions: block in frontmatternetwork: configuration for allowed domainsAWF (Agent Workflow Firewall) is a tool that provides L7 (HTTP/HTTPS) egress control for GitHub Copilot CLI and other agents. It restricts network access to a whitelist of approved domains using Squid proxy and Docker containers.
awf-squid - Squid proxy container (IP: 172.30.0.10)
awf-agent - Agent execution container (IP: 172.30.0.20)
/host mountTCP_TUNNEL:HIER_DIRECT = ALLOWED (HTTPS)TCP_MISS:HIER_DIRECT = ALLOWED (HTTP)TCP_DENIED:HIER_NONE = BLOCKEDWith --keep-containers:
/tmp/awf-<timestamp>/squid-logs/access.log/tmp/awf-<timestamp>/agent-logs/Normal execution (after cleanup):
/tmp/squid-logs-<timestamp>/access.log/tmp/awf-agent-logs-<timestamp>/Identify the failing workflow run
Get run details
Download logs
Analyze the failure
For agentic workflows, audit the run
If firewall-related, check Squid logs
Fix: Check permissions: in workflow frontmatter
Fix: Add domain to --allow-domains or network: configuration
Fix: Increase timeout-minutes in workflow configuration
Fix: Add tool to tools: configuration in workflow frontmatter