feat: add docs-preview-reviewer agentic workflow#293
Conversation
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
|
🎬 THE END — Smoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨ |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (2 files)
Coverage comparison generated by |
| comment_repo: "" | ||
| steps: | ||
| - name: Setup Scripts | ||
| uses: githubnext/gh-aw/actions/setup@v0.36.0 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
| output_types: ${{ steps.collect_output.outputs.output_types }} | ||
| steps: | ||
| - name: Setup Scripts | ||
| uses: githubnext/gh-aw/actions/setup@v0.36.0 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
| total_count: ${{ steps.missing_tool.outputs.total_count }} | ||
| steps: | ||
| - name: Setup Scripts | ||
| uses: githubnext/gh-aw/actions/setup@v0.36.0 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
| success: ${{ steps.parse_results.outputs.success }} | ||
| steps: | ||
| - name: Setup Scripts | ||
| uses: githubnext/gh-aw/actions/setup@v0.36.0 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
| activated: ${{ steps.check_membership.outputs.is_team_member == 'true' }} | ||
| steps: | ||
| - name: Setup Scripts | ||
| uses: githubnext/gh-aw/actions/setup@v0.36.0 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
| process_safe_outputs_temporary_id_map: ${{ steps.process_safe_outputs.outputs.temporary_id_map }} | ||
| steps: | ||
| - name: Setup Scripts | ||
| uses: githubnext/gh-aw/actions/setup@v0.36.0 |
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium
Smoke Test Results (Claude)Last 2 merged PRs:
Test Results:
Overall: PASS
|
Smoke Test Results (Copilot Engine)Last 2 Merged PRs:
Test Results:
Overall: PARTIAL PASS (3/4 tests passed) cc: @Mossaka
|
📖 Documentation ReviewOverviewThis PR introduces a new agentic workflow ( ✅ What Looks Good
💡 Suggestions for Improvement
📝 Minor Notes
This review was generated by the Documentation Preview Reviewer workflow.
|
| tools: | ||
| github: | ||
| toolsets: [default] | ||
| safe-outputs: |
There was a problem hiding this comment.
Add playwright tool and in the instruction, tell the agent to use playwright tool to upload screenshots of the docs site.
There was a problem hiding this comment.
Added playwright tool with allowed_domains: [localhost] and upload-asset safe output for screenshots. Updated the instructions to build the docs site locally, capture screenshots of rendered pages, and embed them in the review comment. Commit: 1956f9c
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
🔒 Security Review - Critical Issue FoundI've reviewed PR #293 and identified a critical security vulnerability that completely bypasses the AWF firewall protection. 🚨 Critical Issue: Playwright MCP Server Bypasses FirewallFile: Problematic Code: "playwright": {
"type": "local",
"command": "docker",
"args": ["run", "-i", "--rm", "--init", "--network", "host", "mcr.microsoft.com/playwright/mcp", ...],
"tools": ["*"]
}Security Issue: The Playwright MCP server is configured with Why This Is Critical:
How It Bypasses the Firewall:
Evidence from Workflow:
|
Adds an AI-powered documentation reviewer that triggers on PRs modifying docs, providing structured feedback with visual previews before merge.
Changes
New workflow
.github/workflows/docs-preview-reviewer.md:docs/**,docs-site/**,**/*.mdhide-older-comments: trueto keep PR cleanTools:
github,bash,playwrightPermissions: Read-only (
contents,pull-requests,issues)Output: Uses
safe-outputs.add-commentandsafe-outputs.upload-assetfor safe PR commenting with embedded screenshotsExample output format
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.