Debug and fix failing Terraform GitHub Actions workflows. Use this skill when diagnosing CI/CD failures, resolving Terraform pipeline issues, troubleshooting authentication errors, or setting up new GitHub Actions workflows for infrastructure deployments. Typical scenarios include workflow failures, pipeline errors, broken CI/CD, or deployment failures.
This skill helps you debug and fix failing Terraform GitHub Actions workflows for Azure infrastructure deployments.
- name: Azure Login
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
Common Issues:
Fix:
# Create federated credential
az ad app federated-credential create \
--id <app-object-id> \
--parameters '{
"name": "github-actions",
"issuer": "https://token.actions.githubusercontent.com",
"subject": "repo:org/repo:ref:refs/heads/main",
"audiences": ["api://AzureADTokenExchange"]
}'
Error: Error acquiring the state lock
Fix:
terraform force-unlock <LOCK_ID>
Fixes:
Error: Failed to query available provider packages
Fixes:
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.6.0"
- name: Terraform Init
run: terraform init -upgrade
env:
ARM_SKIP_PROVIDER_REGISTRATION: "true"
Fix:
terraform import azurerm_resource_group.main /subscriptions/.../resourceGroups/rg-name
env:
TF_LOG: DEBUG
TF_LOG_PATH: terraform.log
- name: Debug Azure Context
run: |
az account show
az account list-locations -o table
For complete workflow templates and detailed debugging guides, see the reference guide.
npx skills add thomast1906/GitHub Actions — Terraform 调试下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer