specify-cli 1.0.8__tar.gz → 1.0.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- specify_cli-1.0.10/.github/workflows/add-community-bundle.lock.yml +2010 -0
- specify_cli-1.0.10/.github/workflows/add-community-bundle.md +323 -0
- specify_cli-1.0.10/.github/workflows/add-community-extension.lock.yml +1993 -0
- specify_cli-1.0.10/.github/workflows/add-community-extension.md +330 -0
- specify_cli-1.0.10/.github/workflows/add-community-preset.lock.yml +1993 -0
- specify_cli-1.0.10/.github/workflows/add-community-preset.md +378 -0
- specify_cli-1.0.10/.github/workflows/bug-fix.lock.yml +1997 -0
- specify_cli-1.0.10/.github/workflows/bug-fix.md +323 -0
- specify_cli-1.0.10/.github/workflows/codeql.yml +32 -0
- specify_cli-1.0.10/AGENTS.md +611 -0
- specify_cli-1.0.10/CHANGELOG.md +2977 -0
- specify_cli-1.0.10/PKG-INFO +231 -0
- specify_cli-1.0.10/README.md +211 -0
- specify_cli-1.0.10/bundles/assess/README.md +40 -0
- specify_cli-1.0.10/bundles/assess/bundle.yml +25 -0
- specify_cli-1.0.10/bundles/bugfix/README.md +38 -0
- specify_cli-1.0.10/bundles/bugfix/bundle.yml +25 -0
- specify_cli-1.0.10/bundles/catalog.json +51 -0
- specify_cli-1.0.10/design/cli.md +347 -0
- specify_cli-1.0.10/docs/community/extensions.md +200 -0
- specify_cli-1.0.10/docs/community/presets.md +47 -0
- specify_cli-1.0.10/docs/reference/bundles.md +207 -0
- specify_cli-1.0.10/docs/reference/integrations.md +348 -0
- specify_cli-1.0.10/docs/reference/presets.md +278 -0
- specify_cli-1.0.10/examples/bundles/business-analyst/bundle.yml +33 -0
- specify_cli-1.0.10/examples/bundles/developer/bundle.yml +33 -0
- specify_cli-1.0.10/examples/bundles/product-manager/bundle.yml +35 -0
- specify_cli-1.0.10/examples/bundles/security-researcher/bundle.yml +33 -0
- specify_cli-1.0.10/extensions/agent-context/extension.yml +34 -0
- specify_cli-1.0.10/extensions/assess/extension.yml +40 -0
- specify_cli-1.0.10/extensions/catalog.community.json +6416 -0
- specify_cli-1.0.10/extensions/catalog.json +67 -0
- specify_cli-1.0.10/extensions/git/extension.yml +142 -0
- specify_cli-1.0.10/integrations/catalog.json +376 -0
- specify_cli-1.0.10/presets/catalog.community.json +1029 -0
- specify_cli-1.0.10/pyproject.toml +93 -0
- specify_cli-1.0.10/scripts/bash/common.sh +926 -0
- specify_cli-1.0.10/scripts/powershell/common.ps1 +797 -0
- specify_cli-1.0.10/src/specify_cli/__init__.py +628 -0
- specify_cli-1.0.10/src/specify_cli/_invocation_style.py +81 -0
- specify_cli-1.0.10/src/specify_cli/_version.py +1146 -0
- specify_cli-1.0.10/src/specify_cli/artifacts/_commands.py +89 -0
- specify_cli-1.0.10/src/specify_cli/artifacts/catalog.py +1163 -0
- specify_cli-1.0.10/src/specify_cli/artifacts/command_info.py +64 -0
- specify_cli-1.0.10/src/specify_cli/artifacts/command_list.py +42 -0
- specify_cli-1.0.10/src/specify_cli/artifacts/command_lookup.py +55 -0
- specify_cli-1.0.10/src/specify_cli/authentication/github_http.py +300 -0
- specify_cli-1.0.10/src/specify_cli/authentication/http.py +227 -0
- specify_cli-1.0.10/src/specify_cli/bundler.py +5 -0
- specify_cli-1.0.10/src/specify_cli/bundles/__init__.py +20 -0
- specify_cli-1.0.10/src/specify_cli/bundles/_commands.py +163 -0
- specify_cli-1.0.10/src/specify_cli/bundles/adapters.py +339 -0
- specify_cli-1.0.10/src/specify_cli/bundles/catalog/__init__.py +20 -0
- specify_cli-1.0.10/src/specify_cli/bundles/catalog/command_add.py +41 -0
- specify_cli-1.0.10/src/specify_cli/bundles/catalog/command_list.py +38 -0
- specify_cli-1.0.10/src/specify_cli/bundles/catalog/command_remove.py +31 -0
- specify_cli-1.0.10/src/specify_cli/bundles/catalog_config.py +232 -0
- specify_cli-1.0.10/src/specify_cli/bundles/catalog_stack.py +122 -0
- specify_cli-1.0.10/src/specify_cli/bundles/catalogs.py +334 -0
- specify_cli-1.0.10/src/specify_cli/bundles/command_add.py +32 -0
- specify_cli-1.0.10/src/specify_cli/bundles/command_build.py +38 -0
- specify_cli-1.0.10/src/specify_cli/bundles/command_info.py +157 -0
- specify_cli-1.0.10/src/specify_cli/bundles/command_init.py +51 -0
- specify_cli-1.0.10/src/specify_cli/bundles/command_install.py +137 -0
- specify_cli-1.0.10/src/specify_cli/bundles/command_list.py +45 -0
- specify_cli-1.0.10/src/specify_cli/bundles/command_remove.py +32 -0
- specify_cli-1.0.10/src/specify_cli/bundles/command_search.py +65 -0
- specify_cli-1.0.10/src/specify_cli/bundles/command_update.py +69 -0
- specify_cli-1.0.10/src/specify_cli/bundles/command_validate.py +65 -0
- specify_cli-1.0.10/src/specify_cli/bundles/conflict.py +54 -0
- specify_cli-1.0.10/src/specify_cli/bundles/installer.py +276 -0
- specify_cli-1.0.10/src/specify_cli/bundles/manifest.py +290 -0
- specify_cli-1.0.10/src/specify_cli/bundles/packager.py +153 -0
- specify_cli-1.0.10/src/specify_cli/bundles/primitives.py +500 -0
- specify_cli-1.0.10/src/specify_cli/bundles/project.py +102 -0
- specify_cli-1.0.10/src/specify_cli/bundles/records.py +245 -0
- specify_cli-1.0.10/src/specify_cli/bundles/references.py +127 -0
- specify_cli-1.0.10/src/specify_cli/bundles/resolver.py +132 -0
- specify_cli-1.0.10/src/specify_cli/bundles/sources.py +346 -0
- specify_cli-1.0.10/src/specify_cli/bundles/validator.py +60 -0
- specify_cli-1.0.10/src/specify_cli/bundles/versioning.py +99 -0
- specify_cli-1.0.10/src/specify_cli/bundles/yamlio.py +202 -0
- specify_cli-1.0.10/src/specify_cli/events/__init__.py +2641 -0
- specify_cli-1.0.10/src/specify_cli/events/command_run.py +54 -0
- specify_cli-1.0.10/src/specify_cli/extensions/__init__.py +5482 -0
- specify_cli-1.0.10/src/specify_cli/extensions/_command_update_artifacts.py +164 -0
- specify_cli-1.0.10/src/specify_cli/extensions/_command_update_discovery.py +145 -0
- specify_cli-1.0.10/src/specify_cli/extensions/_command_update_transaction.py +871 -0
- specify_cli-1.0.10/src/specify_cli/extensions/_commands.py +690 -0
- specify_cli-1.0.10/src/specify_cli/extensions/catalog/__init__.py +32 -0
- specify_cli-1.0.10/src/specify_cli/extensions/catalog/_helpers.py +37 -0
- specify_cli-1.0.10/src/specify_cli/extensions/catalog/command_add.py +102 -0
- specify_cli-1.0.10/src/specify_cli/extensions/catalog/command_list.py +94 -0
- specify_cli-1.0.10/src/specify_cli/extensions/catalog/command_remove.py +66 -0
- specify_cli-1.0.10/src/specify_cli/extensions/command_add.py +292 -0
- specify_cli-1.0.10/src/specify_cli/extensions/command_disable.py +62 -0
- specify_cli-1.0.10/src/specify_cli/extensions/command_enable.py +84 -0
- specify_cli-1.0.10/src/specify_cli/extensions/command_info.py +261 -0
- specify_cli-1.0.10/src/specify_cli/extensions/command_list.py +75 -0
- specify_cli-1.0.10/src/specify_cli/extensions/command_remove.py +86 -0
- specify_cli-1.0.10/src/specify_cli/extensions/command_search.py +111 -0
- specify_cli-1.0.10/src/specify_cli/extensions/command_set_priority.py +66 -0
- specify_cli-1.0.10/src/specify_cli/extensions/command_update.py +25 -0
- specify_cli-1.0.10/src/specify_cli/integrations/__init__.py +1003 -0
- specify_cli-1.0.10/src/specify_cli/integrations/_command_scaffold_generation.py +281 -0
- specify_cli-1.0.10/src/specify_cli/integrations/_command_upgrade_layout.py +188 -0
- specify_cli-1.0.10/src/specify_cli/integrations/_commands.py +47 -0
- specify_cli-1.0.10/src/specify_cli/integrations/agy/__init__.py +106 -0
- specify_cli-1.0.10/src/specify_cli/integrations/alquimia/__init__.py +195 -0
- specify_cli-1.0.10/src/specify_cli/integrations/amp/__init__.py +54 -0
- specify_cli-1.0.10/src/specify_cli/integrations/base.py +1910 -0
- specify_cli-1.0.10/src/specify_cli/integrations/bob/__init__.py +373 -0
- specify_cli-1.0.10/src/specify_cli/integrations/catalog/__init__.py +48 -0
- specify_cli-1.0.10/src/specify_cli/integrations/catalog/command_add.py +42 -0
- specify_cli-1.0.10/src/specify_cli/integrations/catalog/command_list.py +67 -0
- specify_cli-1.0.10/src/specify_cli/integrations/catalog/command_remove.py +28 -0
- specify_cli-1.0.10/src/specify_cli/integrations/claude/__init__.py +245 -0
- specify_cli-1.0.10/src/specify_cli/integrations/codex/__init__.py +80 -0
- specify_cli-1.0.10/src/specify_cli/integrations/command_info.py +114 -0
- specify_cli-1.0.10/src/specify_cli/integrations/command_install.py +199 -0
- specify_cli-1.0.10/src/specify_cli/integrations/command_list.py +114 -0
- specify_cli-1.0.10/src/specify_cli/integrations/command_scaffold.py +55 -0
- specify_cli-1.0.10/src/specify_cli/integrations/command_search.py +109 -0
- specify_cli-1.0.10/src/specify_cli/integrations/command_status.py +91 -0
- specify_cli-1.0.10/src/specify_cli/integrations/command_switch.py +369 -0
- specify_cli-1.0.10/src/specify_cli/integrations/command_uninstall.py +126 -0
- specify_cli-1.0.10/src/specify_cli/integrations/command_upgrade.py +348 -0
- specify_cli-1.0.10/src/specify_cli/integrations/command_use.py +69 -0
- specify_cli-1.0.10/src/specify_cli/integrations/copilot/__init__.py +669 -0
- specify_cli-1.0.10/src/specify_cli/integrations/cursor_agent/__init__.py +131 -0
- specify_cli-1.0.10/src/specify_cli/integrations/devin/__init__.py +99 -0
- specify_cli-1.0.10/src/specify_cli/integrations/docker_agent/__init__.py +207 -0
- specify_cli-1.0.10/src/specify_cli/integrations/droid/__init__.py +143 -0
- specify_cli-1.0.10/src/specify_cli/integrations/dsh/__init__.py +72 -0
- specify_cli-1.0.10/src/specify_cli/integrations/generic/__init__.py +258 -0
- specify_cli-1.0.10/src/specify_cli/integrations/goose/__init__.py +111 -0
- specify_cli-1.0.10/src/specify_cli/integrations/grok/__init__.py +68 -0
- specify_cli-1.0.10/src/specify_cli/integrations/hermes/__init__.py +312 -0
- specify_cli-1.0.10/src/specify_cli/integrations/muse/__init__.py +71 -0
- specify_cli-1.0.10/src/specify_cli/integrations/omp/__init__.py +53 -0
- specify_cli-1.0.10/src/specify_cli/integrations/opencode/__init__.py +76 -0
- specify_cli-1.0.10/src/specify_cli/integrations/rovodev/__init__.py +264 -0
- specify_cli-1.0.10/src/specify_cli/integrations/vibe/__init__.py +202 -0
- specify_cli-1.0.10/src/specify_cli/presets/__init__.py +6259 -0
- specify_cli-1.0.10/src/specify_cli/presets/_commands.py +99 -0
- specify_cli-1.0.10/src/specify_cli/presets/catalog/__init__.py +25 -0
- specify_cli-1.0.10/src/specify_cli/presets/catalog/command_add.py +114 -0
- specify_cli-1.0.10/src/specify_cli/presets/catalog/command_list.py +78 -0
- specify_cli-1.0.10/src/specify_cli/presets/catalog/command_remove.py +69 -0
- specify_cli-1.0.10/src/specify_cli/presets/command_add.py +381 -0
- specify_cli-1.0.10/src/specify_cli/presets/command_disable.py +50 -0
- specify_cli-1.0.10/src/specify_cli/presets/command_enable.py +49 -0
- specify_cli-1.0.10/src/specify_cli/presets/command_info.py +96 -0
- specify_cli-1.0.10/src/specify_cli/presets/command_list.py +89 -0
- specify_cli-1.0.10/src/specify_cli/presets/command_remove.py +30 -0
- specify_cli-1.0.10/src/specify_cli/presets/command_resolve.py +121 -0
- specify_cli-1.0.10/src/specify_cli/presets/command_search.py +46 -0
- specify_cli-1.0.10/src/specify_cli/presets/command_set_priority.py +70 -0
- specify_cli-1.0.10/src/specify_cli/presets/command_update.py +99 -0
- specify_cli-1.0.10/src/specify_cli/selfs/__init__.py +28 -0
- specify_cli-1.0.10/src/specify_cli/selfs/command_check.py +79 -0
- specify_cli-1.0.10/src/specify_cli/selfs/command_upgrade.py +215 -0
- specify_cli-1.0.10/src/specify_cli/workflows/__init__.py +213 -0
- specify_cli-1.0.10/src/specify_cli/workflows/_command_resume_state.py +49 -0
- specify_cli-1.0.10/src/specify_cli/workflows/_command_run_ownership.py +187 -0
- specify_cli-1.0.10/src/specify_cli/workflows/_commands.py +1535 -0
- specify_cli-1.0.10/src/specify_cli/workflows/catalog/__init__.py +60 -0
- specify_cli-1.0.10/src/specify_cli/workflows/catalog/_domain.py +831 -0
- specify_cli-1.0.10/src/specify_cli/workflows/catalog/command_add.py +25 -0
- specify_cli-1.0.10/src/specify_cli/workflows/catalog/command_list.py +38 -0
- specify_cli-1.0.10/src/specify_cli/workflows/catalog/command_remove.py +26 -0
- specify_cli-1.0.10/src/specify_cli/workflows/command_add.py +507 -0
- specify_cli-1.0.10/src/specify_cli/workflows/command_disable.py +16 -0
- specify_cli-1.0.10/src/specify_cli/workflows/command_enable.py +13 -0
- specify_cli-1.0.10/src/specify_cli/workflows/command_info.py +121 -0
- specify_cli-1.0.10/src/specify_cli/workflows/command_list.py +36 -0
- specify_cli-1.0.10/src/specify_cli/workflows/command_remove.py +127 -0
- specify_cli-1.0.10/src/specify_cli/workflows/command_resolve.py +17 -0
- specify_cli-1.0.10/src/specify_cli/workflows/command_resume.py +113 -0
- specify_cli-1.0.10/src/specify_cli/workflows/command_run.py +168 -0
- specify_cli-1.0.10/src/specify_cli/workflows/command_search.py +43 -0
- specify_cli-1.0.10/src/specify_cli/workflows/command_status.py +129 -0
- specify_cli-1.0.10/src/specify_cli/workflows/command_update.py +148 -0
- specify_cli-1.0.10/src/specify_cli/workflows/engine.py +1843 -0
- specify_cli-1.0.10/src/specify_cli/workflows/expressions.py +1312 -0
- specify_cli-1.0.10/src/specify_cli/workflows/overlay/__init__.py +39 -0
- specify_cli-1.0.10/src/specify_cli/workflows/overlay/command_add.py +23 -0
- specify_cli-1.0.10/src/specify_cli/workflows/overlay/command_disable.py +19 -0
- specify_cli-1.0.10/src/specify_cli/workflows/overlay/command_enable.py +19 -0
- specify_cli-1.0.10/src/specify_cli/workflows/overlay/command_list.py +18 -0
- specify_cli-1.0.10/src/specify_cli/workflows/overlay/command_remove.py +19 -0
- specify_cli-1.0.10/src/specify_cli/workflows/overlay/command_set_priority.py +24 -0
- specify_cli-1.0.10/src/specify_cli/workflows/overlay/merge.py +466 -0
- specify_cli-1.0.10/src/specify_cli/workflows/overlay/operations.py +509 -0
- specify_cli-1.0.10/src/specify_cli/workflows/overlay/resolver.py +95 -0
- specify_cli-1.0.10/src/specify_cli/workflows/step/__init__.py +28 -0
- specify_cli-1.0.10/src/specify_cli/workflows/step/_helpers.py +107 -0
- specify_cli-1.0.10/src/specify_cli/workflows/step/catalog/__init__.py +48 -0
- specify_cli-1.0.10/src/specify_cli/workflows/step/catalog/_domain.py +710 -0
- specify_cli-1.0.10/src/specify_cli/workflows/step/catalog/command_add.py +26 -0
- specify_cli-1.0.10/src/specify_cli/workflows/step/catalog/command_list.py +38 -0
- specify_cli-1.0.10/src/specify_cli/workflows/step/catalog/command_remove.py +27 -0
- specify_cli-1.0.10/src/specify_cli/workflows/step/command/__init__.py +383 -0
- specify_cli-1.0.10/src/specify_cli/workflows/step/command_add.py +376 -0
- specify_cli-1.0.10/src/specify_cli/workflows/step/command_info.py +78 -0
- specify_cli-1.0.10/src/specify_cli/workflows/step/command_list.py +49 -0
- specify_cli-1.0.10/src/specify_cli/workflows/step/command_remove.py +97 -0
- specify_cli-1.0.10/src/specify_cli/workflows/step/command_search.py +47 -0
- specify_cli-1.0.10/src/specify_cli/workflows/step/prompt/__init__.py +306 -0
- specify_cli-1.0.10/templates/commands/converge.md +279 -0
- specify_cli-1.0.10/tests/conftest.py +238 -0
- specify_cli-1.0.10/tests/contract/test_bundled_extension_update_delivery.py +157 -0
- specify_cli-1.0.10/tests/contract/test_bundled_extension_versions.py +120 -0
- specify_cli-1.0.10/tests/contract/test_catalog_schema.py +353 -0
- specify_cli-1.0.10/tests/contract/test_firstparty_bundle_catalog_consistency.py +155 -0
- specify_cli-1.0.10/tests/contract/test_manifest_schema.py +225 -0
- specify_cli-1.0.10/tests/contract/test_wheel_bundled_workflows.py +52 -0
- specify_cli-1.0.10/tests/extensions/git/test_git_extension.py +2082 -0
- specify_cli-1.0.10/tests/http_helpers.py +47 -0
- specify_cli-1.0.10/tests/integration/test_preset_update_workflow.py +328 -0
- specify_cli-1.0.10/tests/integrations/test_base.py +768 -0
- specify_cli-1.0.10/tests/integrations/test_cli.py +2264 -0
- specify_cli-1.0.10/tests/integrations/test_integration_agy.py +387 -0
- specify_cli-1.0.10/tests/integrations/test_integration_alquimia.py +752 -0
- specify_cli-1.0.10/tests/integrations/test_integration_amp.py +96 -0
- specify_cli-1.0.10/tests/integrations/test_integration_bob.py +1122 -0
- specify_cli-1.0.10/tests/integrations/test_integration_claude.py +1006 -0
- specify_cli-1.0.10/tests/integrations/test_integration_generic.py +615 -0
- specify_cli-1.0.10/tests/integrations/test_integration_opencode.py +202 -0
- specify_cli-1.0.10/tests/integrations/test_integration_vibe.py +386 -0
- specify_cli-1.0.10/tests/specify_cli/__init__.py +1 -0
- specify_cli-1.0.10/tests/specify_cli/artifacts/conftest.py +25 -0
- specify_cli-1.0.10/tests/specify_cli/artifacts/helpers.py +69 -0
- specify_cli-1.0.10/tests/specify_cli/artifacts/test_catalog.py +2274 -0
- specify_cli-1.0.10/tests/specify_cli/artifacts/test_catalog_parity.py +173 -0
- specify_cli-1.0.10/tests/specify_cli/artifacts/test_command_info.py +152 -0
- specify_cli-1.0.10/tests/specify_cli/artifacts/test_command_list.py +178 -0
- specify_cli-1.0.10/tests/specify_cli/artifacts/test_command_lookup.py +180 -0
- specify_cli-1.0.10/tests/specify_cli/artifacts/test_registration.py +11 -0
- specify_cli-1.0.10/tests/specify_cli/authentication/__init__.py +1 -0
- specify_cli-1.0.10/tests/specify_cli/authentication/helpers.py +21 -0
- specify_cli-1.0.10/tests/specify_cli/authentication/test_authentication.py +1475 -0
- specify_cli-1.0.10/tests/specify_cli/authentication/test_github_http.py +634 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/__init__.py +0 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/_command_helpers.py +50 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/catalog/__init__.py +0 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/catalog/test_command_add.py +35 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/catalog/test_command_list.py +23 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/catalog/test_command_remove.py +21 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/conftest.py +12 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/helpers.py +143 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_adapters.py +517 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_bundles.py +8 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_catalog_config.py +315 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_catalog_stack.py +141 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_command_add.py +91 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_command_build.py +58 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_command_info.py +606 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_command_init.py +40 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_command_install.py +553 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_command_list.py +103 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_command_remove.py +55 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_command_search.py +106 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_command_update.py +71 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_command_validate.py +84 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_commands.py +71 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_conflict.py +54 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_installer.py +606 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_offline.py +153 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_packager.py +236 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_primitives.py +614 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_records.py +281 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_references.py +112 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_resolver.py +107 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_security_paths.py +236 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_sources.py +332 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_validator.py +32 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_versioning.py +68 -0
- specify_cli-1.0.10/tests/specify_cli/bundles/test_yamlio.py +58 -0
- specify_cli-1.0.10/tests/specify_cli/events/__init__.py +1 -0
- specify_cli-1.0.10/tests/specify_cli/events/test_command_run.py +145 -0
- specify_cli-1.0.10/tests/specify_cli/events/test_events.py +3099 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/__init__.py +6 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/_helpers.py +46 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/catalog/__init__.py +1 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/catalog/test_command_add.py +196 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/catalog/test_command_list.py +129 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/catalog/test_command_remove.py +75 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/conftest.py +89 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/test_command_add.py +1270 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/test_command_add_path_traversal.py +404 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/test_command_disable.py +55 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/test_command_enable.py +52 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/test_command_info.py +241 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/test_command_list.py +110 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/test_command_remove.py +102 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/test_command_search.py +102 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/test_command_set_priority.py +142 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/test_command_update.py +863 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/test_command_update_artifacts.py +135 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/test_command_update_discovery.py +102 -0
- specify_cli-1.0.10/tests/specify_cli/extensions/test_command_update_transaction.py +2230 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/__init__.py +1 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/_catalog_helpers.py +107 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/_helpers.py +77 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/_scaffold_helpers.py +16 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/catalog/__init__.py +1 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/catalog/test_command_add.py +110 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/catalog/test_command_list.py +146 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/catalog/test_command_remove.py +83 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/conftest.py +22 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_catalog.py +1660 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_command_info.py +120 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_command_install.py +702 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_command_list.py +175 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_command_scaffold.py +92 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_command_scaffold_generation.py +133 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_command_search.py +199 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_command_status.py +835 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_command_switch.py +875 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_command_uninstall.py +222 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_command_upgrade.py +1532 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_command_upgrade_layout.py +120 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_command_use.py +343 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_lifecycle.py +59 -0
- specify_cli-1.0.10/tests/specify_cli/integrations/test_registration.py +186 -0
- specify_cli-1.0.10/tests/specify_cli/presets/__init__.py +1 -0
- specify_cli-1.0.10/tests/specify_cli/presets/_fixtures.py +82 -0
- specify_cli-1.0.10/tests/specify_cli/presets/_helpers.py +128 -0
- specify_cli-1.0.10/tests/specify_cli/presets/catalog/__init__.py +1 -0
- specify_cli-1.0.10/tests/specify_cli/presets/catalog/test_command_add.py +75 -0
- specify_cli-1.0.10/tests/specify_cli/presets/catalog/test_command_list.py +38 -0
- specify_cli-1.0.10/tests/specify_cli/presets/catalog/test_command_remove.py +56 -0
- specify_cli-1.0.10/tests/specify_cli/presets/conftest.py +10 -0
- specify_cli-1.0.10/tests/specify_cli/presets/test_command_add.py +991 -0
- specify_cli-1.0.10/tests/specify_cli/presets/test_command_disable.py +97 -0
- specify_cli-1.0.10/tests/specify_cli/presets/test_command_enable.py +162 -0
- specify_cli-1.0.10/tests/specify_cli/presets/test_command_info.py +250 -0
- specify_cli-1.0.10/tests/specify_cli/presets/test_command_list.py +85 -0
- specify_cli-1.0.10/tests/specify_cli/presets/test_command_remove.py +21 -0
- specify_cli-1.0.10/tests/specify_cli/presets/test_command_resolve.py +216 -0
- specify_cli-1.0.10/tests/specify_cli/presets/test_command_search.py +204 -0
- specify_cli-1.0.10/tests/specify_cli/presets/test_command_set_priority.py +166 -0
- specify_cli-1.0.10/tests/specify_cli/presets/test_command_update.py +282 -0
- specify_cli-1.0.10/tests/specify_cli/presets/test_registration.py +40 -0
- specify_cli-1.0.10/tests/specify_cli/selfs/__init__.py +1 -0
- specify_cli-1.0.10/tests/specify_cli/selfs/test_command_check.py +187 -0
- specify_cli-1.0.10/tests/specify_cli/selfs/test_command_upgrade.py +128 -0
- specify_cli-1.0.10/tests/specify_cli/test_version_detection.py +888 -0
- specify_cli-1.0.10/tests/specify_cli/test_version_execution.py +543 -0
- specify_cli-1.0.10/tests/specify_cli/test_version_guidance.py +185 -0
- specify_cli-1.0.10/tests/specify_cli/test_version_release.py +286 -0
- specify_cli-1.0.10/tests/specify_cli/test_version_verification.py +539 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/__init__.py +1 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/catalog/__init__.py +1 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/catalog/test_command_add.py +30 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/catalog/test_command_list.py +37 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/catalog/test_command_remove.py +19 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/conftest.py +58 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/helpers.py +48 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/overlay/__init__.py +1 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/overlay/test_command_add.py +513 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/overlay/test_command_disable.py +165 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/overlay/test_command_enable.py +32 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/overlay/test_command_list.py +239 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/overlay/test_command_remove.py +172 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/overlay/test_command_set_priority.py +244 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/step/__init__.py +1 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/step/catalog/__init__.py +1 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/step/catalog/test_command_add.py +31 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/step/catalog/test_command_list.py +37 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/step/catalog/test_command_remove.py +23 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/step/test_command_add.py +606 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/step/test_command_info.py +63 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/step/test_command_list.py +40 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/step/test_command_remove.py +94 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/step/test_command_search.py +39 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/test_command_add.py +3206 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/test_command_disable.py +305 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/test_command_enable.py +145 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/test_command_info.py +143 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/test_command_list.py +150 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/test_command_remove.py +371 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/test_command_resolve.py +197 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/test_command_resume.py +652 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/test_command_resume_state.py +40 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/test_command_run.py +1394 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/test_command_run_ownership.py +51 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/test_command_search.py +96 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/test_command_status.py +295 -0
- specify_cli-1.0.10/tests/specify_cli/workflows/test_command_update.py +801 -0
- specify_cli-1.0.10/tests/test_cli_version.py +138 -0
- specify_cli-1.0.10/tests/test_commands_package.py +100 -0
- specify_cli-1.0.10/tests/test_converge_template_scaffold.py +37 -0
- specify_cli-1.0.10/tests/test_extensions.py +9082 -0
- specify_cli-1.0.10/tests/test_github_workflows.py +1104 -0
- specify_cli-1.0.10/tests/test_init_dir_cli.py +244 -0
- specify_cli-1.0.10/tests/test_presets.py +12884 -0
- specify_cli-1.0.10/tests/test_workflows.py +10637 -0
- specify_cli-1.0.10/tests/unit/test_condition_expression_block.py +982 -0
- specify_cli-1.0.10/tests/workflows/test_bundled_bugfix_assess_workflows.py +93 -0
- specify_cli-1.0.10/tests/workflows/test_overlay_composer.py +153 -0
- specify_cli-1.0.10/tests/workflows/test_overlay_layer_sources.py +327 -0
- specify_cli-1.0.10/tests/workflows/test_overlay_merge.py +932 -0
- specify_cli-1.0.10/tests/workflows/test_overlay_schema.py +366 -0
- specify_cli-1.0.10/tests/workflows/test_resolver_integration.py +567 -0
- specify_cli-1.0.10/tests/workflows/test_slot_step.py +242 -0
- specify_cli-1.0.10/workflows/ARCHITECTURE.md +218 -0
- specify_cli-1.0.10/workflows/README.md +548 -0
- specify_cli-1.0.10/workflows/assess/workflow.yml +62 -0
- specify_cli-1.0.10/workflows/bugfix/workflow.yml +50 -0
- specify_cli-1.0.10/workflows/catalog.json +37 -0
- specify_cli-1.0.8/.github/workflows/add-community-bundle.lock.yml +0 -2009
- specify_cli-1.0.8/.github/workflows/add-community-bundle.md +0 -305
- specify_cli-1.0.8/.github/workflows/add-community-extension.lock.yml +0 -1992
- specify_cli-1.0.8/.github/workflows/add-community-extension.md +0 -311
- specify_cli-1.0.8/.github/workflows/add-community-preset.lock.yml +0 -1992
- specify_cli-1.0.8/.github/workflows/add-community-preset.md +0 -359
- specify_cli-1.0.8/.github/workflows/bug-fix.lock.yml +0 -1997
- specify_cli-1.0.8/.github/workflows/bug-fix.md +0 -318
- specify_cli-1.0.8/.github/workflows/codeql.yml +0 -32
- specify_cli-1.0.8/AGENTS.md +0 -603
- specify_cli-1.0.8/CHANGELOG.md +0 -2927
- specify_cli-1.0.8/PKG-INFO +0 -215
- specify_cli-1.0.8/README.md +0 -195
- specify_cli-1.0.8/docs/community/extensions.md +0 -199
- specify_cli-1.0.8/docs/community/presets.md +0 -47
- specify_cli-1.0.8/docs/reference/bundles.md +0 -186
- specify_cli-1.0.8/docs/reference/integrations.md +0 -345
- specify_cli-1.0.8/docs/reference/presets.md +0 -240
- specify_cli-1.0.8/examples/bundles/business-analyst/bundle.yml +0 -33
- specify_cli-1.0.8/examples/bundles/developer/bundle.yml +0 -33
- specify_cli-1.0.8/examples/bundles/product-manager/bundle.yml +0 -35
- specify_cli-1.0.8/examples/bundles/security-researcher/bundle.yml +0 -33
- specify_cli-1.0.8/extensions/agent-context/extension.yml +0 -34
- specify_cli-1.0.8/extensions/assess/extension.yml +0 -40
- specify_cli-1.0.8/extensions/catalog.community.json +0 -6372
- specify_cli-1.0.8/extensions/catalog.json +0 -67
- specify_cli-1.0.8/extensions/git/extension.yml +0 -142
- specify_cli-1.0.8/integrations/catalog.json +0 -376
- specify_cli-1.0.8/presets/catalog.community.json +0 -1029
- specify_cli-1.0.8/pyproject.toml +0 -90
- specify_cli-1.0.8/scripts/bash/common.sh +0 -926
- specify_cli-1.0.8/scripts/powershell/common.ps1 +0 -796
- specify_cli-1.0.8/src/specify_cli/__init__.py +0 -608
- specify_cli-1.0.8/src/specify_cli/_github_http.py +0 -300
- specify_cli-1.0.8/src/specify_cli/_invocation_style.py +0 -80
- specify_cli-1.0.8/src/specify_cli/_version.py +0 -1447
- specify_cli-1.0.8/src/specify_cli/artifacts/_commands.py +0 -201
- specify_cli-1.0.8/src/specify_cli/artifacts/catalog.py +0 -1163
- specify_cli-1.0.8/src/specify_cli/authentication/http.py +0 -223
- specify_cli-1.0.8/src/specify_cli/bundler/__init__.py +0 -19
- specify_cli-1.0.8/src/specify_cli/bundler/commands_impl/__init__.py +0 -2
- specify_cli-1.0.8/src/specify_cli/bundler/commands_impl/catalog_config.py +0 -232
- specify_cli-1.0.8/src/specify_cli/bundler/lib/__init__.py +0 -2
- specify_cli-1.0.8/src/specify_cli/bundler/lib/project.py +0 -102
- specify_cli-1.0.8/src/specify_cli/bundler/lib/versioning.py +0 -99
- specify_cli-1.0.8/src/specify_cli/bundler/lib/yamlio.py +0 -202
- specify_cli-1.0.8/src/specify_cli/bundler/models/__init__.py +0 -2
- specify_cli-1.0.8/src/specify_cli/bundler/models/catalog.py +0 -334
- specify_cli-1.0.8/src/specify_cli/bundler/models/manifest.py +0 -290
- specify_cli-1.0.8/src/specify_cli/bundler/models/records.py +0 -245
- specify_cli-1.0.8/src/specify_cli/bundler/services/__init__.py +0 -2
- specify_cli-1.0.8/src/specify_cli/bundler/services/adapters.py +0 -244
- specify_cli-1.0.8/src/specify_cli/bundler/services/catalog_stack.py +0 -122
- specify_cli-1.0.8/src/specify_cli/bundler/services/conflict.py +0 -54
- specify_cli-1.0.8/src/specify_cli/bundler/services/installer.py +0 -276
- specify_cli-1.0.8/src/specify_cli/bundler/services/packager.py +0 -153
- specify_cli-1.0.8/src/specify_cli/bundler/services/primitives.py +0 -476
- specify_cli-1.0.8/src/specify_cli/bundler/services/references.py +0 -127
- specify_cli-1.0.8/src/specify_cli/bundler/services/resolver.py +0 -132
- specify_cli-1.0.8/src/specify_cli/bundler/services/validator.py +0 -60
- specify_cli-1.0.8/src/specify_cli/commands/bundle/__init__.py +0 -1113
- specify_cli-1.0.8/src/specify_cli/commands/event.py +0 -61
- specify_cli-1.0.8/src/specify_cli/events.py +0 -2608
- specify_cli-1.0.8/src/specify_cli/extensions/__init__.py +0 -5459
- specify_cli-1.0.8/src/specify_cli/extensions/_commands.py +0 -2911
- specify_cli-1.0.8/src/specify_cli/integration_scaffold.py +0 -281
- specify_cli-1.0.8/src/specify_cli/integrations/__init__.py +0 -136
- specify_cli-1.0.8/src/specify_cli/integrations/_commands.py +0 -35
- specify_cli-1.0.8/src/specify_cli/integrations/_install_commands.py +0 -329
- specify_cli-1.0.8/src/specify_cli/integrations/_migrate_commands.py +0 -903
- specify_cli-1.0.8/src/specify_cli/integrations/_query_commands.py +0 -573
- specify_cli-1.0.8/src/specify_cli/integrations/_scaffold_commands.py +0 -54
- specify_cli-1.0.8/src/specify_cli/integrations/agy/__init__.py +0 -134
- specify_cli-1.0.8/src/specify_cli/integrations/alquimia/__init__.py +0 -189
- specify_cli-1.0.8/src/specify_cli/integrations/amp/__init__.py +0 -20
- specify_cli-1.0.8/src/specify_cli/integrations/base.py +0 -1905
- specify_cli-1.0.8/src/specify_cli/integrations/bob/__init__.py +0 -373
- specify_cli-1.0.8/src/specify_cli/integrations/catalog.py +0 -878
- specify_cli-1.0.8/src/specify_cli/integrations/claude/__init__.py +0 -239
- specify_cli-1.0.8/src/specify_cli/integrations/codex/__init__.py +0 -78
- specify_cli-1.0.8/src/specify_cli/integrations/copilot/__init__.py +0 -668
- specify_cli-1.0.8/src/specify_cli/integrations/cursor_agent/__init__.py +0 -129
- specify_cli-1.0.8/src/specify_cli/integrations/devin/__init__.py +0 -97
- specify_cli-1.0.8/src/specify_cli/integrations/docker_agent/__init__.py +0 -204
- specify_cli-1.0.8/src/specify_cli/integrations/droid/__init__.py +0 -141
- specify_cli-1.0.8/src/specify_cli/integrations/dsh/__init__.py +0 -70
- specify_cli-1.0.8/src/specify_cli/integrations/generic/__init__.py +0 -147
- specify_cli-1.0.8/src/specify_cli/integrations/goose/__init__.py +0 -109
- specify_cli-1.0.8/src/specify_cli/integrations/grok/__init__.py +0 -66
- specify_cli-1.0.8/src/specify_cli/integrations/hermes/__init__.py +0 -311
- specify_cli-1.0.8/src/specify_cli/integrations/muse/__init__.py +0 -69
- specify_cli-1.0.8/src/specify_cli/integrations/omp/__init__.py +0 -51
- specify_cli-1.0.8/src/specify_cli/integrations/opencode/__init__.py +0 -73
- specify_cli-1.0.8/src/specify_cli/integrations/rovodev/__init__.py +0 -263
- specify_cli-1.0.8/src/specify_cli/integrations/vibe/__init__.py +0 -196
- specify_cli-1.0.8/src/specify_cli/presets/__init__.py +0 -6259
- specify_cli-1.0.8/src/specify_cli/presets/_commands.py +0 -1007
- specify_cli-1.0.8/src/specify_cli/workflows/__init__.py +0 -213
- specify_cli-1.0.8/src/specify_cli/workflows/_commands.py +0 -3901
- specify_cli-1.0.8/src/specify_cli/workflows/catalog.py +0 -1507
- specify_cli-1.0.8/src/specify_cli/workflows/engine.py +0 -1801
- specify_cli-1.0.8/src/specify_cli/workflows/expressions.py +0 -1277
- specify_cli-1.0.8/src/specify_cli/workflows/overlays/__init__.py +0 -95
- specify_cli-1.0.8/src/specify_cli/workflows/overlays/_commands.py +0 -468
- specify_cli-1.0.8/src/specify_cli/workflows/overlays/merge.py +0 -407
- specify_cli-1.0.8/src/specify_cli/workflows/steps/__init__.py +0 -1
- specify_cli-1.0.8/src/specify_cli/workflows/steps/command/__init__.py +0 -382
- specify_cli-1.0.8/src/specify_cli/workflows/steps/prompt/__init__.py +0 -301
- specify_cli-1.0.8/templates/commands/converge.md +0 -273
- specify_cli-1.0.8/tests/auth_helpers.py +0 -21
- specify_cli-1.0.8/tests/bundler_helpers.py +0 -125
- specify_cli-1.0.8/tests/conftest.py +0 -233
- specify_cli-1.0.8/tests/contract/test_bundle_cli.py +0 -1077
- specify_cli-1.0.8/tests/contract/test_bundled_extension_versions.py +0 -83
- specify_cli-1.0.8/tests/contract/test_catalog_schema.py +0 -340
- specify_cli-1.0.8/tests/contract/test_manifest_schema.py +0 -225
- specify_cli-1.0.8/tests/extensions/git/test_git_extension.py +0 -2082
- specify_cli-1.0.8/tests/http_helpers.py +0 -46
- specify_cli-1.0.8/tests/integration/test_bundler_catalog_stack.py +0 -141
- specify_cli-1.0.8/tests/integration/test_bundler_init_install.py +0 -106
- specify_cli-1.0.8/tests/integration/test_bundler_install_flow.py +0 -606
- specify_cli-1.0.8/tests/integration/test_bundler_local_install.py +0 -480
- specify_cli-1.0.8/tests/integration/test_bundler_offline.py +0 -97
- specify_cli-1.0.8/tests/integration/test_bundler_security_paths.py +0 -236
- specify_cli-1.0.8/tests/integrations/test_base.py +0 -767
- specify_cli-1.0.8/tests/integrations/test_cli.py +0 -3142
- specify_cli-1.0.8/tests/integrations/test_events.py +0 -2982
- specify_cli-1.0.8/tests/integrations/test_integration_agy.py +0 -154
- specify_cli-1.0.8/tests/integrations/test_integration_alquimia.py +0 -702
- specify_cli-1.0.8/tests/integrations/test_integration_amp.py +0 -10
- specify_cli-1.0.8/tests/integrations/test_integration_bob.py +0 -1106
- specify_cli-1.0.8/tests/integrations/test_integration_catalog.py +0 -1950
- specify_cli-1.0.8/tests/integrations/test_integration_claude.py +0 -956
- specify_cli-1.0.8/tests/integrations/test_integration_generic.py +0 -424
- specify_cli-1.0.8/tests/integrations/test_integration_opencode.py +0 -199
- specify_cli-1.0.8/tests/integrations/test_integration_scaffold.py +0 -238
- specify_cli-1.0.8/tests/integrations/test_integration_subcommand.py +0 -4499
- specify_cli-1.0.8/tests/integrations/test_integration_vibe.py +0 -336
- specify_cli-1.0.8/tests/test_artifact_command.py +0 -2819
- specify_cli-1.0.8/tests/test_artifact_command_parity.py +0 -173
- specify_cli-1.0.8/tests/test_authentication.py +0 -1475
- specify_cli-1.0.8/tests/test_cli_version.py +0 -79
- specify_cli-1.0.8/tests/test_commands_package.py +0 -100
- specify_cli-1.0.8/tests/test_event_command.py +0 -145
- specify_cli-1.0.8/tests/test_extension_add_path_traversal.py +0 -401
- specify_cli-1.0.8/tests/test_extension_content_staleness.py +0 -134
- specify_cli-1.0.8/tests/test_extension_update_hardening.py +0 -2225
- specify_cli-1.0.8/tests/test_extensions.py +0 -12073
- specify_cli-1.0.8/tests/test_github_http.py +0 -632
- specify_cli-1.0.8/tests/test_github_workflows.py +0 -981
- specify_cli-1.0.8/tests/test_init_dir_cli.py +0 -294
- specify_cli-1.0.8/tests/test_presets.py +0 -14732
- specify_cli-1.0.8/tests/test_self_upgrade_detection.py +0 -888
- specify_cli-1.0.8/tests/test_self_upgrade_execution.py +0 -543
- specify_cli-1.0.8/tests/test_self_upgrade_guidance.py +0 -185
- specify_cli-1.0.8/tests/test_self_upgrade_verification.py +0 -670
- specify_cli-1.0.8/tests/test_upgrade.py +0 -449
- specify_cli-1.0.8/tests/test_workflow_run_without_project.py +0 -408
- specify_cli-1.0.8/tests/test_workflows.py +0 -17878
- specify_cli-1.0.8/tests/unit/test_bundle_download_url.py +0 -162
- specify_cli-1.0.8/tests/unit/test_bundler_adapters.py +0 -203
- specify_cli-1.0.8/tests/unit/test_bundler_catalog_config.py +0 -315
- specify_cli-1.0.8/tests/unit/test_bundler_conflict.py +0 -54
- specify_cli-1.0.8/tests/unit/test_bundler_packager.py +0 -236
- specify_cli-1.0.8/tests/unit/test_bundler_primitives.py +0 -609
- specify_cli-1.0.8/tests/unit/test_bundler_records.py +0 -281
- specify_cli-1.0.8/tests/unit/test_bundler_references.py +0 -112
- specify_cli-1.0.8/tests/unit/test_bundler_resolver.py +0 -107
- specify_cli-1.0.8/tests/unit/test_bundler_validator.py +0 -32
- specify_cli-1.0.8/tests/unit/test_bundler_versioning.py +0 -68
- specify_cli-1.0.8/tests/unit/test_bundler_yamlio.py +0 -58
- specify_cli-1.0.8/tests/unit/test_condition_expression_block.py +0 -982
- specify_cli-1.0.8/tests/workflows/test_overlay_commands.py +0 -1004
- specify_cli-1.0.8/tests/workflows/test_overlay_composer.py +0 -153
- specify_cli-1.0.8/tests/workflows/test_overlay_layer_sources.py +0 -327
- specify_cli-1.0.8/tests/workflows/test_overlay_merge.py +0 -735
- specify_cli-1.0.8/tests/workflows/test_overlay_schema.py +0 -366
- specify_cli-1.0.8/tests/workflows/test_overlay_security.py +0 -321
- specify_cli-1.0.8/tests/workflows/test_resolver_integration.py +0 -567
- specify_cli-1.0.8/tests/workflows/test_slot_step.py +0 -242
- specify_cli-1.0.8/workflows/ARCHITECTURE.md +0 -218
- specify_cli-1.0.8/workflows/README.md +0 -544
- specify_cli-1.0.8/workflows/catalog.json +0 -16
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.devcontainer/devcontainer.json +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.devcontainer/post-create.sh +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.editorconfig +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.gitattributes +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/CODEOWNERS +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/ISSUE_TEMPLATE/agent_request.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/ISSUE_TEMPLATE/bundle_submission.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/ISSUE_TEMPLATE/extension_submission.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/ISSUE_TEMPLATE/preset_submission.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/aw/actions-lock.json +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/dependabot.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/scripts/check_extension_version_bump.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/scripts/check_security_requirements.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/security-audit-requirements.txt +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/skills/add-community-extension/SKILL.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/skills/code-review/SKILL.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/RELEASE-PROCESS.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/bug-assess.lock.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/bug-assess.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/bug-test.lock.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/bug-test.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/catalog-assign.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/docs.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/extension-version-guard.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/feature-assess.lock.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/feature-assess.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/lint.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/publish-pypi.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/release-trigger.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/release.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/security.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/stale.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.github/workflows/test.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.gitignore +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.markdownlint-cli2.jsonc +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.pre-commit-config.yaml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/.zenodo.json +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/CITATION.cff +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/CODE_OF_CONDUCT.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/CONTRIBUTING.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/DEVELOPMENT.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/LICENSE +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/README.zh-CN.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/SECURITY.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/SUPPORT.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/bundles/catalog.community.json +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/.gitignore +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/community/bundles.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/community/friends.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/community/overview.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/community/walkthroughs.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/concepts/complex-features.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/concepts/sdd.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/concepts/spec-of-specs.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/concepts/spec-persistence.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/docfx.json +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/guides/assessment.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/guides/bugfix.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/guides/contract-driven-development.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/guides/customization.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/guides/evolving-specs.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/guides/existing-projects.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/guides/monorepo.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/history.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/images/spec-kit-logo.webp +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/index.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/install/air-gapped.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/install/one-time.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/install/pipx.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/install/pypi.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/install/uv.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/installation.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/local-development.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/quickstart.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/reference/agentic-assessment.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/reference/agentic-bugfix.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/reference/agentic-sdd.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/reference/artifacts.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/reference/authentication.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/reference/core.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/reference/extensions.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/reference/overview.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/reference/workflows.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/template/public/main.css +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/toc.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/docs/upgrade.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/examples/bundles/business-analyst/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/examples/bundles/developer/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/examples/bundles/product-manager/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/examples/bundles/security-researcher/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/EXTENSION-API-REFERENCE.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/EXTENSION-DEVELOPMENT-GUIDE.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/EXTENSION-PUBLISHING-GUIDE.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/EXTENSION-USER-GUIDE.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/RFC-EXTENSION-SYSTEM.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/agent-context/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/agent-context/agent-context-config.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/agent-context/agent-context-defaults.json +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/agent-context/commands/speckit.agent-context.update.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/agent-context/scripts/bash/update-agent-context.sh +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/agent-context/scripts/powershell/update-agent-context.ps1 +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/agent-context/scripts/python/update_agent_context.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/assess/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/assess/commands/speckit.assess.decide.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/assess/commands/speckit.assess.define.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/assess/commands/speckit.assess.intake.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/assess/commands/speckit.assess.research.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/assess/commands/speckit.assess.shape.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/bug/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/bug/commands/speckit.bug.assess.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/bug/commands/speckit.bug.fix.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/bug/commands/speckit.bug.test.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/bug/extension.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/commands/speckit.git.commit.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/commands/speckit.git.feature.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/commands/speckit.git.initialize.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/commands/speckit.git.remote.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/commands/speckit.git.validate.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/config-template.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/git-config.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/scripts/bash/auto-commit.sh +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/scripts/bash/create-new-feature-branch.sh +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/scripts/bash/git-common.sh +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/scripts/bash/initialize-repo.sh +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/scripts/powershell/auto-commit.ps1 +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/scripts/powershell/create-new-feature-branch.ps1 +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/scripts/powershell/git-common.ps1 +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/scripts/powershell/initialize-repo.ps1 +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/scripts/python/auto_commit.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/scripts/python/create_new_feature_branch.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/scripts/python/git_common.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/git/scripts/python/initialize_repo.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/selftest/commands/selftest.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/selftest/extension.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/template/.gitignore +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/template/CHANGELOG.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/template/EXAMPLE-README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/template/LICENSE +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/template/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/template/commands/example.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/template/config-template.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/extensions/template/extension.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/integrations/CONTRIBUTING.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/integrations/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/integrations/catalog.community.json +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/media/bootstrap-claude-code.gif +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/media/logo_large.webp +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/media/logo_small.webp +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/media/spec-kit-video-header.jpg +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/media/specify_cli.gif +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/newsletters/2026-April.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/newsletters/2026-August.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/newsletters/2026-February.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/newsletters/2026-July.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/newsletters/2026-June.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/newsletters/2026-March.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/newsletters/2026-May.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/ARCHITECTURE.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/PUBLISHING.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/catalog.json +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/constitution-sync/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/constitution-sync/commands/speckit.constitution.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/constitution-sync/preset.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/lean/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/lean/commands/speckit.constitution.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/lean/commands/speckit.implement.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/lean/commands/speckit.plan.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/lean/commands/speckit.specify.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/lean/commands/speckit.tasks.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/lean/preset.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/scaffold/README.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/scaffold/commands/speckit.myext.myextcmd.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/scaffold/commands/speckit.specify.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/scaffold/preset.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/scaffold/templates/myext-template.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/scaffold/templates/spec-template.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/self-test/commands/speckit.specify.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/self-test/commands/speckit.wrap-test.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/self-test/preset.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/self-test/templates/checklist-template.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/self-test/templates/constitution-template.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/self-test/templates/plan-template.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/self-test/templates/spec-template.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/presets/self-test/templates/tasks-template.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/bash/check-prerequisites.sh +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/bash/create-new-feature.sh +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/bash/resolve-template.sh +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/bash/setup-plan.sh +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/bash/setup-tasks.sh +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/powershell/check-prerequisites.ps1 +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/powershell/create-new-feature.ps1 +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/powershell/resolve-template.ps1 +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/powershell/setup-plan.ps1 +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/powershell/setup-tasks.ps1 +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/python/check_prerequisites.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/python/common.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/python/create_new_feature.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/python/resolve_template.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/python/setup_plan.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/scripts/python/setup_tasks.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/spec-driven.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/spec-kit.code-workspace +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/_agent_config.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/_assets.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/_console.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/_download_security.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/_init_options.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/_installed_list_json.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/_project.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/_toml_string.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/_utils.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/agents.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/artifacts/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/artifacts/_identifiers.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/artifacts/models.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/artifacts/resolution.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/authentication/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/authentication/azure_devops.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/authentication/base.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/authentication/config.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/authentication/github.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/catalogs.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/commands/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/commands/init.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integration_runtime.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integration_state.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integration_status.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/_helpers.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/auggie/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/cline/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/codebuddy/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/command_code/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/firebender/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/forge/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/gemini/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/junie/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/kilocode/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/kimi/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/kiro_cli/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/lingma/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/manifest.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/pi/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/qodercli/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/qwen/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/shai/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/tabnine/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/trae/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/zcode/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/integrations/zed/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/shared_infra.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/src/specify_cli/workflows/base.py +0 -0
- {specify_cli-1.0.8/src/specify_cli/workflows/overlays → specify_cli-1.0.10/src/specify_cli/workflows/overlay}/composer.py +0 -0
- {specify_cli-1.0.8/src/specify_cli/workflows/overlays → specify_cli-1.0.10/src/specify_cli/workflows/overlay}/layer_sources.py +0 -0
- {specify_cli-1.0.8/src/specify_cli/workflows/overlays → specify_cli-1.0.10/src/specify_cli/workflows/overlay}/schema.py +0 -0
- {specify_cli-1.0.8/src/specify_cli/workflows/steps → specify_cli-1.0.10/src/specify_cli/workflows/step}/do_while/__init__.py +0 -0
- {specify_cli-1.0.8/src/specify_cli/workflows/steps → specify_cli-1.0.10/src/specify_cli/workflows/step}/fan_in/__init__.py +0 -0
- {specify_cli-1.0.8/src/specify_cli/workflows/steps → specify_cli-1.0.10/src/specify_cli/workflows/step}/fan_out/__init__.py +0 -0
- {specify_cli-1.0.8/src/specify_cli/workflows/steps → specify_cli-1.0.10/src/specify_cli/workflows/step}/gate/__init__.py +0 -0
- {specify_cli-1.0.8/src/specify_cli/workflows/steps → specify_cli-1.0.10/src/specify_cli/workflows/step}/if_then/__init__.py +0 -0
- {specify_cli-1.0.8/src/specify_cli/workflows/steps → specify_cli-1.0.10/src/specify_cli/workflows/step}/init/__init__.py +0 -0
- {specify_cli-1.0.8/src/specify_cli/workflows/steps → specify_cli-1.0.10/src/specify_cli/workflows/step}/shell/__init__.py +0 -0
- {specify_cli-1.0.8/src/specify_cli/workflows/steps → specify_cli-1.0.10/src/specify_cli/workflows/step}/slot/__init__.py +0 -0
- {specify_cli-1.0.8/src/specify_cli/workflows/steps → specify_cli-1.0.10/src/specify_cli/workflows/step}/switch/__init__.py +0 -0
- {specify_cli-1.0.8/src/specify_cli/workflows/steps → specify_cli-1.0.10/src/specify_cli/workflows/step}/while_loop/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/checklist-template.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/commands/analyze.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/commands/checklist.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/commands/clarify.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/commands/constitution.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/commands/implement.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/commands/plan.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/commands/specify.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/commands/tasks.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/commands/taskstoissues.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/constitution-template.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/plan-template.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/spec-template.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/tasks-template.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/templates/vscode-settings.json +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/contract/test_extension_version_guard_script.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/contract/test_wheel_bundled_presets.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/contract/test_wheel_core_pack_scripts.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/extensions/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/extensions/assess/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/extensions/assess/test_assess_extension.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/extensions/bug/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/extensions/bug/test_bug_extension.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/extensions/git/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/extensions/git/test_git_extension_python_parity.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/extensions/test_agent_context_cli_free.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/extensions/test_extension_agent_context.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/extensions/test_update_agent_context_feature_json.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/extensions/test_update_agent_context_python_parity.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/hooks/TESTING.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/hooks/plan.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/hooks/spec.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/hooks/tasks.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/__init__.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/conftest.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_extra_args.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_home_isolation.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_auggie.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_base_markdown.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_base_skills.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_base_toml.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_base_yaml.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_cline.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_codebuddy.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_codex.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_command_code.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_copilot.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_cursor_agent.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_devin.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_docker_agent.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_droid.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_dsh.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_firebender.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_forge.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_gemini.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_goose.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_grok.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_hermes.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_junie.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_kilocode.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_kimi.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_kiro_cli.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_lingma.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_muse.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_omp.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_pi.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_qodercli.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_qwen.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_rovodev.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_shai.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_state.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_tabnine.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_trae.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_zcode.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_integration_zed.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_manifest.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_registry.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/integrations/test_skill_frontmatter_quoting.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/parity_helpers.py +0 -0
- {specify_cli-1.0.8/tests → specify_cli-1.0.10/tests/specify_cli}/self_upgrade_helpers.py +0 -0
- {specify_cli-1.0.8/tests → specify_cli-1.0.10/tests/specify_cli}/test_version_imports.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_agent_config_consistency.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_branch_numbering.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_bug_fix_workflow.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_check_prerequisites_paths_only.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_check_prerequisites_python_parity.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_check_tool.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_clarify_stage_gate.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_command_template_hooks.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_command_template_py_scripts.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_console_imports.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_constitution_template_sync_report.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_create_new_feature_python_parity.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_download_security.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_extension_registration.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_extension_skills.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_init_dir.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_init_output_markup.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_installed_list_json.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_live_transient_windows.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_merge.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_post_process.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_ps1_encoding.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_registrar_path_traversal.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_resolve_template_python_parity.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_security_workflow.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_setup_plan_feature_json.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_setup_plan_no_overwrite.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_setup_plan_python_parity.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_setup_tasks.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_setup_tasks_python_parity.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_shared_infra_gitignore.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_shared_infra_integrity.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_skill_placeholder_py.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_specify_template_numbering.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_tasks_template_constraints.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_timestamp_branches.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_utils.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/test_utils_assets_imports.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/workflows/conftest.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/tests/workflows/test_bundled_speckit_workflow.py +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/workflows/PUBLISHING.md +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/workflows/catalog.community.json +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/workflows/speckit/workflow.yml +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/workflows/step-catalog.community.json +0 -0
- {specify_cli-1.0.8 → specify_cli-1.0.10}/workflows/step-catalog.json +0 -0
|
@@ -0,0 +1,2010 @@
|
|
|
1
|
+
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"cd010d2e1ad38990cb98ea4aa699a30497e5e0003f233cefcfa04c388be1bb85","body_hash":"45982e58c88fe9d6ab93a86e1c26c7eaf9a6b8de5f07998d6940ce9f31e29f71","compiler_version":"v0.88.7","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.80"}}
|
|
2
|
+
# gh-aw-manifest: {"version":1,"secrets":["COPILOT_GITHUB_TOKEN","GH_AW_CI_TRIGGER_TOKEN","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"820762786026740c76f36085b0efc47a31fe5020","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"5e508589e03a7757a7e05b26e834292f5445bfb6","version":"v0.88.7"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.14","digest":"sha256:f7df036c86575527b61f3f7df91c4412349a12b2a74988d929eafa2999230c98","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.14@sha256:f7df036c86575527b61f3f7df91c4412349a12b2a74988d929eafa2999230c98"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.14","digest":"sha256:6f95e2234dd9bd6333a8ff28ccea7ecf0204acd4a09108723844dbd2bf6268c5","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.14@sha256:6f95e2234dd9bd6333a8ff28ccea7ecf0204acd4a09108723844dbd2bf6268c5"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.14","digest":"sha256:2ce8df3abf3e9b76e9c0cf5863da41f1ab3f89b20ad14b988806ab89e7bf2cd5","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.14@sha256:2ce8df3abf3e9b76e9c0cf5863da41f1ab3f89b20ad14b988806ab89e7bf2cd5"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.18","digest":"sha256:85b940556a8faa4e1fdbef124bfd75f2c4ebd855a10b88a1c3b6f3e97f6f1a53","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.18@sha256:85b940556a8faa4e1fdbef124bfd75f2c4ebd855a10b88a1c3b6f3e97f6f1a53"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:0daa8971fa4732b647150cb6524a6b0804b68d5d24f6f58b5dd1af23bd63fb23","pinned_image":"ghcr.io/github/gh-aw-node@sha256:0daa8971fa4732b647150cb6524a6b0804b68d5d24f6f58b5dd1af23bd63fb23"},{"image":"ghcr.io/github/github-mcp-server:v1.11.0","digest":"sha256:fbec75de11c255213fa08d80fb166abe73d851fff631c51c0079872967720699","pinned_image":"ghcr.io/github/github-mcp-server:v1.11.0@sha256:fbec75de11c255213fa08d80fb166abe73d851fff631c51c0079872967720699"}],"mcp_servers":[{"name":"github","tools":["get_commit","get_file_contents","get_latest_release","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_releases","list_starred_repositories","list_tags","search_code","search_issues","search_repositories"]},{"name":"safeoutputs","tools":["add_comment","add_labels","create_pull_request","missing_data","missing_tool","noop","remove_labels"]}]}
|
|
3
|
+
# This file was automatically generated by gh-aw (v0.88.7). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
|
|
4
|
+
#
|
|
5
|
+
# ___ _ _
|
|
6
|
+
# / _ \ | | (_)
|
|
7
|
+
# | |_| | __ _ ___ _ __ | |_ _ ___
|
|
8
|
+
# | _ |/ _` |/ _ \ '_ \| __| |/ __|
|
|
9
|
+
# | | | | (_| | __/ | | | |_| | (__
|
|
10
|
+
# \_| |_/\__, |\___|_| |_|\__|_|\___|
|
|
11
|
+
# __/ |
|
|
12
|
+
# _ _ |___/
|
|
13
|
+
# | | | | / _| |
|
|
14
|
+
# | | | | ___ _ __ _ __| |_| | _____ ____
|
|
15
|
+
# | |/\| |/ _ \ '__| |/ /| _| |/ _ \ \ /\ / / ___|
|
|
16
|
+
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
|
|
17
|
+
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
|
|
18
|
+
#
|
|
19
|
+
#
|
|
20
|
+
# To update this file, edit the corresponding .md file and run:
|
|
21
|
+
# gh aw compile
|
|
22
|
+
# Not all edits will cause changes to this file.
|
|
23
|
+
#
|
|
24
|
+
# For more information: https://github.github.com/gh-aw/introduction/overview/
|
|
25
|
+
#
|
|
26
|
+
# Process community bundle submission issues - validate, add to catalog, and open a PR for maintainer review
|
|
27
|
+
#
|
|
28
|
+
# Secrets used:
|
|
29
|
+
# - COPILOT_GITHUB_TOKEN
|
|
30
|
+
# - GH_AW_CI_TRIGGER_TOKEN
|
|
31
|
+
# - GH_AW_DEFAULT_OTLP_HEADERS
|
|
32
|
+
# - GH_AW_GITHUB_MCP_SERVER_TOKEN
|
|
33
|
+
# - GH_AW_GITHUB_TOKEN
|
|
34
|
+
# - GITHUB_TOKEN
|
|
35
|
+
#
|
|
36
|
+
# Custom actions used:
|
|
37
|
+
# - actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
38
|
+
# - actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
39
|
+
# - actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
40
|
+
# - actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
41
|
+
# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
42
|
+
# - actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 (source v9)
|
|
43
|
+
# - actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
44
|
+
# - actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
45
|
+
# - github/gh-aw-actions/setup@5e508589e03a7757a7e05b26e834292f5445bfb6 # v0.88.7
|
|
46
|
+
#
|
|
47
|
+
# Container images used:
|
|
48
|
+
# - ghcr.io/github/gh-aw-firewall/agent:0.28.14@sha256:f7df036c86575527b61f3f7df91c4412349a12b2a74988d929eafa2999230c98
|
|
49
|
+
# - ghcr.io/github/gh-aw-firewall/api-proxy:0.28.14@sha256:6f95e2234dd9bd6333a8ff28ccea7ecf0204acd4a09108723844dbd2bf6268c5
|
|
50
|
+
# - ghcr.io/github/gh-aw-firewall/squid:0.28.14@sha256:2ce8df3abf3e9b76e9c0cf5863da41f1ab3f89b20ad14b988806ab89e7bf2cd5
|
|
51
|
+
# - ghcr.io/github/gh-aw-mcpg:v0.4.18@sha256:85b940556a8faa4e1fdbef124bfd75f2c4ebd855a10b88a1c3b6f3e97f6f1a53
|
|
52
|
+
# - ghcr.io/github/gh-aw-node@sha256:0daa8971fa4732b647150cb6524a6b0804b68d5d24f6f58b5dd1af23bd63fb23
|
|
53
|
+
# - ghcr.io/github/github-mcp-server:v1.11.0@sha256:fbec75de11c255213fa08d80fb166abe73d851fff631c51c0079872967720699
|
|
54
|
+
|
|
55
|
+
name: "Add Community Bundle from Issue Submission"
|
|
56
|
+
on:
|
|
57
|
+
issues:
|
|
58
|
+
# names: # Label filtering applied via job conditions
|
|
59
|
+
# - bundle-submission # Label filtering applied via job conditions
|
|
60
|
+
types:
|
|
61
|
+
- labeled
|
|
62
|
+
# skip-bots: # Skip-bots processed as bot check in pre-activation job
|
|
63
|
+
# - github-actions # Skip-bots processed as bot check in pre-activation job
|
|
64
|
+
# - copilot # Skip-bots processed as bot check in pre-activation job
|
|
65
|
+
# - dependabot # Skip-bots processed as bot check in pre-activation job
|
|
66
|
+
|
|
67
|
+
permissions: {}
|
|
68
|
+
|
|
69
|
+
concurrency:
|
|
70
|
+
group: "gh-aw-${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}"
|
|
71
|
+
queue: max
|
|
72
|
+
|
|
73
|
+
run-name: "Add Community Bundle from Issue Submission"
|
|
74
|
+
|
|
75
|
+
env:
|
|
76
|
+
OTEL_EXPORTER_OTLP_ENDPOINT: ${{ vars.GH_AW_DEFAULT_OTLP_ENDPOINT }}
|
|
77
|
+
OTEL_SERVICE_NAME: gh-aw.add-community-bundle
|
|
78
|
+
OTEL_RESOURCE_ATTRIBUTES: 'gh-aw.workflow.name=Add%20Community%20Bundle%20from%20Issue%20Submission,gh-aw.repository=${{ github.repository }},gh-aw.run.id=${{ github.run_id }},github.run_id=${{ github.run_id }},gh-aw.engine.id=copilot'
|
|
79
|
+
OTEL_EXPORTER_OTLP_HEADERS: ${{ secrets.GH_AW_DEFAULT_OTLP_HEADERS }}
|
|
80
|
+
GH_AW_OTLP_ENDPOINTS: '[{"url":"${{ vars.GH_AW_DEFAULT_OTLP_ENDPOINT }}","headers":"${{ secrets.GH_AW_DEFAULT_OTLP_HEADERS }}"}]'
|
|
81
|
+
GH_AW_OTLP_IF_MISSING: ignore
|
|
82
|
+
|
|
83
|
+
jobs:
|
|
84
|
+
activation:
|
|
85
|
+
needs: pre_activation
|
|
86
|
+
if: >
|
|
87
|
+
needs.pre_activation.outputs.activated == 'true' && (github.event_name != 'issues' || github.event.action != 'labeled' ||
|
|
88
|
+
github.event.label.name == 'bundle-submission')
|
|
89
|
+
runs-on: ubuntu-slim
|
|
90
|
+
permissions:
|
|
91
|
+
actions: read
|
|
92
|
+
contents: read
|
|
93
|
+
env:
|
|
94
|
+
GH_AW_MAX_DAILY_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_MAX_DAILY_AI_CREDITS || '5000' }}
|
|
95
|
+
GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}
|
|
96
|
+
outputs:
|
|
97
|
+
body: ${{ steps.sanitized.outputs.body }}
|
|
98
|
+
comment_id: ""
|
|
99
|
+
comment_repo: ""
|
|
100
|
+
daily_ai_credits_exceeded: ${{ steps.daily-effective-workflow-guardrail.outputs.daily_ai_credits_exceeded == 'true' }}
|
|
101
|
+
daily_ai_credits_guardrail_status: ${{ steps.daily-effective-workflow-guardrail.outputs.daily_ai_credits_guardrail_status || '' }}
|
|
102
|
+
daily_ai_credits_threshold: ${{ steps.daily-effective-workflow-guardrail.outputs.daily_ai_credits_threshold || '' }}
|
|
103
|
+
daily_ai_credits_total_effective_tokens: ${{ steps.daily-effective-workflow-guardrail.outputs.daily_ai_credits_total_effective_tokens || '' }}
|
|
104
|
+
engine_id: ${{ steps.generate_aw_info.outputs.engine_id }}
|
|
105
|
+
lockdown_check_failed: ${{ steps.generate_aw_info.outputs.lockdown_check_failed == 'true' }}
|
|
106
|
+
model: ${{ steps.generate_aw_info.outputs.model }}
|
|
107
|
+
oauth_token_check_failed: ${{ steps.check-oauth-tokens.outputs.oauth_token_check_failed == 'true' }}
|
|
108
|
+
secret_verification_result: ${{ steps.validate-secret.outputs.verification_result }}
|
|
109
|
+
setup-parent-span-id: ${{ steps.setup.outputs.parent-span-id || steps.setup.outputs.span-id }}
|
|
110
|
+
setup-span-id: ${{ steps.setup.outputs.span-id }}
|
|
111
|
+
setup-trace-id: ${{ steps.setup.outputs.trace-id }}
|
|
112
|
+
stale_lock_file_failed: ${{ steps.check-lock-file.outputs.stale_lock_file_failed == 'true' }}
|
|
113
|
+
text: ${{ steps.sanitized.outputs.text }}
|
|
114
|
+
title: ${{ steps.sanitized.outputs.title }}
|
|
115
|
+
steps:
|
|
116
|
+
- name: Setup Scripts
|
|
117
|
+
id: setup
|
|
118
|
+
uses: github/gh-aw-actions/setup@5e508589e03a7757a7e05b26e834292f5445bfb6 # v0.88.7
|
|
119
|
+
with:
|
|
120
|
+
destination: ${{ runner.temp }}/gh-aw/actions
|
|
121
|
+
job-name: ${{ github.job }}
|
|
122
|
+
trace-id: ${{ needs.pre_activation.outputs.setup-trace-id }}
|
|
123
|
+
parent-span-id: ${{ needs.pre_activation.outputs.setup-parent-span-id || needs.pre_activation.outputs.setup-span-id }}
|
|
124
|
+
safe-output-artifact-client: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}
|
|
125
|
+
env:
|
|
126
|
+
GH_AW_SETUP_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
127
|
+
GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/add-community-bundle.lock.yml@${{ github.ref }}
|
|
128
|
+
GH_AW_INFO_VERSION: "1.0.80"
|
|
129
|
+
GH_AW_INFO_AWF_VERSION: "v0.28.14"
|
|
130
|
+
GH_AW_INFO_ENGINE_ID: "copilot"
|
|
131
|
+
- name: Mask OTLP telemetry headers
|
|
132
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/mask_otlp_headers.sh"
|
|
133
|
+
- name: Generate agentic run info
|
|
134
|
+
id: generate_aw_info
|
|
135
|
+
env:
|
|
136
|
+
GH_AW_INFO_ENGINE_ID: "copilot"
|
|
137
|
+
GH_AW_INFO_ENGINE_NAME: "GitHub Copilot CLI"
|
|
138
|
+
GH_AW_INFO_MODEL: ${{ vars.GH_AW_MODEL_AGENT_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'auto' }}
|
|
139
|
+
GH_AW_INFO_VERSION: "1.0.80"
|
|
140
|
+
GH_AW_INFO_AGENT_VERSION: "1.0.80"
|
|
141
|
+
GH_AW_INFO_CLI_VERSION: "v0.88.7"
|
|
142
|
+
GH_AW_INFO_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
143
|
+
GH_AW_INFO_EXPERIMENTAL: "false"
|
|
144
|
+
GH_AW_INFO_SUPPORTS_TOOLS_ALLOWLIST: "true"
|
|
145
|
+
GH_AW_INFO_STAGED: "false"
|
|
146
|
+
GH_AW_INFO_ALLOWED_DOMAINS: '["defaults","github.com","release-assets.githubusercontent.com"]'
|
|
147
|
+
GH_AW_INFO_FIREWALL_ENABLED: "true"
|
|
148
|
+
GH_AW_INFO_AWF_VERSION: "v0.28.14"
|
|
149
|
+
GH_AW_INFO_AWMG_VERSION: ""
|
|
150
|
+
GH_AW_INFO_FIREWALL_TYPE: "squid"
|
|
151
|
+
GH_AW_INFO_AGENT_RUNTIME: ""
|
|
152
|
+
GH_AW_INFO_FRONTMATTER_EMOJI: "📦"
|
|
153
|
+
GH_AW_COMPILED_STRICT: "true"
|
|
154
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
155
|
+
with:
|
|
156
|
+
script: |
|
|
157
|
+
const path = require('path');
|
|
158
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
159
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
160
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
161
|
+
const { main } = require(path.join(actionsDir, 'generate_aw_info.cjs'));
|
|
162
|
+
await main(core, context);
|
|
163
|
+
- name: Restore daily AIC usage cache
|
|
164
|
+
id: restore-daily-aic-cache
|
|
165
|
+
if: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}
|
|
166
|
+
continue-on-error: true
|
|
167
|
+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
168
|
+
with:
|
|
169
|
+
key: agentic-workflow-usage-addcommunitybundle-${{ github.run_id }}
|
|
170
|
+
restore-keys: agentic-workflow-usage-addcommunitybundle-
|
|
171
|
+
path: /tmp/gh-aw/agentic-workflow-usage-cache.jsonl
|
|
172
|
+
- name: Restore daily AIC usage cache (artifact fallback)
|
|
173
|
+
id: restore-daily-aic-cache-fallback
|
|
174
|
+
if: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}
|
|
175
|
+
continue-on-error: true
|
|
176
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
177
|
+
env:
|
|
178
|
+
GH_AW_RESTORE_DAILY_AIC_CACHE_HIT: ${{ steps.restore-daily-aic-cache.outputs.cache-hit }}
|
|
179
|
+
GH_AW_RESTORE_DAILY_AIC_CACHE_MATCHED_KEY: ${{ steps.restore-daily-aic-cache.outputs.cache-matched-key }}
|
|
180
|
+
with:
|
|
181
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
182
|
+
script: |
|
|
183
|
+
const path = require('path');
|
|
184
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
185
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
186
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
187
|
+
const { main } = require(path.join(actionsDir, 'restore_aic_usage_cache_fallback.cjs'));
|
|
188
|
+
await main();
|
|
189
|
+
- name: Check daily workflow token guardrail
|
|
190
|
+
id: daily-effective-workflow-guardrail
|
|
191
|
+
if: ${{ env.GH_AW_MAX_DAILY_AI_CREDITS != '' }}
|
|
192
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
193
|
+
env:
|
|
194
|
+
GH_AW_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
195
|
+
GH_AW_WORKFLOW_ID: "add-community-bundle"
|
|
196
|
+
GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
197
|
+
GH_AW_WORKFLOW_DISPATCH_AW_CONTEXT: ${{ github.event.inputs.aw_context || '' }}
|
|
198
|
+
GH_AW_HAS_SLASH_COMMAND: "false"
|
|
199
|
+
GH_AW_HAS_LABEL_COMMAND: "false"
|
|
200
|
+
GH_AW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
201
|
+
GH_AW_MAX_DAILY_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_MAX_DAILY_AI_CREDITS || '5000' }}
|
|
202
|
+
with:
|
|
203
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
204
|
+
script: |
|
|
205
|
+
const path = require('path');
|
|
206
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
207
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
208
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
209
|
+
const { main } = require(path.join(actionsDir, 'check_daily_aic_workflow_guardrail.cjs'));
|
|
210
|
+
await main();
|
|
211
|
+
- name: Validate COPILOT_GITHUB_TOKEN secret
|
|
212
|
+
id: validate-secret
|
|
213
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/validate_multi_secret.sh" COPILOT_GITHUB_TOKEN 'GitHub Copilot CLI' https://github.github.com/gh-aw/reference/engines/#github-copilot-default
|
|
214
|
+
env:
|
|
215
|
+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
|
|
216
|
+
- name: Check for OAuth tokens
|
|
217
|
+
id: check-oauth-tokens
|
|
218
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/check_oauth_tokens.sh"
|
|
219
|
+
env:
|
|
220
|
+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
|
|
221
|
+
GH_AW_GITHUB_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN }}
|
|
222
|
+
GH_AW_GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }}
|
|
223
|
+
- name: Checkout .github and .agents folders
|
|
224
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
225
|
+
with:
|
|
226
|
+
persist-credentials: false
|
|
227
|
+
sparse-checkout: |
|
|
228
|
+
.github
|
|
229
|
+
.agents
|
|
230
|
+
.claude
|
|
231
|
+
.codex
|
|
232
|
+
.gemini
|
|
233
|
+
.pi
|
|
234
|
+
sparse-checkout-cone-mode: true
|
|
235
|
+
fetch-depth: 1
|
|
236
|
+
- name: Save agent config folders for base branch restoration
|
|
237
|
+
env:
|
|
238
|
+
GH_AW_AGENT_FOLDERS: ".agents .github"
|
|
239
|
+
GH_AW_AGENT_FILES: "AGENTS.md"
|
|
240
|
+
run: |
|
|
241
|
+
bash "${RUNNER_TEMP}/gh-aw/actions/save_base_github_folders.sh"
|
|
242
|
+
- name: Check workflow lock file
|
|
243
|
+
id: check-lock-file
|
|
244
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
245
|
+
env:
|
|
246
|
+
GH_AW_WORKFLOW_FILE: "add-community-bundle.lock.yml"
|
|
247
|
+
GH_AW_CONTEXT_WORKFLOW_REF: "${{ github.workflow_ref }}"
|
|
248
|
+
with:
|
|
249
|
+
script: |
|
|
250
|
+
const path = require('path');
|
|
251
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
252
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
253
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
254
|
+
const { main } = require(path.join(actionsDir, 'check_workflow_timestamp_api.cjs'));
|
|
255
|
+
await main();
|
|
256
|
+
- name: Check compile-agentic version
|
|
257
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
258
|
+
env:
|
|
259
|
+
GH_AW_COMPILED_VERSION: "v0.88.7"
|
|
260
|
+
with:
|
|
261
|
+
script: |
|
|
262
|
+
const path = require('path');
|
|
263
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
264
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
265
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
266
|
+
const { main } = require(path.join(actionsDir, 'check_version_updates.cjs'));
|
|
267
|
+
await main();
|
|
268
|
+
- name: Compute current body text
|
|
269
|
+
id: sanitized
|
|
270
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
271
|
+
env:
|
|
272
|
+
GH_AW_ALLOWED_DOMAINS: "api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,release-assets.githubusercontent.com,s.symcb.com,s.symcd.com,security.ubuntu.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"
|
|
273
|
+
with:
|
|
274
|
+
script: |
|
|
275
|
+
const path = require('path');
|
|
276
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
277
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
278
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
279
|
+
const { main } = require(path.join(actionsDir, 'compute_text.cjs'));
|
|
280
|
+
await main();
|
|
281
|
+
- name: Log runtime features
|
|
282
|
+
if: ${{ contains(toJSON(vars), '"GH_AW_RUNTIME_FEATURES":') }}
|
|
283
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/log_runtime_features_summary.sh"
|
|
284
|
+
- name: Create prompt with built-in context
|
|
285
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
286
|
+
env:
|
|
287
|
+
GH_AW_ACTIONS_DIR: ${{ runner.temp }}/gh-aw/actions
|
|
288
|
+
GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txt
|
|
289
|
+
GH_AW_SAFE_OUTPUTS: ${{ runner.temp }}/gh-aw/safeoutputs/outputs.jsonl
|
|
290
|
+
GH_AW_PROMPT_CONFIG: "{\"items\":[{\"content_env\":\"GH_AW_PROMPT_CONTENT_0000\"},{\"file\":\"xpia.md\"},{\"file\":\"temp_folder_prompt.md\"},{\"file\":\"markdown.md\"},{\"file\":\"safe_outputs_prompt.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0001\"},{\"file\":\"safe_outputs_create_pull_request.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0002\"},{\"file\":\"mcp_cli_tools_with_safeoutputs_prompt.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0003\"},{\"file\":\"github_mcp_tools_with_safeoutputs_prompt.md\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0004\"},{\"content_env\":\"GH_AW_PROMPT_CONTENT_0005\"}]}"
|
|
291
|
+
GH_AW_EXPR_1A3A194A: ${{ github.event.discussion.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'discussion' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}
|
|
292
|
+
GH_AW_EXPR_463A214A: ${{ github.event.pull_request.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'pull_request' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}
|
|
293
|
+
GH_AW_EXPR_802A9F6A: ${{ github.event.issue.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'issue' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}
|
|
294
|
+
GH_AW_EXPR_FF1D34CE: ${{ github.event.comment.id || fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').comment_id }}
|
|
295
|
+
GH_AW_GITHUB_ACTOR: ${{ github.actor }}
|
|
296
|
+
GH_AW_GITHUB_EVENT_ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
297
|
+
GH_AW_GITHUB_REPOSITORY: ${{ github.repository }}
|
|
298
|
+
GH_AW_GITHUB_RUN_ID: ${{ github.run_id }}
|
|
299
|
+
GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }}
|
|
300
|
+
GH_AW_PROMPT_CONTENT_0000: "<system>\n"
|
|
301
|
+
GH_AW_PROMPT_CONTENT_0001: "<safe-output-tools>\nTools: add_comment(max:2), create_pull_request, add_labels(max:3), remove_labels, missing_tool, missing_data, noop\n"
|
|
302
|
+
GH_AW_PROMPT_CONTENT_0002: "</safe-output-tools>\n"
|
|
303
|
+
GH_AW_PROMPT_CONTENT_0003: "<github-context>\nThe following GitHub context information is available for this workflow:\n{{#if github.actor}}\n- **actor**: __GH_AW_GITHUB_ACTOR__\n{{/if}}\n{{#if github.repository}}\n- **repository**: __GH_AW_GITHUB_REPOSITORY__\n{{/if}}\n{{#if github.workspace}}\n- **workspace**: __GH_AW_GITHUB_WORKSPACE__\n{{/if}}\n{{#if github.event.issue.number || (github.aw.context.item_type == 'issue' && github.aw.context.item_number)}}\n- **issue-number**: #__GH_AW_EXPR_802A9F6A__\n{{/if}}\n{{#if github.event.discussion.number || (github.aw.context.item_type == 'discussion' && github.aw.context.item_number)}}\n- **discussion-number**: #__GH_AW_EXPR_1A3A194A__\n{{/if}}\n{{#if github.event.pull_request.number || (github.aw.context.item_type == 'pull_request' && github.aw.context.item_number)}}\n- **pull-request-number**: #__GH_AW_EXPR_463A214A__\n{{/if}}\n{{#if github.event.comment.id || github.aw.context.comment_id}}\n- **comment-id**: __GH_AW_EXPR_FF1D34CE__\n{{/if}}\n{{#if github.run_id}}\n- **workflow-run-id**: __GH_AW_GITHUB_RUN_ID__\n{{/if}}\n- **checkouts**: The following repositories have been checked out and are available in the workspace:\n - repo `__GH_AW_GITHUB_REPOSITORY__` → `$GITHUB_WORKSPACE` (cwd) [full history, all branches available as remote-tracking refs]\n - **Note**: If a branch you need is not in the list above and is not listed as an additional fetched ref, it has NOT been checked out. For private repositories you cannot fetch it. If the branch is required and not available, exit with an error and ask the user to add it to the `fetch:` option of the `checkout:` configuration (e.g., `fetch: [\"refs/pulls/open/*\"]` for all open PR refs, or `fetch: [\"main\", \"feature/my-branch\"]` for specific branches).\n - **Warning: No git credentials are available to the agent.** Credentials are\n intentionally removed after the checkout step for security. This means any git\n operation that needs to authenticate to the remote will fail. In private repositories, that includes:\n - `git fetch`, `git pull`, `git clone`, and `git push` (direct push, not via safe-output tools)\n - Checking out or switching to a remote branch that is not already fetched\n - Deepening a shallow clone (`git fetch --unshallow`)\n - On-demand blob fetches in partial/blobless clones (operations on files not in the initial checkout)\n Do NOT attempt to configure credentials, run `git credential fill`, or modify `.gitconfig` —\n authentication will not succeed. If you encounter credential prompts or authentication errors,\n stop immediately and report the limitation rather than spending turns trying to work around it.\n</github-context>\n\n"
|
|
304
|
+
GH_AW_PROMPT_CONTENT_0004: "</system>\n"
|
|
305
|
+
GH_AW_PROMPT_CONTENT_0005: "{{#runtime-import .github/workflows/add-community-bundle.md}}\n"
|
|
306
|
+
with:
|
|
307
|
+
script: |
|
|
308
|
+
const { setupGlobals } = require(process.env.GH_AW_ACTIONS_DIR + '/setup_globals.cjs');
|
|
309
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
310
|
+
const { main } = require(process.env.GH_AW_ACTIONS_DIR + '/create_prompt.cjs');
|
|
311
|
+
await main(core);
|
|
312
|
+
- name: Interpolate variables and render templates
|
|
313
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
314
|
+
env:
|
|
315
|
+
GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txt
|
|
316
|
+
GH_AW_ENGINE_ID: "copilot"
|
|
317
|
+
GH_AW_GITHUB_EVENT_ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
318
|
+
with:
|
|
319
|
+
script: |
|
|
320
|
+
const path = require('path');
|
|
321
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
322
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
323
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
324
|
+
const { main } = require(path.join(actionsDir, 'interpolate_prompt.cjs'));
|
|
325
|
+
await main();
|
|
326
|
+
- name: Substitute placeholders
|
|
327
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
328
|
+
env:
|
|
329
|
+
GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txt
|
|
330
|
+
GH_AW_EXPR_1A3A194A: ${{ github.event.discussion.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'discussion' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}
|
|
331
|
+
GH_AW_EXPR_463A214A: ${{ github.event.pull_request.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'pull_request' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}
|
|
332
|
+
GH_AW_EXPR_802A9F6A: ${{ github.event.issue.number || (fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_type == 'issue' && fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').item_number) }}
|
|
333
|
+
GH_AW_EXPR_FF1D34CE: ${{ github.event.comment.id || fromJSON(github.event.inputs.aw_context || github.event.client_payload.aw_context || '{}').comment_id }}
|
|
334
|
+
GH_AW_GITHUB_ACTOR: ${{ github.actor }}
|
|
335
|
+
GH_AW_GITHUB_EVENT_ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
336
|
+
GH_AW_GITHUB_REPOSITORY: ${{ github.repository }}
|
|
337
|
+
GH_AW_GITHUB_RUN_ID: ${{ github.run_id }}
|
|
338
|
+
GH_AW_GITHUB_WORKSPACE: ${{ github.workspace }}
|
|
339
|
+
GH_AW_MCP_CLI_SERVERS_LIST: "- `github` — run `github --help` to see available tools\n- `safeoutputs` — run `safeoutputs --help` to see available tools"
|
|
340
|
+
GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED: ${{ needs.pre_activation.outputs.activated }}
|
|
341
|
+
with:
|
|
342
|
+
script: |
|
|
343
|
+
const path = require('path');
|
|
344
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
345
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
346
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
347
|
+
|
|
348
|
+
const substitutePlaceholders = require(path.join(actionsDir, 'substitute_placeholders.cjs'));
|
|
349
|
+
|
|
350
|
+
// Call the substitution function
|
|
351
|
+
return await substitutePlaceholders({
|
|
352
|
+
file: process.env.GH_AW_PROMPT,
|
|
353
|
+
substitutions: {
|
|
354
|
+
GH_AW_EXPR_1A3A194A: process.env.GH_AW_EXPR_1A3A194A,
|
|
355
|
+
GH_AW_EXPR_463A214A: process.env.GH_AW_EXPR_463A214A,
|
|
356
|
+
GH_AW_EXPR_802A9F6A: process.env.GH_AW_EXPR_802A9F6A,
|
|
357
|
+
GH_AW_EXPR_FF1D34CE: process.env.GH_AW_EXPR_FF1D34CE,
|
|
358
|
+
GH_AW_GITHUB_ACTOR: process.env.GH_AW_GITHUB_ACTOR,
|
|
359
|
+
GH_AW_GITHUB_EVENT_ISSUE_NUMBER: process.env.GH_AW_GITHUB_EVENT_ISSUE_NUMBER,
|
|
360
|
+
GH_AW_GITHUB_REPOSITORY: process.env.GH_AW_GITHUB_REPOSITORY,
|
|
361
|
+
GH_AW_GITHUB_RUN_ID: process.env.GH_AW_GITHUB_RUN_ID,
|
|
362
|
+
GH_AW_GITHUB_WORKSPACE: process.env.GH_AW_GITHUB_WORKSPACE,
|
|
363
|
+
GH_AW_MCP_CLI_SERVERS_LIST: process.env.GH_AW_MCP_CLI_SERVERS_LIST,
|
|
364
|
+
GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED: process.env.GH_AW_NEEDS_PRE_ACTIVATION_OUTPUTS_ACTIVATED
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
- name: Validate prompt placeholders
|
|
368
|
+
env:
|
|
369
|
+
GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txt
|
|
370
|
+
run: |
|
|
371
|
+
bash "${RUNNER_TEMP}/gh-aw/actions/validate_prompt_placeholders.sh"
|
|
372
|
+
- name: Print prompt
|
|
373
|
+
env:
|
|
374
|
+
GH_AW_PROMPT: ${{ runner.temp }}/gh-aw/aw-prompts/prompt.txt
|
|
375
|
+
run: |
|
|
376
|
+
bash "${RUNNER_TEMP}/gh-aw/actions/print_prompt_summary.sh"
|
|
377
|
+
- name: Stage prompt files for artifact upload
|
|
378
|
+
run: |
|
|
379
|
+
mkdir -p /tmp/gh-aw/aw-prompts
|
|
380
|
+
cp -a "${RUNNER_TEMP}/gh-aw/aw-prompts/." /tmp/gh-aw/aw-prompts/
|
|
381
|
+
- name: Upload activation artifact
|
|
382
|
+
if: success() || failure()
|
|
383
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
384
|
+
with:
|
|
385
|
+
name: activation
|
|
386
|
+
include-hidden-files: true
|
|
387
|
+
path: |
|
|
388
|
+
/tmp/gh-aw/aw_info.json
|
|
389
|
+
/tmp/gh-aw/models.json
|
|
390
|
+
/tmp/gh-aw/aw-prompts/prompt.txt
|
|
391
|
+
/tmp/gh-aw/aw-prompts/prompt-template.txt
|
|
392
|
+
/tmp/gh-aw/aw-prompts/prompt-import-tree.json
|
|
393
|
+
/tmp/gh-aw/github_rate_limits.jsonl
|
|
394
|
+
/tmp/gh-aw/base
|
|
395
|
+
/tmp/gh-aw/.github/agents
|
|
396
|
+
/tmp/gh-aw/.github/skills
|
|
397
|
+
if-no-files-found: ignore
|
|
398
|
+
retention-days: 1
|
|
399
|
+
|
|
400
|
+
agent:
|
|
401
|
+
needs: activation
|
|
402
|
+
if: needs.activation.outputs.daily_ai_credits_exceeded != 'true'
|
|
403
|
+
runs-on: ubuntu-latest
|
|
404
|
+
permissions:
|
|
405
|
+
contents: read
|
|
406
|
+
issues: read
|
|
407
|
+
timeout-minutes: 60
|
|
408
|
+
env:
|
|
409
|
+
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
|
|
410
|
+
GH_AW_ASSETS_ALLOWED_EXTS: ""
|
|
411
|
+
GH_AW_ASSETS_BRANCH: ""
|
|
412
|
+
GH_AW_ASSETS_MAX_SIZE_KB: 0
|
|
413
|
+
GH_AW_MCP_LOG_DIR: /tmp/gh-aw/mcp-logs/safeoutputs
|
|
414
|
+
GH_AW_PR_HEAD_BASE_BRANCH: ""
|
|
415
|
+
GH_AW_PR_HEAD_BASE_PR_NUMBER: ""
|
|
416
|
+
GH_AW_PR_HEAD_BASE_REF: ""
|
|
417
|
+
GH_AW_PR_HEAD_BASE_REPO: ""
|
|
418
|
+
GH_AW_PR_HEAD_BASE_SHA: ""
|
|
419
|
+
GH_AW_PR_HEAD_REPO: ""
|
|
420
|
+
GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}
|
|
421
|
+
GH_AW_WORKFLOW_ID_SANITIZED: addcommunitybundle
|
|
422
|
+
outputs:
|
|
423
|
+
agentic_engine_timeout: ${{ steps.detect-agent-errors.outputs.agentic_engine_timeout || 'false' }}
|
|
424
|
+
ai_credits_rate_limit_error: ${{ steps.parse-mcp-gateway.outputs.ai_credits_rate_limit_error || 'false' }}
|
|
425
|
+
aic: ${{ steps.parse-mcp-gateway.outputs.aic }}
|
|
426
|
+
ambient_context: ${{ steps.parse-mcp-gateway.outputs.ambient_context }}
|
|
427
|
+
checkout_pr_success: ${{ steps.checkout-pr.outputs.checkout_pr_success || 'true' }}
|
|
428
|
+
effective_tokens: ${{ steps.parse-mcp-gateway.outputs.effective_tokens }}
|
|
429
|
+
has_patch: ${{ steps.collect_output.outputs.has_patch }}
|
|
430
|
+
http_400_response_error: ${{ steps.detect-agent-errors.outputs.http_400_response_error || 'false' }}
|
|
431
|
+
inference_access_error: ${{ steps.detect-agent-errors.outputs.inference_access_error || 'false' }}
|
|
432
|
+
invocation_cap_exceeded: ${{ steps.detect-agent-errors.outputs.invocation_cap_exceeded || 'false' }}
|
|
433
|
+
max_cache_misses_exceeded: ${{ steps.detect-agent-errors.outputs.max_cache_misses_exceeded || 'false' }}
|
|
434
|
+
mcp_policy_error: ${{ steps.detect-agent-errors.outputs.mcp_policy_error || 'false' }}
|
|
435
|
+
missing_model_pricing_error: ${{ steps.detect-agent-errors.outputs.missing_model_pricing_error || 'false' }}
|
|
436
|
+
missing_model_pricing_model_name: ${{ steps.detect-agent-errors.outputs.missing_model_pricing_model_name || '' }}
|
|
437
|
+
model: ${{ needs.activation.outputs.model }}
|
|
438
|
+
model_not_supported_error: ${{ steps.detect-agent-errors.outputs.model_not_supported_error || 'false' }}
|
|
439
|
+
output: ${{ steps.collect_output.outputs.output }}
|
|
440
|
+
output_types: ${{ steps.collect_output.outputs.output_types }}
|
|
441
|
+
setup-parent-span-id: ${{ steps.setup.outputs.parent-span-id || steps.setup.outputs.span-id }}
|
|
442
|
+
setup-span-id: ${{ steps.setup.outputs.span-id }}
|
|
443
|
+
setup-trace-id: ${{ steps.setup.outputs.trace-id }}
|
|
444
|
+
shell_expansion_guard_rejected: ${{ steps.detect-agent-errors.outputs.shell_expansion_guard_rejected || 'false' }}
|
|
445
|
+
unknown_model_ai_credits: ${{ steps.parse-mcp-gateway.outputs.unknown_model_ai_credits || 'false' }}
|
|
446
|
+
steps:
|
|
447
|
+
- name: Setup Scripts
|
|
448
|
+
id: setup
|
|
449
|
+
uses: github/gh-aw-actions/setup@5e508589e03a7757a7e05b26e834292f5445bfb6 # v0.88.7
|
|
450
|
+
with:
|
|
451
|
+
destination: ${{ runner.temp }}/gh-aw/actions
|
|
452
|
+
job-name: ${{ github.job }}
|
|
453
|
+
trace-id: ${{ needs.activation.outputs.setup-trace-id }}
|
|
454
|
+
parent-span-id: ${{ needs.activation.outputs.setup-parent-span-id || needs.activation.outputs.setup-span-id }}
|
|
455
|
+
env:
|
|
456
|
+
GH_AW_SETUP_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
457
|
+
GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/add-community-bundle.lock.yml@${{ github.ref }}
|
|
458
|
+
GH_AW_INFO_VERSION: "1.0.80"
|
|
459
|
+
GH_AW_INFO_AWF_VERSION: "v0.28.14"
|
|
460
|
+
GH_AW_INFO_ENGINE_ID: "copilot"
|
|
461
|
+
- name: Set runtime paths
|
|
462
|
+
id: set-runtime-paths
|
|
463
|
+
env:
|
|
464
|
+
GH_AW_RUNNER_TOOL_CACHE: ${{ runner.tool_cache }}
|
|
465
|
+
run: |
|
|
466
|
+
if [ -z "${RUNNER_TOOL_CACHE:-}" ]; then
|
|
467
|
+
echo "RUNNER_TOOL_CACHE=${GH_AW_RUNNER_TOOL_CACHE}" >> "$GITHUB_ENV"
|
|
468
|
+
fi
|
|
469
|
+
{
|
|
470
|
+
echo "GH_AW_SAFE_OUTPUTS=${RUNNER_TEMP}/gh-aw/safeoutputs/outputs.jsonl"
|
|
471
|
+
echo "GH_AW_SAFE_OUTPUTS_CONFIG_PATH=${RUNNER_TEMP}/gh-aw/safeoutputs/config.json"
|
|
472
|
+
echo "GH_AW_SAFE_OUTPUTS_TOOLS_PATH=${RUNNER_TEMP}/gh-aw/safeoutputs/tools.json"
|
|
473
|
+
} >> "$GITHUB_OUTPUT"
|
|
474
|
+
- name: Mask OTLP telemetry headers
|
|
475
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/mask_otlp_headers.sh"
|
|
476
|
+
- name: Check OTLP telemetry configuration
|
|
477
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/check_otlp_default_credentials.sh"
|
|
478
|
+
- name: Checkout repository
|
|
479
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
480
|
+
with:
|
|
481
|
+
persist-credentials: false
|
|
482
|
+
fetch-depth: 0
|
|
483
|
+
- name: Create gh-aw temp directory
|
|
484
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/create_gh_aw_tmp_dir.sh"
|
|
485
|
+
- name: Configure gh CLI for GitHub Enterprise
|
|
486
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/configure_gh_for_ghe.sh"
|
|
487
|
+
env:
|
|
488
|
+
GH_TOKEN: ${{ github.token }}
|
|
489
|
+
- name: Download activation artifact
|
|
490
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
491
|
+
with:
|
|
492
|
+
name: activation
|
|
493
|
+
path: /tmp/gh-aw
|
|
494
|
+
- name: Configure Git credentials
|
|
495
|
+
env:
|
|
496
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
497
|
+
GITHUB_SERVER_URL: ${{ github.server_url }}
|
|
498
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
499
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/configure_git_credentials.sh"
|
|
500
|
+
- name: Checkout PR branch
|
|
501
|
+
id: checkout-pr
|
|
502
|
+
if: |
|
|
503
|
+
github.event.pull_request || github.event.issue.pull_request || github.event_name == 'workflow_dispatch' && fromJSON(github.event.inputs.aw_context || '{}').item_type == 'pull_request'
|
|
504
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
505
|
+
env:
|
|
506
|
+
GH_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
507
|
+
with:
|
|
508
|
+
github-token: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
509
|
+
script: |
|
|
510
|
+
const path = require('path');
|
|
511
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
512
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
513
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
514
|
+
const { main } = require(path.join(actionsDir, 'checkout_pr_branch.cjs'));
|
|
515
|
+
await main();
|
|
516
|
+
- name: Install GitHub Copilot CLI
|
|
517
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"
|
|
518
|
+
env:
|
|
519
|
+
GH_HOST: github.com
|
|
520
|
+
GH_AW_COMPILED_VERSION: v0.88.7
|
|
521
|
+
- name: Install AWF binary
|
|
522
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.14 --rootless
|
|
523
|
+
- name: Determine automatic lockdown mode for GitHub MCP Server
|
|
524
|
+
id: determine-automatic-lockdown
|
|
525
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 (source v9)
|
|
526
|
+
env:
|
|
527
|
+
GH_AW_GITHUB_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN }}
|
|
528
|
+
GH_AW_GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }}
|
|
529
|
+
GH_AW_GITHUB_MIN_INTEGRITY: 'none'
|
|
530
|
+
with:
|
|
531
|
+
script: |
|
|
532
|
+
const path = require('path');
|
|
533
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
534
|
+
const determineAutomaticLockdown = require(path.join(actionsDir, 'determine_automatic_lockdown.cjs'));
|
|
535
|
+
await determineAutomaticLockdown(github, context, core);
|
|
536
|
+
- name: Parse integrity filter lists
|
|
537
|
+
id: parse-guard-vars
|
|
538
|
+
env:
|
|
539
|
+
GH_AW_BLOCKED_USERS_VAR: ${{ vars.GH_AW_GITHUB_BLOCKED_USERS || '' }}
|
|
540
|
+
GH_AW_TRUSTED_USERS_VAR: ${{ vars.GH_AW_GITHUB_TRUSTED_USERS || '' }}
|
|
541
|
+
GH_AW_APPROVAL_LABELS_VAR: ${{ vars.GH_AW_GITHUB_APPROVAL_LABELS || '' }}
|
|
542
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/parse_guard_list.sh"
|
|
543
|
+
- name: Restore agent config folders from base branch
|
|
544
|
+
if: steps.checkout-pr.outcome == 'success'
|
|
545
|
+
env:
|
|
546
|
+
GH_AW_AGENT_FOLDERS: ".agents .github"
|
|
547
|
+
GH_AW_AGENT_FILES: "AGENTS.md"
|
|
548
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_base_github_folders.sh"
|
|
549
|
+
- name: Restore inline sub-agents from activation artifact
|
|
550
|
+
env:
|
|
551
|
+
GH_AW_SUB_AGENT_DIR: ".github/agents"
|
|
552
|
+
GH_AW_SUB_AGENT_EXT: ".agent.md"
|
|
553
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_inline_sub_agents.sh"
|
|
554
|
+
- name: Restore inline skills from activation artifact
|
|
555
|
+
env:
|
|
556
|
+
GH_AW_SKILL_DIR: ".github/skills"
|
|
557
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/restore_inline_skills.sh"
|
|
558
|
+
- name: Download container images
|
|
559
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.28.14@sha256:f7df036c86575527b61f3f7df91c4412349a12b2a74988d929eafa2999230c98 ghcr.io/github/gh-aw-firewall/api-proxy:0.28.14@sha256:6f95e2234dd9bd6333a8ff28ccea7ecf0204acd4a09108723844dbd2bf6268c5 ghcr.io/github/gh-aw-firewall/squid:0.28.14@sha256:2ce8df3abf3e9b76e9c0cf5863da41f1ab3f89b20ad14b988806ab89e7bf2cd5 ghcr.io/github/gh-aw-mcpg:v0.4.18@sha256:85b940556a8faa4e1fdbef124bfd75f2c4ebd855a10b88a1c3b6f3e97f6f1a53 ghcr.io/github/gh-aw-node@sha256:0daa8971fa4732b647150cb6524a6b0804b68d5d24f6f58b5dd1af23bd63fb23 ghcr.io/github/github-mcp-server:v1.11.0@sha256:fbec75de11c255213fa08d80fb166abe73d851fff631c51c0079872967720699
|
|
560
|
+
- name: Prepare Safe Outputs Directories
|
|
561
|
+
run: |
|
|
562
|
+
mkdir -p "${RUNNER_TEMP}/gh-aw/safeoutputs"
|
|
563
|
+
mkdir -p /tmp/gh-aw/safeoutputs
|
|
564
|
+
mkdir -p /tmp/gh-aw/mcp-logs/safeoutputs
|
|
565
|
+
- name: Generate Safe Outputs Config
|
|
566
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
567
|
+
env:
|
|
568
|
+
GH_AW_FILE_ROOT: "${{ runner.temp }}/gh-aw"
|
|
569
|
+
GH_AW_FILE_CONFIG: "{\"files\":[{\"path\":\"safeoutputs/config.json\",\"content_env\":\"GH_AW_SAFE_OUTPUTS_CONFIG\"}]}"
|
|
570
|
+
GH_AW_SAFE_OUTPUTS_CONFIG: "{\"add_comment\":{\"max\":2},\"add_labels\":{\"allowed\":[\"bundle-submission\",\"validation-passed\",\"validation-failed\",\"needs-info\"],\"max\":3},\"create_pull_request\":{\"allowed_files\":[\"bundles/catalog.community.json\",\"docs/community/bundles.md\"],\"draft\":true,\"labels\":[\"bundle-submission\",\"automated\"],\"max\":1,\"max_patch_files\":100,\"max_patch_size\":4096,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"CONTRIBUTING.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\"],\"protected_files_policy\":\"blocked\",\"title_prefix\":\"[bundle] \"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"false\"},\"remove_labels\":{\"allowed\":[\"validation-passed\",\"validation-failed\",\"needs-info\"]},\"report_incomplete\":{}}"
|
|
571
|
+
with:
|
|
572
|
+
script: |
|
|
573
|
+
const path = require('path');
|
|
574
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
575
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
576
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
577
|
+
const { main } = require(path.join(actionsDir, 'create_files.cjs'));
|
|
578
|
+
await main();
|
|
579
|
+
- name: Generate Safe Outputs Tools
|
|
580
|
+
env:
|
|
581
|
+
GH_AW_TOOLS_META_JSON: |
|
|
582
|
+
{
|
|
583
|
+
"description_suffixes": {
|
|
584
|
+
"add_comment": " CONSTRAINTS: Maximum 2 comment(s) can be added. Supports reply_to_id for discussion threading.",
|
|
585
|
+
"add_labels": " CONSTRAINTS: Maximum 3 label(s) can be added. Only these labels are allowed: [\"bundle-submission\" \"validation-passed\" \"validation-failed\" \"needs-info\"].",
|
|
586
|
+
"create_pull_request": " CONSTRAINTS: Maximum 1 pull request(s) can be created. Title will be prefixed with \"[bundle] \". Labels [\"bundle-submission\" \"automated\"] will be automatically added. PRs will be created as drafts.",
|
|
587
|
+
"remove_labels": " CONSTRAINTS: Only these labels can be removed: [validation-passed validation-failed needs-info]."
|
|
588
|
+
},
|
|
589
|
+
"repo_params": {},
|
|
590
|
+
"dynamic_tools": []
|
|
591
|
+
}
|
|
592
|
+
GH_AW_VALIDATION_JSON: |
|
|
593
|
+
{
|
|
594
|
+
"add_comment": {
|
|
595
|
+
"defaultMax": 1,
|
|
596
|
+
"fields": {
|
|
597
|
+
"body": {
|
|
598
|
+
"required": true,
|
|
599
|
+
"type": "string",
|
|
600
|
+
"sanitize": true,
|
|
601
|
+
"maxLength": 65000
|
|
602
|
+
},
|
|
603
|
+
"comment_id": {
|
|
604
|
+
"optionalPositiveInteger": true
|
|
605
|
+
},
|
|
606
|
+
"item_number": {
|
|
607
|
+
"issueOrPRNumber": true
|
|
608
|
+
},
|
|
609
|
+
"pr": {
|
|
610
|
+
"issueOrPRNumber": true
|
|
611
|
+
},
|
|
612
|
+
"pr_number": {
|
|
613
|
+
"issueOrPRNumber": true
|
|
614
|
+
},
|
|
615
|
+
"reply_to_id": {
|
|
616
|
+
"type": "string",
|
|
617
|
+
"maxLength": 256
|
|
618
|
+
},
|
|
619
|
+
"repo": {
|
|
620
|
+
"type": "string",
|
|
621
|
+
"maxLength": 256
|
|
622
|
+
},
|
|
623
|
+
"target": {
|
|
624
|
+
"type": "string",
|
|
625
|
+
"enum": [
|
|
626
|
+
"status"
|
|
627
|
+
]
|
|
628
|
+
},
|
|
629
|
+
"temporary_id": {
|
|
630
|
+
"type": "string",
|
|
631
|
+
"pattern": "^#?aw_[A-Za-z0-9_]{3,12}$"
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"add_labels": {
|
|
636
|
+
"defaultMax": 5,
|
|
637
|
+
"fields": {
|
|
638
|
+
"item_number": {
|
|
639
|
+
"issueNumberOrTemporaryId": true
|
|
640
|
+
},
|
|
641
|
+
"labels": {
|
|
642
|
+
"required": true,
|
|
643
|
+
"type": "array"
|
|
644
|
+
},
|
|
645
|
+
"repo": {
|
|
646
|
+
"type": "string",
|
|
647
|
+
"maxLength": 256
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
"create_pull_request": {
|
|
652
|
+
"defaultMax": 1,
|
|
653
|
+
"fields": {
|
|
654
|
+
"base": {
|
|
655
|
+
"type": "string",
|
|
656
|
+
"sanitize": true,
|
|
657
|
+
"maxLength": 128
|
|
658
|
+
},
|
|
659
|
+
"body": {
|
|
660
|
+
"required": true,
|
|
661
|
+
"type": "string",
|
|
662
|
+
"sanitize": true,
|
|
663
|
+
"maxLength": 65000
|
|
664
|
+
},
|
|
665
|
+
"branch": {
|
|
666
|
+
"required": true,
|
|
667
|
+
"type": "string",
|
|
668
|
+
"sanitize": true,
|
|
669
|
+
"maxLength": 256
|
|
670
|
+
},
|
|
671
|
+
"dependencies": {
|
|
672
|
+
"type": "array",
|
|
673
|
+
"itemType": "string",
|
|
674
|
+
"itemSanitize": true,
|
|
675
|
+
"itemMaxLength": 256
|
|
676
|
+
},
|
|
677
|
+
"draft": {
|
|
678
|
+
"type": "boolean"
|
|
679
|
+
},
|
|
680
|
+
"labels": {
|
|
681
|
+
"type": "array",
|
|
682
|
+
"itemType": "string",
|
|
683
|
+
"itemSanitize": true,
|
|
684
|
+
"itemMaxLength": 128
|
|
685
|
+
},
|
|
686
|
+
"repo": {
|
|
687
|
+
"type": "string",
|
|
688
|
+
"maxLength": 256
|
|
689
|
+
},
|
|
690
|
+
"stack_position": {
|
|
691
|
+
"optionalPositiveInteger": true
|
|
692
|
+
},
|
|
693
|
+
"stack_root": {
|
|
694
|
+
"type": "string",
|
|
695
|
+
"sanitize": true,
|
|
696
|
+
"maxLength": 256
|
|
697
|
+
},
|
|
698
|
+
"temporary_id": {
|
|
699
|
+
"type": "string",
|
|
700
|
+
"pattern": "^#?aw_[A-Za-z0-9_]{3,12}$"
|
|
701
|
+
},
|
|
702
|
+
"title": {
|
|
703
|
+
"required": true,
|
|
704
|
+
"type": "string",
|
|
705
|
+
"sanitize": true,
|
|
706
|
+
"maxLength": 128
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
"missing_data": {
|
|
711
|
+
"defaultMax": 20,
|
|
712
|
+
"fields": {
|
|
713
|
+
"alternatives": {
|
|
714
|
+
"type": "string",
|
|
715
|
+
"sanitize": true,
|
|
716
|
+
"maxLength": 256
|
|
717
|
+
},
|
|
718
|
+
"context": {
|
|
719
|
+
"type": "string",
|
|
720
|
+
"sanitize": true,
|
|
721
|
+
"maxLength": 256
|
|
722
|
+
},
|
|
723
|
+
"data_type": {
|
|
724
|
+
"type": "string",
|
|
725
|
+
"sanitize": true,
|
|
726
|
+
"maxLength": 128
|
|
727
|
+
},
|
|
728
|
+
"reason": {
|
|
729
|
+
"type": "string",
|
|
730
|
+
"sanitize": true,
|
|
731
|
+
"maxLength": 256
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
"missing_tool": {
|
|
736
|
+
"defaultMax": 20,
|
|
737
|
+
"fields": {
|
|
738
|
+
"alternatives": {
|
|
739
|
+
"type": "string",
|
|
740
|
+
"sanitize": true,
|
|
741
|
+
"maxLength": 512
|
|
742
|
+
},
|
|
743
|
+
"reason": {
|
|
744
|
+
"required": true,
|
|
745
|
+
"type": "string",
|
|
746
|
+
"sanitize": true,
|
|
747
|
+
"maxLength": 256
|
|
748
|
+
},
|
|
749
|
+
"tool": {
|
|
750
|
+
"type": "string",
|
|
751
|
+
"sanitize": true,
|
|
752
|
+
"maxLength": 128
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
"noop": {
|
|
757
|
+
"defaultMax": 1,
|
|
758
|
+
"fields": {
|
|
759
|
+
"message": {
|
|
760
|
+
"required": true,
|
|
761
|
+
"type": "string",
|
|
762
|
+
"sanitize": true,
|
|
763
|
+
"maxLength": 65000
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
"remove_labels": {
|
|
768
|
+
"defaultMax": 5,
|
|
769
|
+
"fields": {
|
|
770
|
+
"item_number": {
|
|
771
|
+
"issueNumberOrTemporaryId": true
|
|
772
|
+
},
|
|
773
|
+
"labels": {
|
|
774
|
+
"required": true,
|
|
775
|
+
"type": "array"
|
|
776
|
+
},
|
|
777
|
+
"repo": {
|
|
778
|
+
"type": "string",
|
|
779
|
+
"maxLength": 256
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
"report_incomplete": {
|
|
784
|
+
"defaultMax": 5,
|
|
785
|
+
"fields": {
|
|
786
|
+
"details": {
|
|
787
|
+
"type": "string",
|
|
788
|
+
"sanitize": true,
|
|
789
|
+
"maxLength": 65000
|
|
790
|
+
},
|
|
791
|
+
"reason": {
|
|
792
|
+
"required": true,
|
|
793
|
+
"type": "string",
|
|
794
|
+
"sanitize": true,
|
|
795
|
+
"maxLength": 1024
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
801
|
+
with:
|
|
802
|
+
script: |
|
|
803
|
+
const path = require('path');
|
|
804
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
805
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
806
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
807
|
+
const { main } = require(path.join(actionsDir, 'generate_safe_outputs_tools.cjs'));
|
|
808
|
+
await main();
|
|
809
|
+
- name: Start MCP Gateway
|
|
810
|
+
id: start-mcp-gateway
|
|
811
|
+
env:
|
|
812
|
+
GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST: ${{ vars.GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST || 'true' }}
|
|
813
|
+
GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}
|
|
814
|
+
GH_AW_SAFE_OUTPUTS_CONFIG_PATH: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS_CONFIG_PATH }}
|
|
815
|
+
GH_AW_SAFE_OUTPUTS_TOOLS_PATH: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS_TOOLS_PATH }}
|
|
816
|
+
GH_AW_SINK_VISIBILITY: ${{ steps.determine-automatic-lockdown.outputs.visibility }}
|
|
817
|
+
GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
818
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
819
|
+
run: |
|
|
820
|
+
set -eo pipefail
|
|
821
|
+
mkdir -p "${RUNNER_TEMP}/gh-aw/mcp-config"
|
|
822
|
+
if [ -n "${GITHUB_EVENT_PATH:-}" ] && [ -r "${GITHUB_EVENT_PATH}" ]; then
|
|
823
|
+
GH_AW_SAFEOUTPUTS_EVENT_PATH="${RUNNER_TEMP}/gh-aw/safeoutputs/github_event.json"
|
|
824
|
+
cp "${GITHUB_EVENT_PATH}" "${GH_AW_SAFEOUTPUTS_EVENT_PATH}"
|
|
825
|
+
export GITHUB_EVENT_PATH="${GH_AW_SAFEOUTPUTS_EVENT_PATH}"
|
|
826
|
+
fi
|
|
827
|
+
|
|
828
|
+
# Export gateway environment variables for MCP config and gateway script
|
|
829
|
+
export MCP_GATEWAY_PORT="8080"
|
|
830
|
+
export MCP_GATEWAY_DOMAIN="awmg-mcpg"
|
|
831
|
+
export MCP_GATEWAY_HOST_DOMAIN="localhost"
|
|
832
|
+
MCP_GATEWAY_AGENT_ID=$(openssl rand -base64 45 | tr -d '/+=')
|
|
833
|
+
echo "::add-mask::${MCP_GATEWAY_AGENT_ID}"
|
|
834
|
+
export MCP_GATEWAY_AGENT_ID
|
|
835
|
+
export MCP_GATEWAY_PAYLOAD_DIR="/tmp/gh-aw/mcp-payloads"
|
|
836
|
+
mkdir -p "${MCP_GATEWAY_PAYLOAD_DIR}"
|
|
837
|
+
export MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD="524288"
|
|
838
|
+
export MCP_GATEWAY_ALLOWED_MOUNT_ROOTS="${GITHUB_WORKSPACE}:rw,${RUNNER_TEMP}/gh-aw:ro,${RUNNER_TEMP}/gh-aw/safeoutputs:rw,/opt:ro,/tmp:rw,/usr/bin/gh:ro"
|
|
839
|
+
export GH_AW_PR_HEAD_BASE_BRANCH="${GH_AW_PR_HEAD_BASE_BRANCH:-}"
|
|
840
|
+
export GH_AW_PR_HEAD_BASE_SHA="${GH_AW_PR_HEAD_BASE_SHA:-}"
|
|
841
|
+
export GH_AW_PR_HEAD_BASE_REPO="${GH_AW_PR_HEAD_BASE_REPO:-}"
|
|
842
|
+
export GH_AW_PR_HEAD_BASE_PR_NUMBER="${GH_AW_PR_HEAD_BASE_PR_NUMBER:-}"
|
|
843
|
+
export GH_AW_PR_HEAD_BASE_REF="${GH_AW_PR_HEAD_BASE_REF:-}"
|
|
844
|
+
export GH_AW_PR_HEAD_REPO="${GH_AW_PR_HEAD_REPO:-}"
|
|
845
|
+
export DEBUG="*"
|
|
846
|
+
|
|
847
|
+
export GH_AW_ENGINE="copilot"
|
|
848
|
+
MCP_GATEWAY_UID=$(id -u 2>/dev/null || echo '0')
|
|
849
|
+
MCP_GATEWAY_GID=$(id -g 2>/dev/null || echo '0')
|
|
850
|
+
source "${RUNNER_TEMP}/gh-aw/actions/resolve_docker_socket_gid.sh"
|
|
851
|
+
export MCP_GATEWAY_DOCKER_COMMAND='docker run -i --rm --network bridge -p 127.0.0.1:'"${MCP_GATEWAY_PORT}"':'"${MCP_GATEWAY_PORT}"' --name awmg-mcpg --add-host host.docker.internal:host-gateway --user '"${MCP_GATEWAY_UID}"':'"${MCP_GATEWAY_GID}"' --group-add '"${DOCKER_SOCK_GID}"' -v '"${DOCKER_SOCK_PATH}"':/var/run/docker.sock -e MCP_GATEWAY_PORT -e MCP_GATEWAY_DOMAIN -e MCP_GATEWAY_AGENT_ID -e MCP_GATEWAY_PAYLOAD_DIR -e MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD -e DOCKER_HOST=unix:///var/run/docker.sock -e DEBUG -e MCP_GATEWAY_LOG_DIR -e GH_AW_MCP_LOG_DIR -e GH_AW_SAFE_OUTPUTS -e GH_AW_SAFE_OUTPUTS_CONFIG_PATH -e GH_AW_SAFE_OUTPUTS_TOOLS_PATH -e GH_AW_PR_HEAD_BASE_BRANCH -e GH_AW_PR_HEAD_BASE_SHA -e GH_AW_PR_HEAD_BASE_REPO -e GH_AW_PR_HEAD_BASE_PR_NUMBER -e GH_AW_PR_HEAD_BASE_REF -e GH_AW_PR_HEAD_REPO -e GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST -e GH_AW_ASSETS_BRANCH -e GH_AW_ASSETS_MAX_SIZE_KB -e GH_AW_ASSETS_ALLOWED_EXTS -e DEFAULT_BRANCH -e GITHUB_MCP_SERVER_TOKEN -e GITHUB_MCP_GUARD_MIN_INTEGRITY -e GITHUB_MCP_GUARD_REPOS -e GH_AW_SINK_VISIBILITY -e GITHUB_REPOSITORY -e GITHUB_SERVER_URL -e GITHUB_SHA -e GITHUB_WORKSPACE -e GITHUB_TOKEN -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RUN_ATTEMPT -e GITHUB_JOB -e GITHUB_ACTION -e GITHUB_EVENT_NAME -e GITHUB_EVENT_PATH -e GITHUB_ACTOR -e GITHUB_ACTOR_ID -e GITHUB_TRIGGERING_ACTOR -e GITHUB_WORKFLOW -e GITHUB_WORKFLOW_REF -e GITHUB_WORKFLOW_SHA -e GITHUB_REF -e GITHUB_REF_NAME -e GITHUB_REF_TYPE -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e RUNNER_TEMP -e RUNNER_TOOL_CACHE -e MCP_GATEWAY_ALLOWED_MOUNT_ROOTS -e GITHUB_AW_OTEL_TRACE_ID -e GITHUB_AW_OTEL_PARENT_SPAN_ID -e OTEL_EXPORTER_OTLP_HEADERS -v /tmp/gh-aw/mcp-payloads:/tmp/gh-aw/mcp-payloads:rw -v /opt:/opt:ro -v /tmp:/tmp:rw -v '"${GITHUB_WORKSPACE}"':'"${GITHUB_WORKSPACE}"':rw -v '"${RUNNER_TEMP}"'/gh-aw/safeoutputs:'"${RUNNER_TEMP}"'/gh-aw/safeoutputs:rw ghcr.io/github/gh-aw-mcpg:v0.4.18'
|
|
852
|
+
|
|
853
|
+
mkdir -p "$HOME/.copilot"
|
|
854
|
+
GH_AW_NODE=$(which node 2>/dev/null || command -v node 2>/dev/null || echo node)
|
|
855
|
+
cat << GH_AW_MCP_CONFIG_c64233ee83d32812_EOF | "$GH_AW_NODE" "${RUNNER_TEMP}/gh-aw/actions/start_mcp_gateway.cjs"
|
|
856
|
+
{
|
|
857
|
+
"mcpServers": {
|
|
858
|
+
"github": {
|
|
859
|
+
"type": "stdio",
|
|
860
|
+
"container": "ghcr.io/github/github-mcp-server:v1.11.0",
|
|
861
|
+
"env": {
|
|
862
|
+
"GITHUB_FEATURES": "fields_param",
|
|
863
|
+
"GITHUB_HOST": "${GITHUB_SERVER_URL}",
|
|
864
|
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_MCP_SERVER_TOKEN}",
|
|
865
|
+
"GITHUB_READ_ONLY": "1",
|
|
866
|
+
"GITHUB_TOOLSETS": "issues,repos"
|
|
867
|
+
},
|
|
868
|
+
"guard-policies": {
|
|
869
|
+
"allow-only": {
|
|
870
|
+
"approval-labels": ${{ steps.parse-guard-vars.outputs.approval_labels }},
|
|
871
|
+
"blocked-users": ${{ steps.parse-guard-vars.outputs.blocked_users }},
|
|
872
|
+
"min-integrity": "none",
|
|
873
|
+
"repos": "all",
|
|
874
|
+
"trusted-users": ${{ steps.parse-guard-vars.outputs.trusted_users }}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
"safeoutputs": {
|
|
879
|
+
"type": "stdio",
|
|
880
|
+
"container": "ghcr.io/github/gh-aw-node",
|
|
881
|
+
"mounts": ["\${GITHUB_WORKSPACE}:\${GITHUB_WORKSPACE}:rw", "${RUNNER_TEMP}/gh-aw/safeoutputs:${RUNNER_TEMP}/gh-aw/safeoutputs:rw", "/tmp/gh-aw:/tmp/gh-aw:rw"],
|
|
882
|
+
"args": ["-w", "\${GITHUB_WORKSPACE}"],
|
|
883
|
+
"entrypoint": "sh",
|
|
884
|
+
"entrypointArgs": ["-c", "sh ${RUNNER_TEMP}/gh-aw/safeoutputs/start_safe_outputs_mcp.sh"],
|
|
885
|
+
"env": {
|
|
886
|
+
"DEBUG": "*",
|
|
887
|
+
"DEFAULT_BRANCH": "\${DEFAULT_BRANCH}",
|
|
888
|
+
"GH_AW_ASSETS_ALLOWED_EXTS": "\${GH_AW_ASSETS_ALLOWED_EXTS}",
|
|
889
|
+
"GH_AW_ASSETS_BRANCH": "\${GH_AW_ASSETS_BRANCH}",
|
|
890
|
+
"GH_AW_ASSETS_MAX_SIZE_KB": "\${GH_AW_ASSETS_MAX_SIZE_KB}",
|
|
891
|
+
"GH_AW_MCP_LOG_DIR": "\${GH_AW_MCP_LOG_DIR}",
|
|
892
|
+
"GH_AW_SAFE_OUTPUTS": "\${GH_AW_SAFE_OUTPUTS}",
|
|
893
|
+
"GH_AW_SAFE_OUTPUTS_CONFIG_PATH": "\${GH_AW_SAFE_OUTPUTS_CONFIG_PATH}",
|
|
894
|
+
"GH_AW_SAFE_OUTPUTS_TOOLS_PATH": "\${GH_AW_SAFE_OUTPUTS_TOOLS_PATH}",
|
|
895
|
+
"GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST": "\${GH_AW_POLICY_ALLOW_CREATE_PULL_REQUEST}",
|
|
896
|
+
"GH_AW_PR_HEAD_BASE_BRANCH": "\${GH_AW_PR_HEAD_BASE_BRANCH}",
|
|
897
|
+
"GH_AW_PR_HEAD_BASE_SHA": "\${GH_AW_PR_HEAD_BASE_SHA}",
|
|
898
|
+
"GH_AW_PR_HEAD_BASE_REPO": "\${GH_AW_PR_HEAD_BASE_REPO}",
|
|
899
|
+
"GH_AW_PR_HEAD_BASE_PR_NUMBER": "\${GH_AW_PR_HEAD_BASE_PR_NUMBER}",
|
|
900
|
+
"GH_AW_PR_HEAD_BASE_REF": "\${GH_AW_PR_HEAD_BASE_REF}",
|
|
901
|
+
"GH_AW_PR_HEAD_REPO": "\${GH_AW_PR_HEAD_REPO}",
|
|
902
|
+
"GITHUB_EVENT_NAME": "\${GITHUB_EVENT_NAME}",
|
|
903
|
+
"GITHUB_EVENT_PATH": "\${GITHUB_EVENT_PATH}",
|
|
904
|
+
"GITHUB_REPOSITORY": "\${GITHUB_REPOSITORY}",
|
|
905
|
+
"GITHUB_SHA": "\${GITHUB_SHA}",
|
|
906
|
+
"GITHUB_TOKEN": "\${GITHUB_TOKEN}",
|
|
907
|
+
"GITHUB_WORKSPACE": "\${GITHUB_WORKSPACE}",
|
|
908
|
+
"RUNNER_TEMP": "\${RUNNER_TEMP}"
|
|
909
|
+
},
|
|
910
|
+
"guard-policies": {
|
|
911
|
+
"write-sink": {
|
|
912
|
+
"accept": [
|
|
913
|
+
"*"
|
|
914
|
+
],
|
|
915
|
+
"sink-visibility": "${GH_AW_SINK_VISIBILITY}"
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
"gateway": {
|
|
921
|
+
"port": $MCP_GATEWAY_PORT,
|
|
922
|
+
"domain": "${MCP_GATEWAY_DOMAIN}",
|
|
923
|
+
"agentId": "${MCP_GATEWAY_AGENT_ID}",
|
|
924
|
+
"payloadDir": "${MCP_GATEWAY_PAYLOAD_DIR}",
|
|
925
|
+
"startupTimeout": 120,
|
|
926
|
+
"opentelemetry": {
|
|
927
|
+
"endpoint": "${OTEL_EXPORTER_OTLP_ENDPOINT}",
|
|
928
|
+
"traceId": "${GITHUB_AW_OTEL_TRACE_ID}",
|
|
929
|
+
"spanId": "${GITHUB_AW_OTEL_PARENT_SPAN_ID}"
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
GH_AW_MCP_CONFIG_c64233ee83d32812_EOF
|
|
934
|
+
- name: Mount MCP servers as CLIs
|
|
935
|
+
id: mount-mcp-clis
|
|
936
|
+
continue-on-error: true
|
|
937
|
+
env:
|
|
938
|
+
MCP_GATEWAY_AGENT_ID: ${{ steps.start-mcp-gateway.outputs.gateway-agent-id }}
|
|
939
|
+
MCP_GATEWAY_DOMAIN: ${{ steps.start-mcp-gateway.outputs.gateway-domain }}
|
|
940
|
+
MCP_GATEWAY_PORT: ${{ steps.start-mcp-gateway.outputs.gateway-port }}
|
|
941
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
942
|
+
with:
|
|
943
|
+
script: |
|
|
944
|
+
const path = require('path');
|
|
945
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
946
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
947
|
+
setupGlobals(core, github, context, exec, io);
|
|
948
|
+
const { main } = require(path.join(actionsDir, 'mount_mcp_as_cli.cjs'));
|
|
949
|
+
await main();
|
|
950
|
+
- name: Clean credentials
|
|
951
|
+
continue-on-error: true
|
|
952
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/clean_git_credentials.sh"
|
|
953
|
+
- name: Audit pre-agent workspace
|
|
954
|
+
id: pre_agent_audit
|
|
955
|
+
continue-on-error: true
|
|
956
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/audit_pre_agent_workspace.sh"
|
|
957
|
+
- name: Execute GitHub Copilot CLI
|
|
958
|
+
id: agentic_execution
|
|
959
|
+
# Copilot CLI tool arguments (sorted):
|
|
960
|
+
# --allow-tool github
|
|
961
|
+
# --allow-tool safeoutputs
|
|
962
|
+
# --allow-tool shell(cat)
|
|
963
|
+
# --allow-tool shell(curl:*)
|
|
964
|
+
# --allow-tool shell(date)
|
|
965
|
+
# --allow-tool shell(echo)
|
|
966
|
+
# --allow-tool shell(git add:*)
|
|
967
|
+
# --allow-tool shell(git branch:*)
|
|
968
|
+
# --allow-tool shell(git checkout:*)
|
|
969
|
+
# --allow-tool shell(git commit:*)
|
|
970
|
+
# --allow-tool shell(git merge:*)
|
|
971
|
+
# --allow-tool shell(git rm:*)
|
|
972
|
+
# --allow-tool shell(git status)
|
|
973
|
+
# --allow-tool shell(git switch:*)
|
|
974
|
+
# --allow-tool shell(github:*)
|
|
975
|
+
# --allow-tool shell(grep)
|
|
976
|
+
# --allow-tool shell(head)
|
|
977
|
+
# --allow-tool shell(jq)
|
|
978
|
+
# --allow-tool shell(ls)
|
|
979
|
+
# --allow-tool shell(printf)
|
|
980
|
+
# --allow-tool shell(pwd)
|
|
981
|
+
# --allow-tool shell(python3)
|
|
982
|
+
# --allow-tool shell(safeoutputs:*)
|
|
983
|
+
# --allow-tool shell(sort)
|
|
984
|
+
# --allow-tool shell(tail)
|
|
985
|
+
# --allow-tool shell(uniq)
|
|
986
|
+
# --allow-tool shell(wc)
|
|
987
|
+
# --allow-tool shell(yq)
|
|
988
|
+
# --allow-tool web_fetch
|
|
989
|
+
# --allow-tool write
|
|
990
|
+
timeout-minutes: ${{ fromJSON(vars.GH_AW_DEFAULT_TIMEOUT_MINUTES || '20') }}
|
|
991
|
+
run: |
|
|
992
|
+
set -o pipefail
|
|
993
|
+
printf '%s' "$(date +%s%3N)" > /tmp/gh-aw/agent_cli_start_ms.txt
|
|
994
|
+
trap 'gh_aw_exit_code=$?; mkdir -p /tmp/gh-aw >/dev/null 2>&1 || true; printf "%s" "$gh_aw_exit_code" > /tmp/gh-aw/agent_execution_exit_code.txt || true; rm -f "$HOME/.copilot/settings.json"; if [ "$gh_aw_exit_code" -ne 0 ]; then echo "::error::Agent execution exited with code $gh_aw_exit_code"; fi' EXIT
|
|
995
|
+
mkdir -p "$HOME/.copilot"
|
|
996
|
+
printf '%s' '{"builtInAgents":{"rubberDuck":false}}' > "$HOME/.copilot/settings.json"
|
|
997
|
+
export XDG_CONFIG_HOME="$HOME"
|
|
998
|
+
export GH_AW_MCP_CONFIG="$HOME/.copilot/mcp-config.json"
|
|
999
|
+
GH_AW_COPILOT_SRC="$(command -v copilot 2>/dev/null || true)"
|
|
1000
|
+
if [ -z "$GH_AW_COPILOT_SRC" ] || [ ! -x "$GH_AW_COPILOT_SRC" ]; then
|
|
1001
|
+
echo "GitHub Copilot CLI executable not found on PATH after installation" >&2
|
|
1002
|
+
exit 127
|
|
1003
|
+
fi
|
|
1004
|
+
GH_AW_COPILOT_BIN="${RUNNER_TEMP}/gh-aw/bin/copilot"
|
|
1005
|
+
mkdir -p "${RUNNER_TEMP}/gh-aw/bin"
|
|
1006
|
+
if [ "$GH_AW_COPILOT_SRC" != "$GH_AW_COPILOT_BIN" ]; then
|
|
1007
|
+
cp "$GH_AW_COPILOT_SRC" "$GH_AW_COPILOT_BIN"
|
|
1008
|
+
fi
|
|
1009
|
+
chmod 755 "$GH_AW_COPILOT_BIN"
|
|
1010
|
+
|
|
1011
|
+
touch /tmp/gh-aw/agent-step-summary.md
|
|
1012
|
+
GH_AW_NODE_BIN=$(command -v node 2>/dev/null || true)
|
|
1013
|
+
export GH_AW_NODE_BIN
|
|
1014
|
+
export COPILOT_API_KEY="$COPILOT_DUMMY_BYOK"
|
|
1015
|
+
(umask 177 && touch /tmp/gh-aw/agent-stdio.log)
|
|
1016
|
+
GH_AW_MAX_AI_CREDITS="${GH_AW_MAX_AI_CREDITS:-1000}"
|
|
1017
|
+
if [[ ! "$GH_AW_MAX_AI_CREDITS" =~ ^[0-9]+$ ]]; then
|
|
1018
|
+
GH_AW_MAX_AI_CREDITS="1000"
|
|
1019
|
+
fi
|
|
1020
|
+
printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.14/awf-config.schema.json\",\"network\":{\"allowDomains\":[\"api.snapcraft.io\",\"archive.ubuntu.com\",\"azure.archive.ubuntu.com\",\"crl.geotrust.com\",\"crl.globalsign.com\",\"crl.identrust.com\",\"crl.sectigo.com\",\"crl.thawte.com\",\"crl.usertrust.com\",\"crl.verisign.com\",\"crl3.digicert.com\",\"crl4.digicert.com\",\"crls.ssl.com\",\"github.com\",\"json-schema.org\",\"json.schemastore.org\",\"keyserver.ubuntu.com\",\"ocsp.digicert.com\",\"ocsp.geotrust.com\",\"ocsp.globalsign.com\",\"ocsp.identrust.com\",\"ocsp.sectigo.com\",\"ocsp.ssl.com\",\"ocsp.thawte.com\",\"ocsp.usertrust.com\",\"ocsp.verisign.com\",\"packagecloud.io\",\"packages.cloud.google.com\",\"packages.microsoft.com\",\"ppa.launchpad.net\",\"release-assets.githubusercontent.com\",\"s.symcb.com\",\"s.symcd.com\",\"security.ubuntu.com\",\"ts-crl.ws.symantec.com\",\"ts-ocsp.ws.symantec.com\",\"www.googleapis.com\"],\"isolation\":true,\"topologyAttach\":[\"awmg-mcpg\"]},\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"auto\":[\"copilot/auto\",\"large\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\",\"kimi\"],\"computer-use\":[\"copilot/*computer-use*\",\"google/*computer-use*\",\"gemini/*computer-use*\",\"openai/*computer-use*\"],\"copilot\":[\"agent\"],\"deep-research\":[\"copilot/deep-research*\",\"copilot/o3-deep-research*\",\"copilot/o4-mini-deep-research*\",\"google/deep-research*\",\"gemini/deep-research*\",\"openai/o3-deep-research*\",\"openai/o4-mini-deep-research*\"],\"detection\":[\"small\"],\"evals\":[\"small\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"gemini\":[\"agent\"],\"gemini-3-flash\":[\"copilot/gemini-3*flash*\",\"google/gemini-3*flash*\",\"gemini/gemini-3*flash*\"],\"gemini-3-pro\":[\"copilot/gemini-3*pro*\",\"google/gemini-3*pro*\",\"google/nano-banana*\",\"gemini/gemini-3*pro*\"],\"gemini-3.1-flash\":[\"copilot/gemini-3.1*flash*\",\"google/gemini-3.1*flash*\",\"gemini/gemini-3.1*flash*\"],\"gemini-3.1-pro\":[\"copilot/gemini-3.1*pro*\",\"google/gemini-3.1*pro*\",\"gemini/gemini-3.1*pro*\"],\"gemini-3.5-flash\":[\"copilot/gemini-3.5*flash*\",\"google/gemini-3.5*flash*\",\"gemini/gemini-3.5*flash*\"],\"gemini-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*flash*\"],\"gemini-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-flash\":[\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"],\"gemini-flash-lite\":[\"copilot/gemini-*flash*lite*\",\"google/gemini-*flash*lite*\",\"gemini/gemini-*flash*lite*\"],\"gemini-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"gemini-pro\":[\"copilot/gemini-*pro*\",\"google/gemini-*pro*\",\"gemini/gemini-*pro*\"],\"gemma\":[\"copilot/gemma*\",\"google/gemma*\",\"gemini/gemma*\"],\"gpt-5\":[\"copilot/gpt-5*\",\"openai/gpt-5*\"],\"gpt-5-codex\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\"],\"gpt-5-mini\":[\"copilot/gpt-5*mini*\",\"openai/gpt-5*mini*\"],\"gpt-5-nano\":[\"copilot/gpt-5*nano*\",\"openai/gpt-5*nano*\"],\"gpt-5-pro\":[\"copilot/gpt-5*pro*\",\"openai/gpt-5*pro*\"],\"gpt-5.1\":[\"copilot/gpt-5.1*\",\"openai/gpt-5.1*\"],\"gpt-5.2\":[\"copilot/gpt-5.2*\",\"openai/gpt-5.2*\"],\"gpt-5.3\":[\"copilot/gpt-5.3*\",\"openai/gpt-5.3*\"],\"gpt-5.4\":[\"copilot/gpt-5.4*\",\"openai/gpt-5.4*\"],\"gpt-5.5\":[\"copilot/gpt-5.5*\",\"openai/gpt-5.5*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"grok\":[\"copilot/*grok*\",\"openai/*grok*\"],\"haiku\":[\"copilot/*haiku*\",\"anthropic/*haiku*\"],\"image-generation\":[\"copilot/gpt-image*\",\"openai/gpt-image*\",\"openai/chatgpt-image*\",\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"google/imagen*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"mini\":[\"haiku\",\"gpt-5-mini\",\"gpt-5-nano\",\"gemini-flash-lite\"],\"nano-banana\":[\"copilot/nano-banana*\",\"google/nano-banana*\",\"gemini/nano-banana*\"],\"opus\":[\"copilot/*opus*\",\"anthropic/*opus*\"],\"opusplan\":[\"opus?effort=high\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"reasoning\":[\"copilot/o1*\",\"copilot/o3*\",\"copilot/o4*\",\"openai/o1*\",\"openai/o3*\",\"openai/o4*\"],\"robotics\":[\"copilot/*robotics*\",\"google/*robotics*\",\"gemini/*robotics*\"],\"small\":[\"mini\"],\"small-agent\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash\"],\"sonnet\":[\"copilot/*sonnet*\",\"anthropic/*sonnet*\"],\"sonnet-6x\":[\"copilot/*sonnet-4.5*\",\"copilot/*sonnet-4.6*\",\"copilot/*sonnet-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.28.14,squid=sha256:2ce8df3abf3e9b76e9c0cf5863da41f1ab3f89b20ad14b988806ab89e7bf2cd5,agent=sha256:f7df036c86575527b61f3f7df91c4412349a12b2a74988d929eafa2999230c98,api-proxy=sha256:6f95e2234dd9bd6333a8ff28ccea7ecf0204acd4a09108723844dbd2bf6268c5,cli-proxy=sha256:3a379c5e96e29499c815e9dd2a71334d01c326a9b73991c76544fda9cae35c34\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"
|
|
1021
|
+
cp "${RUNNER_TEMP}/gh-aw/awf-config.json" /tmp/gh-aw/awf-config.json
|
|
1022
|
+
export GH_AW_MODELS_JSON_PATH="/tmp/gh-aw/models.json"
|
|
1023
|
+
GH_AW_DOCKER_HOST=""
|
|
1024
|
+
if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then
|
|
1025
|
+
GH_AW_DOCKER_HOST="${DOCKER_HOST}"
|
|
1026
|
+
fi
|
|
1027
|
+
if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then
|
|
1028
|
+
GH_AW_CHROOT_BINARIES_SOURCE_PATH="${RUNNER_TEMP}/gh-aw" GH_AW_CHROOT_IDENTITY_HOME="${RUNNER_TEMP}/gh-aw/home" node "${RUNNER_TEMP}/gh-aw/actions/patch_awf_chroot_config.cjs"
|
|
1029
|
+
fi
|
|
1030
|
+
GH_AW_TOOL_CACHE_MOUNT=""
|
|
1031
|
+
GH_AW_TOOL_CACHE="${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"
|
|
1032
|
+
if [ -d "$GH_AW_TOOL_CACHE" ]; then
|
|
1033
|
+
if [[ "$GH_AW_TOOL_CACHE" != /opt/* ]]; then
|
|
1034
|
+
GH_AW_TOOL_CACHE_MOUNT="$GH_AW_TOOL_CACHE:$GH_AW_TOOL_CACHE:ro"
|
|
1035
|
+
fi
|
|
1036
|
+
fi
|
|
1037
|
+
# shellcheck disable=SC1003,SC2016,SC2086
|
|
1038
|
+
GH_AW_AWF_ENGINE_NAME=copilot \
|
|
1039
|
+
GH_AW_AWF_HARNESS_MARKER='[copilot-harness]' \
|
|
1040
|
+
GH_AW_AWF_LOG_FILE=/tmp/gh-aw/agent-stdio.log \
|
|
1041
|
+
GH_AW_AWF_ATTEMPT_LOG_NAME=copilot \
|
|
1042
|
+
bash "${RUNNER_TEMP}/gh-aw/actions/run_awf_with_startup_retries.sh" -- \
|
|
1043
|
+
awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_TOOL_CACHE_MOUNT:+--mount "$GH_AW_TOOL_CACHE_MOUNT"} ${GH_AW_DOCKER_HOST:+--docker-host "$GH_AW_DOCKER_HOST"} --env-all --exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN --exclude-env ACTIONS_ID_TOKEN_REQUEST_URL --exclude-env COPILOT_GITHUB_TOKEN --exclude-env GITHUB_MCP_SERVER_TOKEN --exclude-env MCP_GATEWAY_AGENT_ID --mount /tmp/gh-aw:/tmp/gh-aw:rw --log-level info --skip-pull \
|
|
1044
|
+
-- /bin/bash -c 'set +o histexpand; export PATH="${RUNNER_TEMP}/gh-aw/mcp-cli/bin:$PATH" && : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; GH_AW_TOOL_BINS="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')"; GH_AW_TOOL_BINS="${GH_AW_TOOL_BINS%:}"; export PATH="$PATH${GH_AW_TOOL_BINS:+:}$GH_AW_TOOL_BINS"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/bin:$PATH" || true && GH_AW_NODE_EXEC="${GH_AW_NODE_BIN:-}"; if [ -z "$GH_AW_NODE_EXEC" ] || [ ! -x "$GH_AW_NODE_EXEC" ]; then GH_AW_NODE_EXEC="$(command -v node 2>/dev/null || true)"; fi; if [ -z "$GH_AW_NODE_EXEC" ]; then echo "node runtime missing on this runner — check runtimes.node in workflow YAML" >&2; exit 127; fi; GH_AW_NPM_GLOBAL_ROOT="$(npm root -g 2>/dev/null || true)"; if [ -n "$GH_AW_NPM_GLOBAL_ROOT" ]; then export NODE_PATH="${GH_AW_NPM_GLOBAL_ROOT}${NODE_PATH:+:${NODE_PATH}}"; fi; "$GH_AW_NODE_EXEC" "${RUNNER_TEMP}/gh-aw/actions/copilot_harness.cjs" "${RUNNER_TEMP}/gh-aw/bin/copilot" --add-dir /tmp/gh-aw/ --log-level all --log-dir /tmp/gh-aw/sandbox/agent/logs/ --no-ask-user --allow-tool github --allow-tool safeoutputs --allow-tool '\''shell(cat)'\'' --allow-tool '\''shell(curl:*)'\'' --allow-tool '\''shell(date)'\'' --allow-tool '\''shell(echo)'\'' --allow-tool '\''shell(git add:*)'\'' --allow-tool '\''shell(git branch:*)'\'' --allow-tool '\''shell(git checkout:*)'\'' --allow-tool '\''shell(git commit:*)'\'' --allow-tool '\''shell(git merge:*)'\'' --allow-tool '\''shell(git rm:*)'\'' --allow-tool '\''shell(git status)'\'' --allow-tool '\''shell(git switch:*)'\'' --allow-tool '\''shell(github:*)'\'' --allow-tool '\''shell(grep)'\'' --allow-tool '\''shell(head)'\'' --allow-tool '\''shell(jq)'\'' --allow-tool '\''shell(ls)'\'' --allow-tool '\''shell(printf)'\'' --allow-tool '\''shell(pwd)'\'' --allow-tool '\''shell(python3)'\'' --allow-tool '\''shell(safeoutputs:*)'\'' --allow-tool '\''shell(sort)'\'' --allow-tool '\''shell(tail)'\'' --allow-tool '\''shell(uniq)'\'' --allow-tool '\''shell(wc)'\'' --allow-tool '\''shell(yq)'\'' --allow-tool web_fetch --allow-tool write --allow-all-paths --add-dir "${GITHUB_WORKSPACE}" --prompt-file /tmp/gh-aw/aw-prompts/prompt.txt'
|
|
1045
|
+
env:
|
|
1046
|
+
AWF_REFLECT_ENABLED: 1
|
|
1047
|
+
COPILOT_AGENT_RUNNER_TYPE: STANDALONE
|
|
1048
|
+
COPILOT_DUMMY_BYOK: dummy-byok-key-for-offline-mode
|
|
1049
|
+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
|
|
1050
|
+
COPILOT_MODEL: ${{ vars.GH_AW_MODEL_AGENT_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'auto' }}
|
|
1051
|
+
GH_AW_LLM_PROVIDER: github
|
|
1052
|
+
GH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_MAX_AI_CREDITS || '1000' }}
|
|
1053
|
+
GH_AW_MAX_TURNS: ${{ vars.GH_AW_DEFAULT_MAX_TURNS || '' }}
|
|
1054
|
+
GH_AW_PHASE: agent
|
|
1055
|
+
GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt
|
|
1056
|
+
GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}
|
|
1057
|
+
GH_AW_TIMEOUT_MINUTES: ${{ fromJSON(vars.GH_AW_DEFAULT_TIMEOUT_MINUTES || '20') }}
|
|
1058
|
+
GH_AW_VERSION: v0.88.7
|
|
1059
|
+
GITHUB_API_URL: ${{ github.api_url }}
|
|
1060
|
+
GITHUB_AW: true
|
|
1061
|
+
GITHUB_COPILOT_INTEGRATION_ID: agentic-workflows
|
|
1062
|
+
GITHUB_HEAD_REF: ${{ github.head_ref }}
|
|
1063
|
+
GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN || secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1064
|
+
GITHUB_REF_NAME: ${{ github.ref_name }}
|
|
1065
|
+
GITHUB_SERVER_URL: ${{ github.server_url }}
|
|
1066
|
+
GITHUB_STEP_SUMMARY: /tmp/gh-aw/agent-step-summary.md
|
|
1067
|
+
GITHUB_WORKSPACE: ${{ github.workspace }}
|
|
1068
|
+
GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com
|
|
1069
|
+
GIT_AUTHOR_NAME: github-actions[bot]
|
|
1070
|
+
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com
|
|
1071
|
+
GIT_COMMITTER_NAME: github-actions[bot]
|
|
1072
|
+
RUNNER_TEMP: ${{ runner.temp }}
|
|
1073
|
+
TRACEPARENT: ${{ env.GITHUB_AW_OTEL_TRACE_ID != '' && env.GITHUB_AW_OTEL_PARENT_SPAN_ID != '' && format('00-{0}-{1}-01', env.GITHUB_AW_OTEL_TRACE_ID, env.GITHUB_AW_OTEL_PARENT_SPAN_ID) || '' }}
|
|
1074
|
+
- name: Detect agent errors
|
|
1075
|
+
if: always()
|
|
1076
|
+
id: detect-agent-errors
|
|
1077
|
+
continue-on-error: true
|
|
1078
|
+
env:
|
|
1079
|
+
GH_AW_AGENTIC_EXECUTION_OUTCOME: ${{ steps.agentic_execution.outcome }}
|
|
1080
|
+
GH_AW_ENGINE_STEP_TIMEOUT_MINUTES: ${{ fromJSON(vars.GH_AW_DEFAULT_TIMEOUT_MINUTES || '20') }}
|
|
1081
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1082
|
+
with:
|
|
1083
|
+
script: |
|
|
1084
|
+
const path = require('path');
|
|
1085
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1086
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1087
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1088
|
+
const { main } = require(path.join(actionsDir, 'detect_agent_errors.cjs'));
|
|
1089
|
+
await main();
|
|
1090
|
+
- name: Configure Git credentials
|
|
1091
|
+
env:
|
|
1092
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
1093
|
+
GITHUB_SERVER_URL: ${{ github.server_url }}
|
|
1094
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
1095
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/configure_git_credentials.sh"
|
|
1096
|
+
- name: Copy Copilot session state files to logs
|
|
1097
|
+
if: always()
|
|
1098
|
+
continue-on-error: true
|
|
1099
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/copy_copilot_session_state.sh"
|
|
1100
|
+
- name: Stop MCP Gateway
|
|
1101
|
+
if: always()
|
|
1102
|
+
continue-on-error: true
|
|
1103
|
+
env:
|
|
1104
|
+
MCP_GATEWAY_PORT: ${{ steps.start-mcp-gateway.outputs.gateway-port }}
|
|
1105
|
+
MCP_GATEWAY_AGENT_ID: ${{ steps.start-mcp-gateway.outputs.gateway-agent-id }}
|
|
1106
|
+
GATEWAY_PID: ${{ steps.start-mcp-gateway.outputs.gateway-pid }}
|
|
1107
|
+
run: |
|
|
1108
|
+
bash "${RUNNER_TEMP}/gh-aw/actions/stop_mcp_gateway.sh" "$GATEWAY_PID"
|
|
1109
|
+
- name: Redact secrets in logs
|
|
1110
|
+
if: always()
|
|
1111
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1112
|
+
with:
|
|
1113
|
+
script: |
|
|
1114
|
+
const path = require('path');
|
|
1115
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1116
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1117
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1118
|
+
const { main } = require(path.join(actionsDir, 'redact_secrets.cjs'));
|
|
1119
|
+
await main();
|
|
1120
|
+
env:
|
|
1121
|
+
GH_AW_SECRET_NAMES: 'COPILOT_GITHUB_TOKEN,GH_AW_GITHUB_MCP_SERVER_TOKEN,GH_AW_GITHUB_TOKEN,GITHUB_TOKEN'
|
|
1122
|
+
SECRET_COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
|
|
1123
|
+
SECRET_GH_AW_GITHUB_MCP_SERVER_TOKEN: ${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }}
|
|
1124
|
+
SECRET_GH_AW_GITHUB_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN }}
|
|
1125
|
+
SECRET_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
1126
|
+
- name: Append agent step summary
|
|
1127
|
+
if: always()
|
|
1128
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/append_agent_step_summary.sh"
|
|
1129
|
+
- name: Copy Safe Outputs
|
|
1130
|
+
if: always()
|
|
1131
|
+
env:
|
|
1132
|
+
GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}
|
|
1133
|
+
run: |
|
|
1134
|
+
mkdir -p /tmp/gh-aw
|
|
1135
|
+
cp "$GH_AW_SAFE_OUTPUTS" /tmp/gh-aw/safeoutputs.jsonl 2>/dev/null || true
|
|
1136
|
+
- name: Ingest agent output
|
|
1137
|
+
id: collect_output
|
|
1138
|
+
if: always()
|
|
1139
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1140
|
+
env:
|
|
1141
|
+
GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}
|
|
1142
|
+
GH_AW_ALLOWED_DOMAINS: "api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,release-assets.githubusercontent.com,s.symcb.com,s.symcd.com,security.ubuntu.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"
|
|
1143
|
+
GITHUB_SERVER_URL: ${{ github.server_url }}
|
|
1144
|
+
GITHUB_API_URL: ${{ github.api_url }}
|
|
1145
|
+
with:
|
|
1146
|
+
script: |
|
|
1147
|
+
const path = require('path');
|
|
1148
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1149
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1150
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1151
|
+
const { main } = require(path.join(actionsDir, 'collect_ndjson_output.cjs'));
|
|
1152
|
+
await main();
|
|
1153
|
+
- name: Parse agent logs for step summary
|
|
1154
|
+
if: always()
|
|
1155
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1156
|
+
env:
|
|
1157
|
+
GH_AW_AGENT_OUTPUT: /tmp/gh-aw/sandbox/agent/logs/
|
|
1158
|
+
GH_AW_SAFE_OUTPUTS: ${{ steps.set-runtime-paths.outputs.GH_AW_SAFE_OUTPUTS }}
|
|
1159
|
+
with:
|
|
1160
|
+
script: |
|
|
1161
|
+
const path = require('path');
|
|
1162
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1163
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1164
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1165
|
+
const { main } = require(path.join(actionsDir, 'parse_copilot_log.cjs'));
|
|
1166
|
+
await main();
|
|
1167
|
+
- name: Parse MCP Gateway logs for step summary
|
|
1168
|
+
if: always()
|
|
1169
|
+
id: parse-mcp-gateway
|
|
1170
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1171
|
+
with:
|
|
1172
|
+
script: |
|
|
1173
|
+
const path = require('path');
|
|
1174
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1175
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1176
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1177
|
+
const { main } = require(path.join(actionsDir, 'parse_mcp_gateway_log.cjs'));
|
|
1178
|
+
await main();
|
|
1179
|
+
- name: Print firewall logs
|
|
1180
|
+
if: always()
|
|
1181
|
+
continue-on-error: true
|
|
1182
|
+
env:
|
|
1183
|
+
AWF_LOGS_DIR: /tmp/gh-aw/sandbox/firewall/logs
|
|
1184
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/print_firewall_logs.sh" --rootless
|
|
1185
|
+
- name: Parse token usage for step summary
|
|
1186
|
+
if: always()
|
|
1187
|
+
continue-on-error: true
|
|
1188
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1189
|
+
with:
|
|
1190
|
+
script: |
|
|
1191
|
+
const path = require('path');
|
|
1192
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1193
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1194
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1195
|
+
const { main } = require(path.join(actionsDir, 'parse_token_usage.cjs'));
|
|
1196
|
+
await main();
|
|
1197
|
+
- name: Print AWF reflect summary
|
|
1198
|
+
if: always()
|
|
1199
|
+
continue-on-error: true
|
|
1200
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1201
|
+
with:
|
|
1202
|
+
script: |
|
|
1203
|
+
const path = require('path');
|
|
1204
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1205
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1206
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1207
|
+
const { main } = require(path.join(actionsDir, 'awf_reflect_summary.cjs'));
|
|
1208
|
+
await main();
|
|
1209
|
+
- name: Generate observability summary
|
|
1210
|
+
if: always()
|
|
1211
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1212
|
+
with:
|
|
1213
|
+
script: |
|
|
1214
|
+
const path = require('path');
|
|
1215
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1216
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1217
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1218
|
+
const { main } = require(path.join(actionsDir, 'generate_observability_summary.cjs'));
|
|
1219
|
+
await main(core);
|
|
1220
|
+
- name: Write agent output placeholder if missing
|
|
1221
|
+
if: always()
|
|
1222
|
+
run: |
|
|
1223
|
+
if [ ! -f /tmp/gh-aw/agent_output.json ]; then
|
|
1224
|
+
echo '{"items":[]}' > /tmp/gh-aw/agent_output.json
|
|
1225
|
+
fi
|
|
1226
|
+
# Small dedicated copy of the agent output so safe-output processing
|
|
1227
|
+
# survives a failed or timed-out upload of the larger agent artifact
|
|
1228
|
+
- name: Upload agent output fallback artifact
|
|
1229
|
+
if: always()
|
|
1230
|
+
continue-on-error: true
|
|
1231
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
1232
|
+
with:
|
|
1233
|
+
name: agent-output-fallback
|
|
1234
|
+
path: |
|
|
1235
|
+
/tmp/gh-aw/agent_output.json
|
|
1236
|
+
/tmp/gh-aw/safeoutputs.jsonl
|
|
1237
|
+
if-no-files-found: ignore
|
|
1238
|
+
- name: Upload agent artifacts
|
|
1239
|
+
if: always()
|
|
1240
|
+
continue-on-error: true
|
|
1241
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
1242
|
+
with:
|
|
1243
|
+
name: agent
|
|
1244
|
+
path: |
|
|
1245
|
+
/tmp/gh-aw/aw-prompts/prompt.txt
|
|
1246
|
+
/tmp/gh-aw/sandbox/agent/logs/
|
|
1247
|
+
/tmp/gh-aw/redacted-urls.log
|
|
1248
|
+
/tmp/gh-aw/mcp-logs/
|
|
1249
|
+
/tmp/gh-aw/proxy-logs/
|
|
1250
|
+
!/tmp/gh-aw/proxy-logs/proxy-tls/
|
|
1251
|
+
/tmp/gh-aw/agent_usage.json
|
|
1252
|
+
/tmp/gh-aw/agent-stdio.log
|
|
1253
|
+
/tmp/gh-aw/pre-agent-audit.txt
|
|
1254
|
+
/tmp/gh-aw/github_rate_limits.jsonl
|
|
1255
|
+
/tmp/gh-aw/otel.jsonl
|
|
1256
|
+
/tmp/gh-aw/otlp-export-errors.jsonl
|
|
1257
|
+
/tmp/gh-aw/safeoutputs.jsonl
|
|
1258
|
+
/tmp/gh-aw/agent_output.json
|
|
1259
|
+
/tmp/gh-aw/aw-*.patch
|
|
1260
|
+
/tmp/gh-aw/aw-*.bundle
|
|
1261
|
+
/tmp/gh-aw/awf-config.json
|
|
1262
|
+
/tmp/gh-aw/sandbox/firewall/logs/
|
|
1263
|
+
/tmp/gh-aw/sandbox/firewall/audit/
|
|
1264
|
+
/tmp/gh-aw/sandbox/firewall/awf-reflect.json
|
|
1265
|
+
if-no-files-found: ignore
|
|
1266
|
+
|
|
1267
|
+
conclusion:
|
|
1268
|
+
needs:
|
|
1269
|
+
- activation
|
|
1270
|
+
- agent
|
|
1271
|
+
- detection
|
|
1272
|
+
- safe_outputs
|
|
1273
|
+
if: >
|
|
1274
|
+
always() && (needs.agent.result != 'skipped' || needs.activation.outputs.lockdown_check_failed == 'true' ||
|
|
1275
|
+
needs.activation.outputs.oauth_token_check_failed == 'true' || needs.activation.outputs.stale_lock_file_failed == 'true' ||
|
|
1276
|
+
needs.activation.outputs.secret_verification_result == 'failed' || needs.activation.outputs.daily_ai_credits_exceeded == 'true')
|
|
1277
|
+
runs-on: ubuntu-slim
|
|
1278
|
+
permissions:
|
|
1279
|
+
actions: read
|
|
1280
|
+
contents: write
|
|
1281
|
+
issues: write
|
|
1282
|
+
pull-requests: write
|
|
1283
|
+
concurrency:
|
|
1284
|
+
group: "gh-aw-conclusion-add-community-bundle"
|
|
1285
|
+
cancel-in-progress: false
|
|
1286
|
+
queue: max
|
|
1287
|
+
env:
|
|
1288
|
+
GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}
|
|
1289
|
+
outputs:
|
|
1290
|
+
incomplete_count: ${{ steps.report_incomplete.outputs.incomplete_count }}
|
|
1291
|
+
noop_message: ${{ steps.noop.outputs.noop_message }}
|
|
1292
|
+
tools_reported: ${{ steps.missing_tool.outputs.tools_reported }}
|
|
1293
|
+
total_count: ${{ steps.missing_tool.outputs.total_count }}
|
|
1294
|
+
steps:
|
|
1295
|
+
- name: Setup Scripts
|
|
1296
|
+
id: setup
|
|
1297
|
+
uses: github/gh-aw-actions/setup@5e508589e03a7757a7e05b26e834292f5445bfb6 # v0.88.7
|
|
1298
|
+
with:
|
|
1299
|
+
destination: ${{ runner.temp }}/gh-aw/actions
|
|
1300
|
+
job-name: ${{ github.job }}
|
|
1301
|
+
trace-id: ${{ needs.activation.outputs.setup-trace-id }}
|
|
1302
|
+
parent-span-id: ${{ needs.activation.outputs.setup-parent-span-id || needs.activation.outputs.setup-span-id }}
|
|
1303
|
+
env:
|
|
1304
|
+
GH_AW_SETUP_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
1305
|
+
GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/add-community-bundle.lock.yml@${{ github.ref }}
|
|
1306
|
+
GH_AW_INFO_VERSION: "1.0.80"
|
|
1307
|
+
GH_AW_INFO_AWF_VERSION: "v0.28.14"
|
|
1308
|
+
GH_AW_INFO_ENGINE_ID: "copilot"
|
|
1309
|
+
- name: Download agent output artifact
|
|
1310
|
+
id: download-agent-output
|
|
1311
|
+
continue-on-error: true
|
|
1312
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
1313
|
+
with:
|
|
1314
|
+
pattern: "{agent,agent-output-fallback}"
|
|
1315
|
+
merge-multiple: true
|
|
1316
|
+
path: /tmp/gh-aw/
|
|
1317
|
+
- name: Setup agent output environment variable
|
|
1318
|
+
id: setup-agent-output-env
|
|
1319
|
+
if: steps.download-agent-output.outcome == 'success'
|
|
1320
|
+
run: |
|
|
1321
|
+
mkdir -p /tmp/gh-aw/
|
|
1322
|
+
find "/tmp/gh-aw/" -type f -print
|
|
1323
|
+
if [ -f "/tmp/gh-aw/agent_output.json" ]; then
|
|
1324
|
+
echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"
|
|
1325
|
+
fi
|
|
1326
|
+
- name: Download detection artifact
|
|
1327
|
+
id: download-detection-artifact
|
|
1328
|
+
continue-on-error: true
|
|
1329
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
1330
|
+
with:
|
|
1331
|
+
name: detection
|
|
1332
|
+
path: /tmp/gh-aw/threat-detection/
|
|
1333
|
+
- name: Download Safe Outputs Items Manifest
|
|
1334
|
+
id: download-safe-outputs-manifest
|
|
1335
|
+
if: always()
|
|
1336
|
+
continue-on-error: true
|
|
1337
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
1338
|
+
with:
|
|
1339
|
+
pattern: safe-outputs-items
|
|
1340
|
+
merge-multiple: true
|
|
1341
|
+
path: /tmp/gh-aw/
|
|
1342
|
+
- name: Collect usage artifact files
|
|
1343
|
+
if: always()
|
|
1344
|
+
continue-on-error: true
|
|
1345
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/collect_usage_artifact_files.sh"
|
|
1346
|
+
- name: Upload usage artifact
|
|
1347
|
+
if: always()
|
|
1348
|
+
continue-on-error: true
|
|
1349
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
1350
|
+
with:
|
|
1351
|
+
name: usage
|
|
1352
|
+
path: |
|
|
1353
|
+
/tmp/gh-aw/usage/aw_info.json
|
|
1354
|
+
/tmp/gh-aw/usage/aw-info.jsonl
|
|
1355
|
+
/tmp/gh-aw/usage/agent_usage.json
|
|
1356
|
+
/tmp/gh-aw/usage/agent_usage.jsonl
|
|
1357
|
+
/tmp/gh-aw/usage/detection_usage.jsonl
|
|
1358
|
+
/tmp/gh-aw/usage/evals.jsonl
|
|
1359
|
+
/tmp/gh-aw/usage/graders/grader_manifest.json
|
|
1360
|
+
/tmp/gh-aw/usage/graders/grader_results.json
|
|
1361
|
+
/tmp/gh-aw/usage/github_rate_limits.jsonl
|
|
1362
|
+
/tmp/gh-aw/usage/agent/token_usage.jsonl
|
|
1363
|
+
/tmp/gh-aw/usage/detection/token_usage.jsonl
|
|
1364
|
+
/tmp/gh-aw/usage/activity/summary.json
|
|
1365
|
+
if-no-files-found: ignore
|
|
1366
|
+
- name: Restore daily AIC usage cache
|
|
1367
|
+
id: restore-daily-aic-cache-conclusion
|
|
1368
|
+
if: always()
|
|
1369
|
+
continue-on-error: true
|
|
1370
|
+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
1371
|
+
with:
|
|
1372
|
+
key: agentic-workflow-usage-addcommunitybundle-${{ github.run_id }}
|
|
1373
|
+
restore-keys: agentic-workflow-usage-addcommunitybundle-
|
|
1374
|
+
path: /tmp/gh-aw/agentic-workflow-usage-cache.jsonl
|
|
1375
|
+
- name: Write daily AIC usage cache entry
|
|
1376
|
+
id: write-daily-aic-cache
|
|
1377
|
+
if: always()
|
|
1378
|
+
continue-on-error: true
|
|
1379
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1380
|
+
with:
|
|
1381
|
+
github-token: ${{ github.token }}
|
|
1382
|
+
script: |
|
|
1383
|
+
const path = require('path');
|
|
1384
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1385
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1386
|
+
setupGlobals(core, github, context);
|
|
1387
|
+
const { main } = require(path.join(actionsDir, 'write_daily_aic_usage_cache.cjs'));
|
|
1388
|
+
await main();
|
|
1389
|
+
- name: Save daily AIC usage cache
|
|
1390
|
+
id: save-daily-aic-cache
|
|
1391
|
+
if: always()
|
|
1392
|
+
continue-on-error: true
|
|
1393
|
+
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
1394
|
+
with:
|
|
1395
|
+
key: agentic-workflow-usage-addcommunitybundle-${{ github.run_id }}
|
|
1396
|
+
path: /tmp/gh-aw/agentic-workflow-usage-cache.jsonl
|
|
1397
|
+
- name: Upload daily AIC usage cache artifact
|
|
1398
|
+
id: upload-daily-aic-cache
|
|
1399
|
+
if: always()
|
|
1400
|
+
continue-on-error: true
|
|
1401
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
1402
|
+
with:
|
|
1403
|
+
name: aic-usage-cache
|
|
1404
|
+
path: /tmp/gh-aw/agentic-workflow-usage-cache.jsonl
|
|
1405
|
+
if-no-files-found: ignore
|
|
1406
|
+
retention-days: 7
|
|
1407
|
+
- name: Process no-op messages
|
|
1408
|
+
id: noop
|
|
1409
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1410
|
+
env:
|
|
1411
|
+
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1412
|
+
GH_AW_NOOP_MAX: "1"
|
|
1413
|
+
GH_AW_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
1414
|
+
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/add-community-bundle.md"
|
|
1415
|
+
GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
1416
|
+
GH_AW_AGENT_CONCLUSION: ${{ needs.agent.result }}
|
|
1417
|
+
GH_AW_NOOP_REPORT_AS_ISSUE: "false"
|
|
1418
|
+
GH_AW_AIC: ${{ needs.agent.outputs.aic }}
|
|
1419
|
+
GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}
|
|
1420
|
+
GH_AW_AMBIENT_CONTEXT: ${{ needs.agent.outputs.ambient_context }}
|
|
1421
|
+
GH_AW_WORKFLOW_ID: "add-community-bundle"
|
|
1422
|
+
with:
|
|
1423
|
+
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1424
|
+
script: |
|
|
1425
|
+
const path = require('path');
|
|
1426
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1427
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1428
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1429
|
+
const { main } = require(path.join(actionsDir, 'handle_noop_message.cjs'));
|
|
1430
|
+
await main();
|
|
1431
|
+
- name: Log detection run
|
|
1432
|
+
id: detection_runs
|
|
1433
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1434
|
+
env:
|
|
1435
|
+
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1436
|
+
GH_AW_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
1437
|
+
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/add-community-bundle.md"
|
|
1438
|
+
GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
1439
|
+
GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}
|
|
1440
|
+
GH_AW_DETECTION_REASON: ${{ needs.detection.outputs.detection_reason }}
|
|
1441
|
+
with:
|
|
1442
|
+
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1443
|
+
script: |
|
|
1444
|
+
const path = require('path');
|
|
1445
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1446
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1447
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1448
|
+
const { main } = require(path.join(actionsDir, 'handle_detection_runs.cjs'));
|
|
1449
|
+
await main();
|
|
1450
|
+
- name: Record missing tool
|
|
1451
|
+
id: missing_tool
|
|
1452
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1453
|
+
env:
|
|
1454
|
+
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1455
|
+
GH_AW_MISSING_TOOL_CREATE_ISSUE: "true"
|
|
1456
|
+
GH_AW_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
1457
|
+
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/add-community-bundle.md"
|
|
1458
|
+
with:
|
|
1459
|
+
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1460
|
+
script: |
|
|
1461
|
+
const path = require('path');
|
|
1462
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1463
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1464
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1465
|
+
const { main } = require(path.join(actionsDir, 'missing_tool.cjs'));
|
|
1466
|
+
await main();
|
|
1467
|
+
- name: Record incomplete
|
|
1468
|
+
id: report_incomplete
|
|
1469
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1470
|
+
env:
|
|
1471
|
+
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1472
|
+
GH_AW_REPORT_INCOMPLETE_CREATE_ISSUE: "true"
|
|
1473
|
+
GH_AW_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
1474
|
+
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/add-community-bundle.md"
|
|
1475
|
+
with:
|
|
1476
|
+
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1477
|
+
script: |
|
|
1478
|
+
const path = require('path');
|
|
1479
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1480
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1481
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1482
|
+
const { main } = require(path.join(actionsDir, 'report_incomplete_handler.cjs'));
|
|
1483
|
+
await main();
|
|
1484
|
+
- name: Handle agent failure
|
|
1485
|
+
id: handle_agent_failure
|
|
1486
|
+
if: always()
|
|
1487
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1488
|
+
env:
|
|
1489
|
+
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1490
|
+
GH_AW_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
1491
|
+
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/add-community-bundle.md"
|
|
1492
|
+
GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
1493
|
+
GH_AW_AGENT_CONCLUSION: ${{ needs.agent.result }}
|
|
1494
|
+
GH_AW_WORKFLOW_ID: "add-community-bundle"
|
|
1495
|
+
GH_AW_ACTION_FAILURE_ISSUE_EXPIRES_HOURS: "0"
|
|
1496
|
+
GH_AW_ENGINE_ID: "copilot"
|
|
1497
|
+
GH_AW_SECRET_VERIFICATION_RESULT: ${{ needs.activation.outputs.secret_verification_result }}
|
|
1498
|
+
GH_AW_ENGINE_SECRET_FAILURE_MESSAGE: "**Alternative**: If your organization has a Copilot subscription, you can avoid the need for a personal access token by adding a top-level `permissions` block to your workflow file. This enables Copilot inference through the org using the built-in GitHub Actions token.\n\n```yaml\npermissions:\n copilot-requests: write\n```\n\nSee: https://github.github.com/gh-aw/reference/engines/#github-copilot-default"
|
|
1499
|
+
GH_AW_CHECKOUT_PR_SUCCESS: ${{ needs.agent.outputs.checkout_pr_success }}
|
|
1500
|
+
GH_AW_EFFECTIVE_TOKENS: ${{ needs.agent.outputs.effective_tokens || '' }}
|
|
1501
|
+
GH_AW_AI_CREDITS_RATE_LIMIT_ERROR: ${{ needs.agent.outputs.ai_credits_rate_limit_error || 'false' }}
|
|
1502
|
+
GH_AW_UNKNOWN_MODEL_AI_CREDITS: ${{ needs.agent.outputs.unknown_model_ai_credits || 'false' }}
|
|
1503
|
+
GH_AW_AIC: ${{ needs.agent.outputs.aic }}
|
|
1504
|
+
GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}
|
|
1505
|
+
GH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_MAX_AI_CREDITS || '1000' }}
|
|
1506
|
+
GH_AW_INFERENCE_ACCESS_ERROR: ${{ needs.agent.outputs.inference_access_error }}
|
|
1507
|
+
GH_AW_MCP_POLICY_ERROR: ${{ needs.agent.outputs.mcp_policy_error }}
|
|
1508
|
+
GH_AW_AGENTIC_ENGINE_TIMEOUT: ${{ needs.agent.outputs.agentic_engine_timeout }}
|
|
1509
|
+
GH_AW_MODEL_NOT_SUPPORTED_ERROR: ${{ needs.agent.outputs.model_not_supported_error }}
|
|
1510
|
+
GH_AW_HTTP_400_RESPONSE_ERROR: ${{ needs.agent.outputs.http_400_response_error }}
|
|
1511
|
+
GH_AW_MAX_CACHE_MISSES_EXCEEDED: ${{ needs.agent.outputs.max_cache_misses_exceeded }}
|
|
1512
|
+
GH_AW_MISSING_MODEL_PRICING_ERROR: ${{ needs.agent.outputs.missing_model_pricing_error }}
|
|
1513
|
+
GH_AW_MISSING_MODEL_PRICING_MODEL_NAME: ${{ needs.agent.outputs.missing_model_pricing_model_name }}
|
|
1514
|
+
GH_AW_SHELL_EXPANSION_GUARD_REJECTED: ${{ needs.agent.outputs.shell_expansion_guard_rejected }}
|
|
1515
|
+
GH_AW_ENGINE_API_HOSTS: "api.enterprise.githubcopilot.com,api.githubcopilot.com,api.business.githubcopilot.com,api.individual.githubcopilot.com"
|
|
1516
|
+
GH_AW_CODE_PUSH_FAILURE_ERRORS: ${{ needs.safe_outputs.outputs.code_push_failure_errors }}
|
|
1517
|
+
GH_AW_CODE_PUSH_FAILURE_COUNT: ${{ needs.safe_outputs.outputs.code_push_failure_count }}
|
|
1518
|
+
GH_AW_LOCKDOWN_CHECK_FAILED: ${{ needs.activation.outputs.lockdown_check_failed }}
|
|
1519
|
+
GH_AW_OAUTH_TOKEN_CHECK_FAILED: ${{ needs.activation.outputs.oauth_token_check_failed }}
|
|
1520
|
+
GH_AW_STALE_LOCK_FILE_FAILED: ${{ needs.activation.outputs.stale_lock_file_failed }}
|
|
1521
|
+
GH_AW_DAILY_AI_CREDITS_EXCEEDED: ${{ needs.activation.outputs.daily_ai_credits_exceeded }}
|
|
1522
|
+
GH_AW_DAILY_AI_CREDITS_TOTAL_EFFECTIVE_TOKENS: ${{ needs.activation.outputs.daily_ai_credits_total_effective_tokens }}
|
|
1523
|
+
GH_AW_DAILY_AI_CREDITS_THRESHOLD: ${{ needs.activation.outputs.daily_ai_credits_threshold }}
|
|
1524
|
+
GH_AW_GROUP_REPORTS: "false"
|
|
1525
|
+
GH_AW_FAILURE_REPORT_AS_ISSUE: "true"
|
|
1526
|
+
GH_AW_MISSING_TOOL_REPORT_AS_FAILURE: "true"
|
|
1527
|
+
GH_AW_MISSING_DATA_REPORT_AS_FAILURE: "true"
|
|
1528
|
+
GH_AW_TIMEOUT_MINUTES: "${{ fromJSON(vars.GH_AW_DEFAULT_TIMEOUT_MINUTES || '20') }}"
|
|
1529
|
+
with:
|
|
1530
|
+
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1531
|
+
script: |
|
|
1532
|
+
const path = require('path');
|
|
1533
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1534
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1535
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1536
|
+
const { main } = require(path.join(actionsDir, 'handle_agent_failure.cjs'));
|
|
1537
|
+
await main();
|
|
1538
|
+
- name: Report failed jobs
|
|
1539
|
+
id: report_failed_jobs
|
|
1540
|
+
if: always()
|
|
1541
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1542
|
+
env:
|
|
1543
|
+
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1544
|
+
GH_AW_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
1545
|
+
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/add-community-bundle.md"
|
|
1546
|
+
GH_AW_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
|
1547
|
+
GH_AW_REPORT_FAILED_JOBS: "true"
|
|
1548
|
+
with:
|
|
1549
|
+
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1550
|
+
script: |
|
|
1551
|
+
const path = require('path');
|
|
1552
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1553
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1554
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1555
|
+
const { main } = require(path.join(actionsDir, 'report_failed_jobs.cjs'));
|
|
1556
|
+
await main();
|
|
1557
|
+
|
|
1558
|
+
detection:
|
|
1559
|
+
needs:
|
|
1560
|
+
- activation
|
|
1561
|
+
- agent
|
|
1562
|
+
if: always() && needs.agent.result != 'skipped'
|
|
1563
|
+
runs-on: ubuntu-latest
|
|
1564
|
+
permissions:
|
|
1565
|
+
contents: read
|
|
1566
|
+
timeout-minutes: 10
|
|
1567
|
+
env:
|
|
1568
|
+
GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}
|
|
1569
|
+
outputs:
|
|
1570
|
+
aic: ${{ steps.parse_detection_token_usage.outputs.aic }}
|
|
1571
|
+
detection_conclusion: ${{ steps.detection_conclusion.outputs.conclusion }}
|
|
1572
|
+
detection_reason: ${{ steps.detection_conclusion.outputs.reason }}
|
|
1573
|
+
detection_success: ${{ steps.detection_conclusion.outputs.success }}
|
|
1574
|
+
steps:
|
|
1575
|
+
- name: Setup Scripts
|
|
1576
|
+
id: setup
|
|
1577
|
+
uses: github/gh-aw-actions/setup@5e508589e03a7757a7e05b26e834292f5445bfb6 # v0.88.7
|
|
1578
|
+
with:
|
|
1579
|
+
destination: ${{ runner.temp }}/gh-aw/actions
|
|
1580
|
+
job-name: ${{ github.job }}
|
|
1581
|
+
trace-id: ${{ needs.activation.outputs.setup-trace-id }}
|
|
1582
|
+
parent-span-id: ${{ needs.activation.outputs.setup-parent-span-id || needs.activation.outputs.setup-span-id }}
|
|
1583
|
+
env:
|
|
1584
|
+
GH_AW_SETUP_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
1585
|
+
GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/add-community-bundle.lock.yml@${{ github.ref }}
|
|
1586
|
+
GH_AW_INFO_VERSION: "1.0.80"
|
|
1587
|
+
GH_AW_INFO_AWF_VERSION: "v0.28.14"
|
|
1588
|
+
GH_AW_INFO_ENGINE_ID: "copilot"
|
|
1589
|
+
- name: Download activation artifact
|
|
1590
|
+
continue-on-error: true
|
|
1591
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
1592
|
+
with:
|
|
1593
|
+
name: activation
|
|
1594
|
+
path: /tmp/gh-aw
|
|
1595
|
+
- name: Download agent output artifact
|
|
1596
|
+
id: download-agent-output
|
|
1597
|
+
continue-on-error: true
|
|
1598
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
1599
|
+
with:
|
|
1600
|
+
pattern: "{agent,agent-output-fallback}"
|
|
1601
|
+
merge-multiple: true
|
|
1602
|
+
path: /tmp/gh-aw/
|
|
1603
|
+
- name: Setup agent output environment variable
|
|
1604
|
+
id: setup-agent-output-env
|
|
1605
|
+
if: steps.download-agent-output.outcome == 'success'
|
|
1606
|
+
run: |
|
|
1607
|
+
mkdir -p /tmp/gh-aw/
|
|
1608
|
+
find "/tmp/gh-aw/" -type f -print
|
|
1609
|
+
if [ -f "/tmp/gh-aw/agent_output.json" ]; then
|
|
1610
|
+
echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"
|
|
1611
|
+
fi
|
|
1612
|
+
- name: Checkout repository for patch context
|
|
1613
|
+
if: needs.agent.outputs.has_patch == 'true'
|
|
1614
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
1615
|
+
with:
|
|
1616
|
+
persist-credentials: false
|
|
1617
|
+
# --- Threat Detection ---
|
|
1618
|
+
- name: Clean stale firewall files from agent artifact
|
|
1619
|
+
run: |
|
|
1620
|
+
rm -rf /tmp/gh-aw/sandbox/firewall/logs
|
|
1621
|
+
rm -rf /tmp/gh-aw/sandbox/firewall/audit
|
|
1622
|
+
- name: Download container images
|
|
1623
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/download_docker_images.sh" ghcr.io/github/gh-aw-firewall/agent:0.28.14@sha256:f7df036c86575527b61f3f7df91c4412349a12b2a74988d929eafa2999230c98 ghcr.io/github/gh-aw-firewall/api-proxy:0.28.14@sha256:6f95e2234dd9bd6333a8ff28ccea7ecf0204acd4a09108723844dbd2bf6268c5 ghcr.io/github/gh-aw-firewall/squid:0.28.14@sha256:2ce8df3abf3e9b76e9c0cf5863da41f1ab3f89b20ad14b988806ab89e7bf2cd5
|
|
1624
|
+
- name: Check if detection needed
|
|
1625
|
+
id: detection_guard
|
|
1626
|
+
if: always()
|
|
1627
|
+
env:
|
|
1628
|
+
OUTPUT_TYPES: ${{ needs.agent.outputs.output_types }}
|
|
1629
|
+
HAS_PATCH: ${{ needs.agent.outputs.has_patch }}
|
|
1630
|
+
run: |
|
|
1631
|
+
if [[ -n "$OUTPUT_TYPES" || "$HAS_PATCH" == "true" ]]; then
|
|
1632
|
+
echo "run_detection=true" >> "$GITHUB_OUTPUT"
|
|
1633
|
+
echo "Detection will run: output_types=$OUTPUT_TYPES, has_patch=$HAS_PATCH"
|
|
1634
|
+
else
|
|
1635
|
+
echo "run_detection=false" >> "$GITHUB_OUTPUT"
|
|
1636
|
+
echo "Detection skipped: no agent outputs or patches to analyze"
|
|
1637
|
+
fi
|
|
1638
|
+
- name: Clear MCP Config for detection
|
|
1639
|
+
if: always() && steps.detection_guard.outputs.run_detection == 'true'
|
|
1640
|
+
run: |
|
|
1641
|
+
rm -f "${RUNNER_TEMP}/gh-aw/mcp-config/mcp-servers.json"
|
|
1642
|
+
rm -f "$HOME/.copilot/mcp-config.json"
|
|
1643
|
+
rm -f "$GITHUB_WORKSPACE/.gemini/settings.json"
|
|
1644
|
+
- name: Prepare threat detection files
|
|
1645
|
+
if: always() && steps.detection_guard.outputs.run_detection == 'true'
|
|
1646
|
+
run: |
|
|
1647
|
+
bash "${RUNNER_TEMP}/gh-aw/actions/prepare_threat_detection_files.sh"
|
|
1648
|
+
- name: Setup threat detection
|
|
1649
|
+
if: always() && steps.detection_guard.outputs.run_detection == 'true'
|
|
1650
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1651
|
+
env:
|
|
1652
|
+
WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
1653
|
+
WORKFLOW_DESCRIPTION: "Process community bundle submission issues - validate, add to catalog, and open a PR for maintainer review"
|
|
1654
|
+
HAS_PATCH: ${{ needs.agent.outputs.has_patch }}
|
|
1655
|
+
GH_AW_DETECTION_CONTINUE_ON_ERROR: "false"
|
|
1656
|
+
GH_AW_DETECTION_SKIP_PROMPT_SUMMARY: "true"
|
|
1657
|
+
with:
|
|
1658
|
+
script: |
|
|
1659
|
+
const path = require('path');
|
|
1660
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1661
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1662
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1663
|
+
const { main } = require(path.join(actionsDir, 'setup_threat_detection.cjs'));
|
|
1664
|
+
await main();
|
|
1665
|
+
- name: Ensure threat-detection directory and log
|
|
1666
|
+
if: always() && steps.detection_guard.outputs.run_detection == 'true'
|
|
1667
|
+
run: |
|
|
1668
|
+
mkdir -p /tmp/gh-aw/threat-detection
|
|
1669
|
+
touch /tmp/gh-aw/threat-detection/detection.log
|
|
1670
|
+
- name: Install AWF binary
|
|
1671
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/install_awf_binary.sh" v0.28.14 --rootless
|
|
1672
|
+
- name: Setup Node.js
|
|
1673
|
+
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
1674
|
+
with:
|
|
1675
|
+
node-version: '24'
|
|
1676
|
+
package-manager-cache: false
|
|
1677
|
+
- name: Install GitHub Copilot CLI
|
|
1678
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/install_copilot_cli.sh"
|
|
1679
|
+
env:
|
|
1680
|
+
GH_HOST: github.com
|
|
1681
|
+
GH_AW_COMPILED_VERSION: v0.88.7
|
|
1682
|
+
- name: Install threat-detect binary
|
|
1683
|
+
if: always() && steps.detection_guard.outputs.run_detection == 'true'
|
|
1684
|
+
run: |
|
|
1685
|
+
bash "${RUNNER_TEMP}/gh-aw/actions/install_threat_detect_binary.sh" v0.5.1
|
|
1686
|
+
- name: Execute threat detection with AWF
|
|
1687
|
+
id: detection_agentic_execution
|
|
1688
|
+
if: always() && steps.detection_guard.outputs.run_detection == 'true'
|
|
1689
|
+
continue-on-error: true
|
|
1690
|
+
timeout-minutes: 10
|
|
1691
|
+
env:
|
|
1692
|
+
AWF_REFLECT_ENABLED: 1
|
|
1693
|
+
COPILOT_AGENT_RUNNER_TYPE: STANDALONE
|
|
1694
|
+
COPILOT_DUMMY_BYOK: dummy-byok-key-for-offline-mode
|
|
1695
|
+
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
|
|
1696
|
+
COPILOT_MODEL: detection
|
|
1697
|
+
GH_AW_HARNESS_MAX_RETRIES: 0
|
|
1698
|
+
GH_AW_LLM_PROVIDER: github
|
|
1699
|
+
GH_AW_MAX_AI_CREDITS: ${{ vars.GH_AW_DEFAULT_DETECTION_MAX_AI_CREDITS || '400' }}
|
|
1700
|
+
GH_AW_MAX_TURNS: ${{ vars.GH_AW_DEFAULT_MAX_TURNS || '' }}
|
|
1701
|
+
GH_AW_PHASE: detection
|
|
1702
|
+
GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt
|
|
1703
|
+
GH_AW_TIMEOUT_MINUTES: 10
|
|
1704
|
+
GH_AW_VERSION: v0.88.7
|
|
1705
|
+
GITHUB_API_URL: ${{ github.api_url }}
|
|
1706
|
+
GITHUB_AW: true
|
|
1707
|
+
GITHUB_COPILOT_INTEGRATION_ID: agentic-workflows
|
|
1708
|
+
GITHUB_HEAD_REF: ${{ github.head_ref }}
|
|
1709
|
+
GITHUB_REF_NAME: ${{ github.ref_name }}
|
|
1710
|
+
GITHUB_SERVER_URL: ${{ github.server_url }}
|
|
1711
|
+
GITHUB_STEP_SUMMARY: /tmp/gh-aw/agent-step-summary.md
|
|
1712
|
+
GITHUB_WORKSPACE: ${{ github.workspace }}
|
|
1713
|
+
GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com
|
|
1714
|
+
GIT_AUTHOR_NAME: github-actions[bot]
|
|
1715
|
+
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com
|
|
1716
|
+
GIT_COMMITTER_NAME: github-actions[bot]
|
|
1717
|
+
RUNNER_TEMP: ${{ runner.temp }}
|
|
1718
|
+
TRACEPARENT: ${{ env.GITHUB_AW_OTEL_TRACE_ID != '' && env.GITHUB_AW_OTEL_PARENT_SPAN_ID != '' && format('00-{0}-{1}-01', env.GITHUB_AW_OTEL_TRACE_ID, env.GITHUB_AW_OTEL_PARENT_SPAN_ID) || '' }}
|
|
1719
|
+
WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
1720
|
+
WORKFLOW_DESCRIPTION: "Process community bundle submission issues - validate, add to catalog, and open a PR for maintainer review"
|
|
1721
|
+
HAS_PATCH: ${{ needs.agent.outputs.has_patch }}
|
|
1722
|
+
GH_AW_DETECTION_CONTINUE_ON_ERROR: "false"
|
|
1723
|
+
run: |
|
|
1724
|
+
set -o pipefail
|
|
1725
|
+
printf '%s' "$(date +%s%3N)" > /tmp/gh-aw/agent_cli_start_ms.txt
|
|
1726
|
+
GH_AW_COPILOT_SRC="$(command -v copilot 2>/dev/null || true)"
|
|
1727
|
+
if [ -z "$GH_AW_COPILOT_SRC" ] || [ ! -x "$GH_AW_COPILOT_SRC" ]; then
|
|
1728
|
+
echo "GitHub Copilot CLI executable not found on PATH after installation" >&2
|
|
1729
|
+
exit 127
|
|
1730
|
+
fi
|
|
1731
|
+
GH_AW_COPILOT_BIN="${RUNNER_TEMP}/gh-aw/bin/copilot"
|
|
1732
|
+
mkdir -p "${RUNNER_TEMP}/gh-aw/bin"
|
|
1733
|
+
if [ "$GH_AW_COPILOT_SRC" != "$GH_AW_COPILOT_BIN" ]; then
|
|
1734
|
+
cp "$GH_AW_COPILOT_SRC" "$GH_AW_COPILOT_BIN"
|
|
1735
|
+
fi
|
|
1736
|
+
chmod 755 "$GH_AW_COPILOT_BIN"
|
|
1737
|
+
|
|
1738
|
+
(umask 177 && touch /tmp/gh-aw/threat-detection/detection.log)
|
|
1739
|
+
GH_AW_MAX_AI_CREDITS="${GH_AW_MAX_AI_CREDITS:-400}"
|
|
1740
|
+
if [[ ! "$GH_AW_MAX_AI_CREDITS" =~ ^[0-9]+$ ]]; then
|
|
1741
|
+
GH_AW_MAX_AI_CREDITS="400"
|
|
1742
|
+
fi
|
|
1743
|
+
printf '%s\n' "{\"\$schema\":\"https://github.com/github/gh-aw-firewall/releases/download/v0.28.14/awf-config.schema.json\",\"apiProxy\":{\"enabled\":true,\"enableTokenSteering\":true,\"maxRuns\":500,\"maxAiCredits\":${GH_AW_MAX_AI_CREDITS},\"maxCacheMisses\":5,\"models\":{\"agent\":[\"sonnet-6x\",\"gpt-5.4\",\"gpt-5.5\",\"gpt-5.6\",\"gpt-5.3\",\"gemini-pro\",\"any\"],\"antigravity\":[\"copilot/antigravity*\",\"google/antigravity*\",\"gemini/antigravity*\"],\"any\":[\"copilot/*\",\"anthropic/*\",\"openai/*\",\"google/*\",\"gemini/*\"],\"auto\":[\"copilot/auto\",\"large\"],\"claude\":[\"agent\"],\"codex\":[\"agent\"],\"coding\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\",\"gpt-5-codex\",\"kimi\"],\"computer-use\":[\"copilot/*computer-use*\",\"google/*computer-use*\",\"gemini/*computer-use*\",\"openai/*computer-use*\"],\"copilot\":[\"agent\"],\"deep-research\":[\"copilot/deep-research*\",\"copilot/o3-deep-research*\",\"copilot/o4-mini-deep-research*\",\"google/deep-research*\",\"gemini/deep-research*\",\"openai/o3-deep-research*\",\"openai/o4-mini-deep-research*\"],\"detection\":[\"small\"],\"evals\":[\"small\"],\"fable\":[\"copilot/*fable*\",\"anthropic/*fable*\"],\"gemini\":[\"agent\"],\"gemini-3-flash\":[\"copilot/gemini-3*flash*\",\"google/gemini-3*flash*\",\"gemini/gemini-3*flash*\"],\"gemini-3-pro\":[\"copilot/gemini-3*pro*\",\"google/gemini-3*pro*\",\"google/nano-banana*\",\"gemini/gemini-3*pro*\"],\"gemini-3.1-flash\":[\"copilot/gemini-3.1*flash*\",\"google/gemini-3.1*flash*\",\"gemini/gemini-3.1*flash*\"],\"gemini-3.1-pro\":[\"copilot/gemini-3.1*pro*\",\"google/gemini-3.1*pro*\",\"gemini/gemini-3.1*pro*\"],\"gemini-3.5-flash\":[\"copilot/gemini-3.5*flash*\",\"google/gemini-3.5*flash*\",\"gemini/gemini-3.5*flash*\"],\"gemini-3.6-flash\":[\"copilot/gemini-3.6*flash*\",\"google/gemini-3.6*flash*\",\"gemini/gemini-3.6*flash*\"],\"gemini-3.7-flash\":[\"copilot/gemini-3.7*flash*\",\"google/gemini-3.7*flash*\",\"gemini/gemini-3.7*flash*\"],\"gemini-flash\":[\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"],\"gemini-flash-lite\":[\"copilot/gemini-*flash*lite*\",\"google/gemini-*flash*lite*\",\"gemini/gemini-*flash*lite*\"],\"gemini-omni\":[\"copilot/gemini-omni*\",\"google/gemini-omni*\",\"gemini/gemini-omni*\"],\"gemini-pro\":[\"copilot/gemini-*pro*\",\"google/gemini-*pro*\",\"gemini/gemini-*pro*\"],\"gemma\":[\"copilot/gemma*\",\"google/gemma*\",\"gemini/gemma*\"],\"gpt-5\":[\"copilot/gpt-5*\",\"openai/gpt-5*\"],\"gpt-5-codex\":[\"copilot/gpt-5*codex*\",\"openai/gpt-5*codex*\"],\"gpt-5-mini\":[\"copilot/gpt-5*mini*\",\"openai/gpt-5*mini*\"],\"gpt-5-nano\":[\"copilot/gpt-5*nano*\",\"openai/gpt-5*nano*\"],\"gpt-5-pro\":[\"copilot/gpt-5*pro*\",\"openai/gpt-5*pro*\"],\"gpt-5.1\":[\"copilot/gpt-5.1*\",\"openai/gpt-5.1*\"],\"gpt-5.2\":[\"copilot/gpt-5.2*\",\"openai/gpt-5.2*\"],\"gpt-5.3\":[\"copilot/gpt-5.3*\",\"openai/gpt-5.3*\"],\"gpt-5.4\":[\"copilot/gpt-5.4*\",\"openai/gpt-5.4*\"],\"gpt-5.5\":[\"copilot/gpt-5.5*\",\"openai/gpt-5.5*\"],\"gpt-5.6\":[\"copilot/gpt-5.6*\",\"openai/gpt-5.6*\"],\"grok\":[\"copilot/*grok*\",\"openai/*grok*\"],\"haiku\":[\"copilot/*haiku*\",\"anthropic/*haiku*\"],\"image-generation\":[\"copilot/gpt-image*\",\"openai/gpt-image*\",\"openai/chatgpt-image*\",\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"google/imagen*\"],\"kimi\":[\"copilot/kimi*\",\"openai/kimi*\"],\"kiwi\":[\"copilot/kiwi*\",\"openai/kiwi*\"],\"large\":[\"sonnet\",\"gpt-5-pro\",\"gpt-5\",\"gemini-pro\"],\"lyria\":[\"google/lyria*\",\"gemini/lyria*\",\"copilot/lyria*\"],\"mai-code\":[\"copilot/MAI-Code*\",\"copilot/mai-code*\",\"openai/MAI-Code*\"],\"mai-code-1-flash-picker\":[\"copilot/MAI-Code-1-Flash-picker*\",\"copilot/mai-code-1-flash-picker*\",\"openai/MAI-Code-1-Flash-picker*\"],\"mini\":[\"haiku\",\"gpt-5-mini\",\"gpt-5-nano\",\"gemini-flash-lite\"],\"nano-banana\":[\"copilot/nano-banana*\",\"google/nano-banana*\",\"gemini/nano-banana*\"],\"opus\":[\"copilot/*opus*\",\"anthropic/*opus*\"],\"opusplan\":[\"opus?effort=high\"],\"raptor-mini\":[\"copilot/raptor*\",\"openai/raptor*\"],\"reasoning\":[\"copilot/o1*\",\"copilot/o3*\",\"copilot/o4*\",\"openai/o1*\",\"openai/o3*\",\"openai/o4*\"],\"robotics\":[\"copilot/*robotics*\",\"google/*robotics*\",\"gemini/*robotics*\"],\"small\":[\"mini\"],\"small-agent\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash\"],\"sonnet\":[\"copilot/*sonnet*\",\"anthropic/*sonnet*\"],\"sonnet-6x\":[\"copilot/*sonnet-4.5*\",\"copilot/*sonnet-4.6*\",\"copilot/*sonnet-5*\",\"copilot/*sonnet-4-5-*\",\"anthropic/*sonnet-4-5-*\",\"copilot/*sonnet-4-6*\",\"anthropic/*sonnet-4-6*\",\"anthropic/*sonnet-5*\"],\"summarization\":[\"haiku\",\"gpt-5-mini\",\"gemini-flash-lite\",\"mini\"],\"veo\":[\"google/veo*\",\"gemini/veo*\"],\"vision\":[\"copilot/gemini-*image*\",\"google/gemini-*image*\",\"gemini/gemini-*image*\",\"copilot/gemini-*flash*\",\"google/gemini-*flash*\",\"gemini/gemini-*flash*\"]}},\"container\":{\"imageTag\":\"0.28.14,squid=sha256:2ce8df3abf3e9b76e9c0cf5863da41f1ab3f89b20ad14b988806ab89e7bf2cd5,agent=sha256:f7df036c86575527b61f3f7df91c4412349a12b2a74988d929eafa2999230c98,api-proxy=sha256:6f95e2234dd9bd6333a8ff28ccea7ecf0204acd4a09108723844dbd2bf6268c5,cli-proxy=sha256:3a379c5e96e29499c815e9dd2a71334d01c326a9b73991c76544fda9cae35c34\"},\"logging\":{\"proxyLogsDir\":\"/tmp/gh-aw/sandbox/firewall/logs\",\"auditDir\":\"/tmp/gh-aw/sandbox/firewall/audit\"}}" > "${RUNNER_TEMP}/gh-aw/awf-config.json"
|
|
1744
|
+
cp "${RUNNER_TEMP}/gh-aw/awf-config.json" /tmp/gh-aw/awf-config.json
|
|
1745
|
+
export GH_AW_MODELS_JSON_PATH="/tmp/gh-aw/models.json"
|
|
1746
|
+
GH_AW_DOCKER_HOST=""
|
|
1747
|
+
if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then
|
|
1748
|
+
GH_AW_DOCKER_HOST="${DOCKER_HOST}"
|
|
1749
|
+
fi
|
|
1750
|
+
if [[ "${DOCKER_HOST:-}" =~ ^tcp:// ]]; then
|
|
1751
|
+
_GH_AW_CHROOT_JSON=$(jq -c --arg src "${RUNNER_TEMP}/gh-aw" --arg user "$(id -un)" --argjson uid "$(id -u)" --argjson gid "$(id -g)" --arg home "${RUNNER_TEMP}/gh-aw/home" '.chroot={"binariesSourcePath":$src,"identity":{"user":$user,"uid":$uid,"gid":$gid,"home":$home}}' "${RUNNER_TEMP}/gh-aw/awf-config.json") || { echo "chroot config patch failed" >&2; exit 1; }
|
|
1752
|
+
printf '%s\n' "$_GH_AW_CHROOT_JSON" > "${RUNNER_TEMP}/gh-aw/awf-config.json"
|
|
1753
|
+
fi
|
|
1754
|
+
GH_AW_TOOL_CACHE_MOUNT=""
|
|
1755
|
+
GH_AW_TOOL_CACHE="${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"
|
|
1756
|
+
if [ -d "$GH_AW_TOOL_CACHE" ]; then
|
|
1757
|
+
if [[ "$GH_AW_TOOL_CACHE" != /opt/* ]]; then
|
|
1758
|
+
GH_AW_TOOL_CACHE_MOUNT="$GH_AW_TOOL_CACHE:$GH_AW_TOOL_CACHE:ro"
|
|
1759
|
+
fi
|
|
1760
|
+
fi
|
|
1761
|
+
# shellcheck disable=SC1003,SC2016,SC2086
|
|
1762
|
+
awf --config "${RUNNER_TEMP}/gh-aw/awf-config.json" --container-workdir "${GITHUB_WORKSPACE}" --mount "${RUNNER_TEMP}/gh-aw:${RUNNER_TEMP}/gh-aw:ro" --mount "${RUNNER_TEMP}/gh-aw:/host${RUNNER_TEMP}/gh-aw:ro" ${GH_AW_TOOL_CACHE_MOUNT:+--mount "$GH_AW_TOOL_CACHE_MOUNT"} ${GH_AW_DOCKER_HOST:+--docker-host "$GH_AW_DOCKER_HOST"} --env-all --exclude-env ACTIONS_ID_TOKEN_REQUEST_TOKEN --exclude-env ACTIONS_ID_TOKEN_REQUEST_URL --exclude-env COPILOT_GITHUB_TOKEN --mount /tmp/gh-aw:/tmp/gh-aw:rw --mount /tmp/gh-aw/threat-detection:/tmp/gh-aw/threat-detection:rw --log-level info --skip-pull \
|
|
1763
|
+
-- /bin/bash -c 'set +o histexpand; export PATH="${RUNNER_TEMP}/gh-aw/bin:$PATH" && : "${RUNNER_TOOL_CACHE:?RUNNER_TOOL_CACHE must be set}"; GH_AW_TOOL_CACHE="$RUNNER_TOOL_CACHE"; GH_AW_TOOL_BINS="$(find "$GH_AW_TOOL_CACHE" -maxdepth 5 -type d -name bin 2>/dev/null | tr '\''\n'\'' '\'':'\'')"; GH_AW_TOOL_BINS="${GH_AW_TOOL_BINS%:}"; export PATH="$PATH${GH_AW_TOOL_BINS:+:}$GH_AW_TOOL_BINS"; [ -n "$GOROOT" ] && export PATH="$GOROOT/bin:$PATH" || true; [ -n "$ERLANG_HOME" ] && export PATH="$ERLANG_HOME/bin:$PATH" || true && threat-detect --engine copilot --output /tmp/gh-aw/threat-detection/detection_result.json /tmp/gh-aw/threat-detection' 2>&1 | tee -a /tmp/gh-aw/threat-detection/detection.log
|
|
1764
|
+
- name: Render detection log
|
|
1765
|
+
if: always() && steps.detection_guard.outputs.run_detection == 'true'
|
|
1766
|
+
continue-on-error: true
|
|
1767
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1768
|
+
with:
|
|
1769
|
+
script: |
|
|
1770
|
+
const path = require('path');
|
|
1771
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1772
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1773
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1774
|
+
const { main } = require(path.join(actionsDir, 'render_detection_log.cjs'));
|
|
1775
|
+
await main();
|
|
1776
|
+
- name: Copy detection firewall logs
|
|
1777
|
+
if: always() && steps.detection_guard.outputs.run_detection == 'true'
|
|
1778
|
+
continue-on-error: true
|
|
1779
|
+
run: |
|
|
1780
|
+
mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall
|
|
1781
|
+
if [ -d /tmp/gh-aw/sandbox/firewall/logs ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/logs && cp -r /tmp/gh-aw/sandbox/firewall/logs/. /tmp/gh-aw/threat-detection/sandbox/firewall/logs/; fi
|
|
1782
|
+
if [ -d /tmp/gh-aw/sandbox/firewall/audit ]; then mkdir -p /tmp/gh-aw/threat-detection/sandbox/firewall/audit && cp -r /tmp/gh-aw/sandbox/firewall/audit/. /tmp/gh-aw/threat-detection/sandbox/firewall/audit/; fi
|
|
1783
|
+
- name: Upload threat detection artifact
|
|
1784
|
+
if: always() && steps.detection_guard.outputs.run_detection == 'true'
|
|
1785
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
1786
|
+
with:
|
|
1787
|
+
name: detection
|
|
1788
|
+
path: |
|
|
1789
|
+
/tmp/gh-aw/threat-detection/detection_result.json
|
|
1790
|
+
/tmp/gh-aw/threat-detection/sandbox/firewall/logs/
|
|
1791
|
+
/tmp/gh-aw/threat-detection/sandbox/firewall/audit/
|
|
1792
|
+
if-no-files-found: ignore
|
|
1793
|
+
- name: Parse threat detection token usage for step summary
|
|
1794
|
+
id: parse_detection_token_usage
|
|
1795
|
+
if: always()
|
|
1796
|
+
continue-on-error: true
|
|
1797
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1798
|
+
env:
|
|
1799
|
+
GH_AW_TOKEN_USAGE_SUMMARY_TITLE: Threat Detection Token Usage
|
|
1800
|
+
with:
|
|
1801
|
+
script: |
|
|
1802
|
+
const path = require('path');
|
|
1803
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1804
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1805
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1806
|
+
const { main } = require(path.join(actionsDir, 'parse_token_usage.cjs'));
|
|
1807
|
+
await main();
|
|
1808
|
+
- name: Conclude threat detection
|
|
1809
|
+
id: detection_conclusion
|
|
1810
|
+
if: always()
|
|
1811
|
+
env:
|
|
1812
|
+
RUN_DETECTION: ${{ steps.detection_guard.outputs.run_detection }}
|
|
1813
|
+
DETECTION_AGENTIC_EXECUTION_OUTCOME: ${{ steps.detection_agentic_execution.outcome }}
|
|
1814
|
+
GH_AW_DETECTION_CONTINUE_ON_ERROR: "false"
|
|
1815
|
+
run: |
|
|
1816
|
+
bash "${RUNNER_TEMP}/gh-aw/actions/conclude_threat_detection.sh" /tmp/gh-aw/threat-detection/detection_result.json
|
|
1817
|
+
|
|
1818
|
+
pre_activation:
|
|
1819
|
+
if: github.event_name != 'issues' || github.event.action != 'labeled' || github.event.label.name == 'bundle-submission'
|
|
1820
|
+
runs-on: ubuntu-slim
|
|
1821
|
+
env:
|
|
1822
|
+
GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}
|
|
1823
|
+
outputs:
|
|
1824
|
+
activated: ${{ steps.check_membership.outputs.is_team_member == 'true' && steps.check_skip_bots.outputs.skip_bots_ok == 'true' }}
|
|
1825
|
+
matched_command: ''
|
|
1826
|
+
setup-parent-span-id: ${{ steps.setup.outputs.parent-span-id || steps.setup.outputs.span-id }}
|
|
1827
|
+
setup-span-id: ${{ steps.setup.outputs.span-id }}
|
|
1828
|
+
setup-trace-id: ${{ steps.setup.outputs.trace-id }}
|
|
1829
|
+
steps:
|
|
1830
|
+
- name: Setup Scripts
|
|
1831
|
+
id: setup
|
|
1832
|
+
uses: github/gh-aw-actions/setup@5e508589e03a7757a7e05b26e834292f5445bfb6 # v0.88.7
|
|
1833
|
+
with:
|
|
1834
|
+
destination: ${{ runner.temp }}/gh-aw/actions
|
|
1835
|
+
job-name: ${{ github.job }}
|
|
1836
|
+
env:
|
|
1837
|
+
GH_AW_SETUP_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
1838
|
+
GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/add-community-bundle.lock.yml@${{ github.ref }}
|
|
1839
|
+
GH_AW_INFO_VERSION: "1.0.80"
|
|
1840
|
+
GH_AW_INFO_AWF_VERSION: "v0.28.14"
|
|
1841
|
+
GH_AW_INFO_ENGINE_ID: "copilot"
|
|
1842
|
+
- name: Check team membership for workflow
|
|
1843
|
+
id: check_membership
|
|
1844
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1845
|
+
env:
|
|
1846
|
+
GH_AW_REQUIRED_ROLES: "admin,maintainer,write"
|
|
1847
|
+
with:
|
|
1848
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
1849
|
+
script: |
|
|
1850
|
+
const path = require('path');
|
|
1851
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1852
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1853
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1854
|
+
const { main } = require(path.join(actionsDir, 'check_membership.cjs'));
|
|
1855
|
+
await main();
|
|
1856
|
+
- name: Check skip-bots
|
|
1857
|
+
id: check_skip_bots
|
|
1858
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1859
|
+
env:
|
|
1860
|
+
GH_AW_SKIP_BOTS: "github-actions,copilot-swe-agent,Copilot,copilot,@app/copilot-swe-agent,dependabot"
|
|
1861
|
+
GH_AW_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
1862
|
+
with:
|
|
1863
|
+
script: |
|
|
1864
|
+
const path = require('path');
|
|
1865
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1866
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1867
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1868
|
+
const { main } = require(path.join(actionsDir, 'check_skip_bots.cjs'));
|
|
1869
|
+
await main();
|
|
1870
|
+
|
|
1871
|
+
safe_outputs:
|
|
1872
|
+
needs:
|
|
1873
|
+
- activation
|
|
1874
|
+
- agent
|
|
1875
|
+
- detection
|
|
1876
|
+
if: (!cancelled()) && needs.agent.result != 'skipped' && needs.detection.result == 'success'
|
|
1877
|
+
runs-on: ubuntu-slim
|
|
1878
|
+
permissions:
|
|
1879
|
+
contents: write
|
|
1880
|
+
issues: write
|
|
1881
|
+
pull-requests: write
|
|
1882
|
+
timeout-minutes: 45
|
|
1883
|
+
env:
|
|
1884
|
+
GH_AW_AGENT_AIC: ${{ needs.agent.outputs.aic }}
|
|
1885
|
+
GH_AW_AIC: ${{ needs.agent.outputs.aic }}
|
|
1886
|
+
GH_AW_AMBIENT_CONTEXT: ${{ needs.agent.outputs.ambient_context }}
|
|
1887
|
+
GH_AW_CALLER_WORKFLOW_ID: "${{ github.repository }}/add-community-bundle"
|
|
1888
|
+
GH_AW_DETECTION_CONCLUSION: ${{ needs.detection.outputs.detection_conclusion }}
|
|
1889
|
+
GH_AW_DETECTION_REASON: ${{ needs.detection.outputs.detection_reason }}
|
|
1890
|
+
GH_AW_EFFECTIVE_TOKENS: ${{ needs.agent.outputs.effective_tokens }}
|
|
1891
|
+
GH_AW_ENGINE_ID: "copilot"
|
|
1892
|
+
GH_AW_ENGINE_MODEL: ${{ needs.agent.outputs.model }}
|
|
1893
|
+
GH_AW_RUNTIME_FEATURES: ${{ vars.GH_AW_RUNTIME_FEATURES }}
|
|
1894
|
+
GH_AW_THREAT_DETECTION_AIC: ${{ needs.detection.outputs.aic }}
|
|
1895
|
+
GH_AW_WORKFLOW_EMOJI: "📦"
|
|
1896
|
+
GH_AW_WORKFLOW_ID: "add-community-bundle"
|
|
1897
|
+
GH_AW_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
1898
|
+
GH_AW_WORKFLOW_SOURCE_URL: "${{ github.server_url }}/${{ github.repository }}/blob/${{ github.ref_name }}/.github/workflows/add-community-bundle.md"
|
|
1899
|
+
outputs:
|
|
1900
|
+
code_push_failure_count: ${{ steps.process_safe_outputs.outputs.code_push_failure_count }}
|
|
1901
|
+
code_push_failure_errors: ${{ steps.process_safe_outputs.outputs.code_push_failure_errors }}
|
|
1902
|
+
comment_id: ${{ steps.process_safe_outputs.outputs.comment_id }}
|
|
1903
|
+
comment_url: ${{ steps.process_safe_outputs.outputs.comment_url }}
|
|
1904
|
+
create_discussion_error_count: ${{ steps.process_safe_outputs.outputs.create_discussion_error_count }}
|
|
1905
|
+
create_discussion_errors: ${{ steps.process_safe_outputs.outputs.create_discussion_errors }}
|
|
1906
|
+
created_pr_number: ${{ steps.process_safe_outputs.outputs.created_pr_number }}
|
|
1907
|
+
created_pr_url: ${{ steps.process_safe_outputs.outputs.created_pr_url }}
|
|
1908
|
+
process_safe_outputs_items_applied: ${{ steps.process_safe_outputs.outputs.items_applied }}
|
|
1909
|
+
process_safe_outputs_items_cancelled: ${{ steps.process_safe_outputs.outputs.items_cancelled }}
|
|
1910
|
+
process_safe_outputs_items_deferred: ${{ steps.process_safe_outputs.outputs.items_deferred }}
|
|
1911
|
+
process_safe_outputs_items_failed: ${{ steps.process_safe_outputs.outputs.items_failed }}
|
|
1912
|
+
process_safe_outputs_items_skipped: ${{ steps.process_safe_outputs.outputs.items_skipped }}
|
|
1913
|
+
process_safe_outputs_items_succeeded: ${{ steps.process_safe_outputs.outputs.items_succeeded }}
|
|
1914
|
+
process_safe_outputs_items_warnings: ${{ steps.process_safe_outputs.outputs.items_warnings }}
|
|
1915
|
+
process_safe_outputs_processed_count: ${{ steps.process_safe_outputs.outputs.processed_count }}
|
|
1916
|
+
process_safe_outputs_status: ${{ steps.process_safe_outputs.outputs.status }}
|
|
1917
|
+
process_safe_outputs_temporary_id_map: ${{ steps.process_safe_outputs.outputs.temporary_id_map }}
|
|
1918
|
+
steps:
|
|
1919
|
+
- name: Setup Scripts
|
|
1920
|
+
id: setup
|
|
1921
|
+
uses: github/gh-aw-actions/setup@5e508589e03a7757a7e05b26e834292f5445bfb6 # v0.88.7
|
|
1922
|
+
with:
|
|
1923
|
+
destination: ${{ runner.temp }}/gh-aw/actions
|
|
1924
|
+
job-name: ${{ github.job }}
|
|
1925
|
+
trace-id: ${{ needs.activation.outputs.setup-trace-id }}
|
|
1926
|
+
parent-span-id: ${{ needs.activation.outputs.setup-parent-span-id || needs.activation.outputs.setup-span-id }}
|
|
1927
|
+
env:
|
|
1928
|
+
GH_AW_SETUP_WORKFLOW_NAME: "Add Community Bundle from Issue Submission"
|
|
1929
|
+
GH_AW_CURRENT_WORKFLOW_REF: ${{ github.repository }}/.github/workflows/add-community-bundle.lock.yml@${{ github.ref }}
|
|
1930
|
+
GH_AW_INFO_VERSION: "1.0.80"
|
|
1931
|
+
GH_AW_INFO_AWF_VERSION: "v0.28.14"
|
|
1932
|
+
GH_AW_INFO_ENGINE_ID: "copilot"
|
|
1933
|
+
- name: Mask OTLP telemetry headers
|
|
1934
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/mask_otlp_headers.sh"
|
|
1935
|
+
- name: Download agent output artifact
|
|
1936
|
+
id: download-agent-output
|
|
1937
|
+
continue-on-error: true
|
|
1938
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
1939
|
+
with:
|
|
1940
|
+
pattern: "{agent,agent-output-fallback}"
|
|
1941
|
+
merge-multiple: true
|
|
1942
|
+
path: /tmp/gh-aw/
|
|
1943
|
+
- name: Setup agent output environment variable
|
|
1944
|
+
id: setup-agent-output-env
|
|
1945
|
+
if: steps.download-agent-output.outcome == 'success'
|
|
1946
|
+
run: |
|
|
1947
|
+
mkdir -p /tmp/gh-aw/
|
|
1948
|
+
find "/tmp/gh-aw/" -type f -print
|
|
1949
|
+
if [ -f "/tmp/gh-aw/agent_output.json" ]; then
|
|
1950
|
+
echo "GH_AW_AGENT_OUTPUT=/tmp/gh-aw/agent_output.json" >> "$GITHUB_OUTPUT"
|
|
1951
|
+
fi
|
|
1952
|
+
- name: Download patch artifact
|
|
1953
|
+
continue-on-error: true
|
|
1954
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
1955
|
+
with:
|
|
1956
|
+
name: agent
|
|
1957
|
+
path: /tmp/gh-aw/
|
|
1958
|
+
- name: Checkout repository
|
|
1959
|
+
if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'create_pull_request')
|
|
1960
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
1961
|
+
with:
|
|
1962
|
+
persist-credentials: true
|
|
1963
|
+
fetch-depth: 0
|
|
1964
|
+
token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1965
|
+
- name: Configure Git credentials
|
|
1966
|
+
if: (!cancelled()) && needs.agent.result != 'skipped' && contains(needs.agent.outputs.output_types, 'create_pull_request')
|
|
1967
|
+
env:
|
|
1968
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
1969
|
+
GITHUB_SERVER_URL: ${{ github.server_url }}
|
|
1970
|
+
GIT_TOKEN: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1971
|
+
run: bash "${RUNNER_TEMP}/gh-aw/actions/configure_git_credentials.sh"
|
|
1972
|
+
- name: Configure GH_HOST for enterprise compatibility
|
|
1973
|
+
id: ghes-host-config
|
|
1974
|
+
shell: bash
|
|
1975
|
+
run: | # zizmor: ignore[github-env] - GITHUB_SERVER_URL is set by GitHub Actions, not user input.
|
|
1976
|
+
# Derive GH_HOST from GITHUB_SERVER_URL so the gh CLI targets the correct
|
|
1977
|
+
# GitHub instance (GHES/GHEC). On github.com this is a harmless no-op.
|
|
1978
|
+
GH_HOST="${GITHUB_SERVER_URL#https://}"
|
|
1979
|
+
GH_HOST="${GH_HOST#http://}"
|
|
1980
|
+
echo "GH_HOST=${GH_HOST}" >> "$GITHUB_ENV"
|
|
1981
|
+
- name: Process Safe Outputs
|
|
1982
|
+
id: process_safe_outputs
|
|
1983
|
+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
|
|
1984
|
+
env:
|
|
1985
|
+
GH_AW_AGENT_OUTPUT: ${{ steps.setup-agent-output-env.outputs.GH_AW_AGENT_OUTPUT }}
|
|
1986
|
+
GH_AW_COMMENT_ID: ${{ needs.activation.outputs.comment_id }}
|
|
1987
|
+
GH_AW_ALLOWED_DOMAINS: "api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,release-assets.githubusercontent.com,s.symcb.com,s.symcd.com,security.ubuntu.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com,www.googleapis.com"
|
|
1988
|
+
GITHUB_SERVER_URL: ${{ github.server_url }}
|
|
1989
|
+
GITHUB_API_URL: ${{ github.api_url }}
|
|
1990
|
+
GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"add_comment\":{\"max\":2},\"add_labels\":{\"allowed\":[\"bundle-submission\",\"validation-passed\",\"validation-failed\",\"needs-info\"],\"max\":3},\"create_pull_request\":{\"allowed_files\":[\"bundles/catalog.community.json\",\"docs/community/bundles.md\"],\"draft\":true,\"labels\":[\"bundle-submission\",\"automated\"],\"max\":1,\"max_patch_files\":100,\"max_patch_size\":4096,\"protect_top_level_dot_folders\":true,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"CODEOWNERS\",\"DESIGN.md\",\"CONTRIBUTING.md\",\"SECURITY.md\",\"CODE_OF_CONDUCT.md\",\"AGENTS.md\"],\"protected_files_policy\":\"blocked\",\"title_prefix\":\"[bundle] \"},\"create_report_incomplete_issue\":{},\"missing_data\":{},\"missing_tool\":{},\"noop\":{\"max\":1,\"report-as-issue\":\"false\"},\"remove_labels\":{\"allowed\":[\"validation-passed\",\"validation-failed\",\"needs-info\"]},\"report_incomplete\":{}}"
|
|
1991
|
+
GH_AW_CI_TRIGGER_TOKEN: ${{ secrets.GH_AW_CI_TRIGGER_TOKEN }}
|
|
1992
|
+
with:
|
|
1993
|
+
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
|
1994
|
+
script: |
|
|
1995
|
+
const path = require('path');
|
|
1996
|
+
const actionsDir = path.join(process.env.RUNNER_TEMP, 'gh-aw', 'actions');
|
|
1997
|
+
const { setupGlobals } = require(path.join(actionsDir, 'setup_globals.cjs'));
|
|
1998
|
+
setupGlobals(core, github, context, exec, io, getOctokit);
|
|
1999
|
+
const { main } = require(path.join(actionsDir, 'process_safe_outputs.cjs'));
|
|
2000
|
+
await main();
|
|
2001
|
+
- name: Upload Safe Outputs Items
|
|
2002
|
+
if: always()
|
|
2003
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
2004
|
+
with:
|
|
2005
|
+
name: safe-outputs-items
|
|
2006
|
+
path: |
|
|
2007
|
+
/tmp/gh-aw/safe-output-items.jsonl
|
|
2008
|
+
/tmp/gh-aw/temporary-id-map.json
|
|
2009
|
+
/tmp/gh-aw/safe-output-errors.json
|
|
2010
|
+
if-no-files-found: ignore
|