Add bots field for workflow trigger authorization#6029
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
📰 BREAKING: Smoke Copilot Playwright is now investigating this pull request. Sources say the story is developing... |
|
🔮 The ancient spirits stir... Smoke Codex awakens to divine this pull request... |
|
💥 WHOOSH! Smoke Claude springs into action on this pull request! [Panel 1 begins...] |
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
|
🎉 Yo ho ho! Changeset Generator found the treasure and completed successfully! ⚓💰 https://github.com/githubnext/gh-aw/tree/copilot/update-bots-field-permissions |
Smoke Test Results (Run 20101428329)Last 2 Merged PRs:
Test Results:
Overall Status: PASS
|
Smoke Test Results - Claude EngineRecent PRs:
Test Results: Status: PASS (5/6 tests passed)
|
Smoke Test Results✅ Playwright MCP: Successfully navigated to https://github.com - page title confirmed "GitHub · Change is constant. GitHub keeps you ahead. · GitHub" Overall Status:
|
Smoke Test ResultsTests:
Status: FAIL (GitHub API connectivity issue) 📰🔥📋 https://github.com/githubnext/gh-aw/actions/runs/20101428282 fer issue #6029 🗺️ |
|
PRs: Update go-fan workflow to prioritize recently updated dependencies in round-robin selection; [docs] Update glossary - daily scan
|
|
@copilot add "[bot]" to name automatically (if not ending if [bot]). Update examples. |
|
@copilot make sure bots and roles can be imported. They can be overrides by the main workflow (no merge). |
|
@copilot log bots and roles in aw-info.json |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Plan: Add "bots" field for workflow trigger authorization
Summary
Successfully implemented the "bots" field for workflow trigger authorization with feedback addressed:
✅ Schema Changes: Added "bots" array field to main_workflow_schema.json with proper validation (examples removed per feedback)
✅ Go Implementation: Added Bots field to WorkflowData, extraction logic, and environment variable passing
✅ JavaScript Logic: Implemented bot validation that:
✅ Tests: All bot-related tests pass (4/4)
✅ Manual Verification: Compiled test workflow correctly includes bot validation logic
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
Changeset
botsfrontmatter field to allow listing GitHub Apps/bots allowed to trigger workflows. Includes schema, Go parsing/env passing, JavaScript validation updates, and tests.