Complete drift detection and remediation pipeline via GitHub Agentic Workflow
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- azure, github-actions, javascript, shell, vscode
- Domain
- ci-cd, cloud, developer-experience, devops, infrastructure
Research direction
Start with the existing azure-drift-detector skill and inspect .azure/deployments/ for template.json and state.json. Read the gh-aw workflow requirements, author .github/workflows/drift-detection.md, and verify it compiles with gh aw compile. Done means scheduled drift checks, categorized PR findings, interactive @git-ape drift support, and no missing skill scripts.
Written by the indexing model from the issue text.
Description
Description
The manifesto states: "Agents detect drift, propose fixes, generate plans, request approval, and apply remediations." The azure-drift-detector skill exists but is incomplete — missing scripts, no workflow, no auto-remediation. Rather than a traditional scheduled GitHub Actions workflow, this should be implemented as a GitHub Agentic Workflow (gh-aw) — a scheduled agent that runs periodically, inspects deployments, compares state, and opens PRs to resolve drift.
Related: #12 (GitHub Agentic Workflows adoption)
Implementation Approach: gh-aw Agentic Workflow
The drift detection workflow is authored as a Markdown file (.github/workflows/drift-detection.md) and compiled via gh aw compile into a hardened GitHub Actions workflow. The agent:
- Runs on a schedule (e.g., daily or weekly via
cron). - Iterates over all tracked deployments in
.azure/deployments/. - For each deployment with
state.jsonstatussucceeded, queries live Azure resource state viaazCLI. - Compares live state against the stored
template.json+state.json. - If drift is detected:
- Creates a branch with an updated drift report.
- Updates the template or state to reconcile (depending on drift category).
- Opens a PR with the drift findings, categorized by severity.
- PR includes: what changed, why it likely changed (policy remediation, manual edit, platform update), and proposed fix.
- If no drift: logs clean status.
Scope
- Complete
azure-drift-detectorskill — Replace missingdetect-drift.shwithazCLI commands in the skill procedure. Ensure it can be invoked by both the interactive agent and the agentic workflow. drift-detection.mdagentic workflow — Author the gh-aw Markdown workflow with schedule trigger, Azure OIDC login, and drift detection logic. Compile to.github/workflows/viagh aw compile.- Drift categorization — Categorize drift by likely cause: (a) manual Portal change, (b) Azure Policy remediation, (c) platform update, (d) unknown.
- PR-based remediation — Drift resolution is always via PR: agent proposes template or state update, human reviews and merges.
@git-ape driftinteractive command — For on-demand drift checks in VS Code chat.
Acceptance Criteria
-
drift-detection.mdagentic workflow authored and compiles viagh aw compile. - Workflow runs on schedule, iterates deployments, detects drift.
- Drift findings opened as PRs with categorized changes.
-
@git-ape drift <deployment-id>works interactively. - Drift report categorizes changes by severity and likely cause.
-
azure-drift-detectorskill is functional (no missing scripts).
- Dominant language
- JavaScript
- Stars
- 269
- Forks
- 45
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 15
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/git-ape
-
daily-status report
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
agentic-workflows
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
agentic-workflows
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
agentic-workflows
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
agentic-workflows
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·