diff --git a/.github/workflows/agent-performance-analyzer.lock.yml b/.github/workflows/agent-performance-analyzer.lock.yml index 6c9e45793af..d9fb4105010 100644 --- a/.github/workflows/agent-performance-analyzer.lock.yml +++ b/.github/workflows/agent-performance-analyzer.lock.yml @@ -66,7 +66,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2837,7 +2838,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/ai-moderator.lock.yml b/.github/workflows/ai-moderator.lock.yml index 2e2b835958b..9e77539bd89 100644 --- a/.github/workflows/ai-moderator.lock.yml +++ b/.github/workflows/ai-moderator.lock.yml @@ -81,7 +81,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Lock issue for agent workflow id: lock-issue if: (github.event_name == 'issues') || (github.event_name == 'issue_comment') @@ -2386,7 +2387,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/archie.lock.yml b/.github/workflows/archie.lock.yml index 1535d1f5ef9..60cd732edde 100644 --- a/.github/workflows/archie.lock.yml +++ b/.github/workflows/archie.lock.yml @@ -86,7 +86,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Compute current body text id: compute-text uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -115,7 +116,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2474,7 +2476,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6338,7 +6340,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/artifacts-summary.lock.yml b/.github/workflows/artifacts-summary.lock.yml index 2507adde356..76ff6f11f05 100644 --- a/.github/workflows/artifacts-summary.lock.yml +++ b/.github/workflows/artifacts-summary.lock.yml @@ -69,7 +69,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2280,7 +2281,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/audit-workflows.lock.yml b/.github/workflows/audit-workflows.lock.yml index a39c7f67d63..e389f54209c 100644 --- a/.github/workflows/audit-workflows.lock.yml +++ b/.github/workflows/audit-workflows.lock.yml @@ -71,7 +71,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2572,7 +2573,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/blog-auditor.lock.yml b/.github/workflows/blog-auditor.lock.yml index c59dea0dd1b..8e737a7b46e 100644 --- a/.github/workflows/blog-auditor.lock.yml +++ b/.github/workflows/blog-auditor.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2491,7 +2492,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/brave.lock.yml b/.github/workflows/brave.lock.yml index a9a6eccec17..f0372a2b55e 100644 --- a/.github/workflows/brave.lock.yml +++ b/.github/workflows/brave.lock.yml @@ -78,7 +78,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Compute current body text id: compute-text uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -107,7 +108,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2369,7 +2371,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6217,7 +6219,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/breaking-change-checker.lock.yml b/.github/workflows/breaking-change-checker.lock.yml index 7bf832c5aaf..2177c080383 100644 --- a/.github/workflows/breaking-change-checker.lock.yml +++ b/.github/workflows/breaking-change-checker.lock.yml @@ -66,7 +66,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2396,7 +2397,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6263,7 +6264,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_skip_if_match.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_skip_if_match.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/campaign-generator.lock.yml b/.github/workflows/campaign-generator.lock.yml index 6e907a1a197..363ae4823cf 100644 --- a/.github/workflows/campaign-generator.lock.yml +++ b/.github/workflows/campaign-generator.lock.yml @@ -69,7 +69,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Lock issue for agent workflow id: lock-issue if: (github.event_name == 'issues') || (github.event_name == 'issue_comment') @@ -2311,7 +2312,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/campaign-manager.lock.yml b/.github/workflows/campaign-manager.lock.yml index 1c3935ee4b0..e182218f427 100644 --- a/.github/workflows/campaign-manager.lock.yml +++ b/.github/workflows/campaign-manager.lock.yml @@ -66,7 +66,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2705,7 +2706,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/changeset.lock.yml b/.github/workflows/changeset.lock.yml index 66c5d83d498..3a3b847c748 100644 --- a/.github/workflows/changeset.lock.yml +++ b/.github/workflows/changeset.lock.yml @@ -86,7 +86,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Compute current body text id: compute-text uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -113,7 +114,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2516,7 +2518,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/ci-coach.lock.yml b/.github/workflows/ci-coach.lock.yml index edee99b38d6..f130284ad75 100644 --- a/.github/workflows/ci-coach.lock.yml +++ b/.github/workflows/ci-coach.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -3096,7 +3097,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/ci-doctor.lock.yml b/.github/workflows/ci-doctor.lock.yml index 6b84ef2339f..b7fb9b21bd7 100644 --- a/.github/workflows/ci-doctor.lock.yml +++ b/.github/workflows/ci-doctor.lock.yml @@ -79,7 +79,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2489,7 +2490,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6347,7 +6348,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_stop_time.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_stop_time.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/cli-consistency-checker.lock.yml b/.github/workflows/cli-consistency-checker.lock.yml index da8c7d6079e..f6e37222eab 100644 --- a/.github/workflows/cli-consistency-checker.lock.yml +++ b/.github/workflows/cli-consistency-checker.lock.yml @@ -63,7 +63,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2412,7 +2413,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/cli-version-checker.lock.yml b/.github/workflows/cli-version-checker.lock.yml index 827ea38e84f..799b99490b2 100644 --- a/.github/workflows/cli-version-checker.lock.yml +++ b/.github/workflows/cli-version-checker.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2585,7 +2586,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/cloclo.lock.yml b/.github/workflows/cloclo.lock.yml index 066d1de8088..e9edb86cac8 100644 --- a/.github/workflows/cloclo.lock.yml +++ b/.github/workflows/cloclo.lock.yml @@ -112,7 +112,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Compute current body text id: compute-text uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -141,7 +142,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2717,7 +2719,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6292,7 +6294,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/close-old-discussions.lock.yml b/.github/workflows/close-old-discussions.lock.yml index c8680ad1b17..09f2b5758d9 100644 --- a/.github/workflows/close-old-discussions.lock.yml +++ b/.github/workflows/close-old-discussions.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2388,7 +2389,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/commit-changes-analyzer.lock.yml b/.github/workflows/commit-changes-analyzer.lock.yml index 92fd48301fb..d2d916e1663 100644 --- a/.github/workflows/commit-changes-analyzer.lock.yml +++ b/.github/workflows/commit-changes-analyzer.lock.yml @@ -70,7 +70,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2446,7 +2447,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/copilot-agent-analysis.lock.yml b/.github/workflows/copilot-agent-analysis.lock.yml index 1548bf2f496..64ed7931123 100644 --- a/.github/workflows/copilot-agent-analysis.lock.yml +++ b/.github/workflows/copilot-agent-analysis.lock.yml @@ -70,7 +70,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2808,7 +2809,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/copilot-pr-merged-report.lock.yml b/.github/workflows/copilot-pr-merged-report.lock.yml index caa35557f9d..b91751885a7 100644 --- a/.github/workflows/copilot-pr-merged-report.lock.yml +++ b/.github/workflows/copilot-pr-merged-report.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -3661,7 +3662,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/copilot-pr-nlp-analysis.lock.yml b/.github/workflows/copilot-pr-nlp-analysis.lock.yml index 98e1ec55198..7283dd2bb21 100644 --- a/.github/workflows/copilot-pr-nlp-analysis.lock.yml +++ b/.github/workflows/copilot-pr-nlp-analysis.lock.yml @@ -70,7 +70,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -3127,7 +3128,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/copilot-pr-prompt-analysis.lock.yml b/.github/workflows/copilot-pr-prompt-analysis.lock.yml index b58b54881f9..3739a4d0f48 100644 --- a/.github/workflows/copilot-pr-prompt-analysis.lock.yml +++ b/.github/workflows/copilot-pr-prompt-analysis.lock.yml @@ -70,7 +70,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2622,7 +2623,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/copilot-session-insights.lock.yml b/.github/workflows/copilot-session-insights.lock.yml index 4aef59ad749..c73a0b5dbfe 100644 --- a/.github/workflows/copilot-session-insights.lock.yml +++ b/.github/workflows/copilot-session-insights.lock.yml @@ -72,7 +72,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -3562,7 +3563,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/craft.lock.yml b/.github/workflows/craft.lock.yml index 0dec303883b..457c2e20935 100644 --- a/.github/workflows/craft.lock.yml +++ b/.github/workflows/craft.lock.yml @@ -74,7 +74,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Compute current body text id: compute-text uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -103,7 +104,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2555,7 +2557,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6404,7 +6406,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/daily-assign-issue-to-user.lock.yml b/.github/workflows/daily-assign-issue-to-user.lock.yml index 45281db0367..bda5ffea800 100644 --- a/.github/workflows/daily-assign-issue-to-user.lock.yml +++ b/.github/workflows/daily-assign-issue-to-user.lock.yml @@ -63,7 +63,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2203,7 +2204,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/daily-choice-test.lock.yml b/.github/workflows/daily-choice-test.lock.yml index ae818fb0b7c..d89d94176f9 100644 --- a/.github/workflows/daily-choice-test.lock.yml +++ b/.github/workflows/daily-choice-test.lock.yml @@ -63,7 +63,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2099,7 +2100,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/daily-code-metrics.lock.yml b/.github/workflows/daily-code-metrics.lock.yml index fa717e9929a..fd3e9001f5e 100644 --- a/.github/workflows/daily-code-metrics.lock.yml +++ b/.github/workflows/daily-code-metrics.lock.yml @@ -69,7 +69,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2319,7 +2320,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/daily-copilot-token-report.lock.yml b/.github/workflows/daily-copilot-token-report.lock.yml index 3d6e269391e..944bab26428 100644 --- a/.github/workflows/daily-copilot-token-report.lock.yml +++ b/.github/workflows/daily-copilot-token-report.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -3224,7 +3225,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/daily-doc-updater.lock.yml b/.github/workflows/daily-doc-updater.lock.yml index 5d481b2ea5c..2cd3baf4acf 100644 --- a/.github/workflows/daily-doc-updater.lock.yml +++ b/.github/workflows/daily-doc-updater.lock.yml @@ -64,7 +64,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2400,7 +2401,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/daily-fact.lock.yml b/.github/workflows/daily-fact.lock.yml index 647626fe7d2..56b6a5452a6 100644 --- a/.github/workflows/daily-fact.lock.yml +++ b/.github/workflows/daily-fact.lock.yml @@ -63,7 +63,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2215,7 +2216,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/daily-file-diet.lock.yml b/.github/workflows/daily-file-diet.lock.yml index 6ebae507714..44c2c9f4d79 100644 --- a/.github/workflows/daily-file-diet.lock.yml +++ b/.github/workflows/daily-file-diet.lock.yml @@ -73,7 +73,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -3165,7 +3166,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -7064,7 +7065,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_skip_if_match.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_skip_if_match.cjs'); + await main(); push_repo_memory: needs: diff --git a/.github/workflows/daily-firewall-report.lock.yml b/.github/workflows/daily-firewall-report.lock.yml index 8ae5903a2b5..e85febf57b5 100644 --- a/.github/workflows/daily-firewall-report.lock.yml +++ b/.github/workflows/daily-firewall-report.lock.yml @@ -70,7 +70,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2693,7 +2694,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/daily-issues-report.lock.yml b/.github/workflows/daily-issues-report.lock.yml index 34ff426095c..de6099a32b6 100644 --- a/.github/workflows/daily-issues-report.lock.yml +++ b/.github/workflows/daily-issues-report.lock.yml @@ -74,7 +74,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -3308,7 +3309,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/daily-malicious-code-scan.lock.yml b/.github/workflows/daily-malicious-code-scan.lock.yml index 83e57636fc1..3b6816981e5 100644 --- a/.github/workflows/daily-malicious-code-scan.lock.yml +++ b/.github/workflows/daily-malicious-code-scan.lock.yml @@ -64,7 +64,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2522,7 +2523,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/daily-multi-device-docs-tester.lock.yml b/.github/workflows/daily-multi-device-docs-tester.lock.yml index 83ebf60290e..f5c593e45c3 100644 --- a/.github/workflows/daily-multi-device-docs-tester.lock.yml +++ b/.github/workflows/daily-multi-device-docs-tester.lock.yml @@ -69,7 +69,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2372,7 +2373,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/daily-news.lock.yml b/.github/workflows/daily-news.lock.yml index c1c7dde40c5..4f73dc8a1fb 100644 --- a/.github/workflows/daily-news.lock.yml +++ b/.github/workflows/daily-news.lock.yml @@ -71,7 +71,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -3016,7 +3017,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/daily-performance-summary.lock.yml b/.github/workflows/daily-performance-summary.lock.yml index 581b6b5ecf6..651129749d5 100644 --- a/.github/workflows/daily-performance-summary.lock.yml +++ b/.github/workflows/daily-performance-summary.lock.yml @@ -70,7 +70,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -4458,7 +4459,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/daily-repo-chronicle.lock.yml b/.github/workflows/daily-repo-chronicle.lock.yml index 0b62e5b211d..aa1396355d8 100644 --- a/.github/workflows/daily-repo-chronicle.lock.yml +++ b/.github/workflows/daily-repo-chronicle.lock.yml @@ -69,7 +69,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2939,7 +2940,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/daily-team-status.lock.yml b/.github/workflows/daily-team-status.lock.yml index 08047dfcad1..4c350c2cf96 100644 --- a/.github/workflows/daily-team-status.lock.yml +++ b/.github/workflows/daily-team-status.lock.yml @@ -77,7 +77,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2287,7 +2288,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -5995,7 +5996,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_stop_time.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_stop_time.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/daily-workflow-updater.lock.yml b/.github/workflows/daily-workflow-updater.lock.yml index b50a70d59fa..08f2cce3421 100644 --- a/.github/workflows/daily-workflow-updater.lock.yml +++ b/.github/workflows/daily-workflow-updater.lock.yml @@ -64,7 +64,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2336,7 +2337,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/deep-report.lock.yml b/.github/workflows/deep-report.lock.yml index 71cfc9aaea2..d5ab9864b8d 100644 --- a/.github/workflows/deep-report.lock.yml +++ b/.github/workflows/deep-report.lock.yml @@ -70,7 +70,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2786,7 +2787,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/dependabot-go-checker.lock.yml b/.github/workflows/dependabot-go-checker.lock.yml index 426eea65760..5846ad7ec0a 100644 --- a/.github/workflows/dependabot-go-checker.lock.yml +++ b/.github/workflows/dependabot-go-checker.lock.yml @@ -63,7 +63,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2681,7 +2682,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/dev-hawk.lock.yml b/.github/workflows/dev-hawk.lock.yml index 32cf26ce7d1..40a3ba70aef 100644 --- a/.github/workflows/dev-hawk.lock.yml +++ b/.github/workflows/dev-hawk.lock.yml @@ -78,7 +78,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2450,7 +2451,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/dev.lock.yml b/.github/workflows/dev.lock.yml index 95dfb0601d9..282c33f3218 100644 --- a/.github/workflows/dev.lock.yml +++ b/.github/workflows/dev.lock.yml @@ -66,7 +66,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2148,7 +2149,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/developer-docs-consolidator.lock.yml b/.github/workflows/developer-docs-consolidator.lock.yml index e302a810b21..c1718613dcb 100644 --- a/.github/workflows/developer-docs-consolidator.lock.yml +++ b/.github/workflows/developer-docs-consolidator.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2952,7 +2953,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/dictation-prompt.lock.yml b/.github/workflows/dictation-prompt.lock.yml index ce0827d6cd6..91139d9c14f 100644 --- a/.github/workflows/dictation-prompt.lock.yml +++ b/.github/workflows/dictation-prompt.lock.yml @@ -67,7 +67,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2263,7 +2264,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/docs-noob-tester.lock.yml b/.github/workflows/docs-noob-tester.lock.yml index d1e7d5de7d7..3776da81b69 100644 --- a/.github/workflows/docs-noob-tester.lock.yml +++ b/.github/workflows/docs-noob-tester.lock.yml @@ -64,7 +64,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2421,7 +2422,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/duplicate-code-detector.lock.yml b/.github/workflows/duplicate-code-detector.lock.yml index b9a8c2ca35a..77b53854bbc 100644 --- a/.github/workflows/duplicate-code-detector.lock.yml +++ b/.github/workflows/duplicate-code-detector.lock.yml @@ -64,7 +64,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2447,7 +2448,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/example-permissions-warning.lock.yml b/.github/workflows/example-permissions-warning.lock.yml index a7de51da350..3f5c61e40f7 100644 --- a/.github/workflows/example-permissions-warning.lock.yml +++ b/.github/workflows/example-permissions-warning.lock.yml @@ -61,7 +61,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -630,7 +631,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/example-workflow-analyzer.lock.yml b/.github/workflows/example-workflow-analyzer.lock.yml index db8ba0dff47..04ab8415699 100644 --- a/.github/workflows/example-workflow-analyzer.lock.yml +++ b/.github/workflows/example-workflow-analyzer.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2202,7 +2203,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/firewall-escape.lock.yml b/.github/workflows/firewall-escape.lock.yml index 84b0e13a90c..dd27e36cbac 100644 --- a/.github/workflows/firewall-escape.lock.yml +++ b/.github/workflows/firewall-escape.lock.yml @@ -74,7 +74,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -841,7 +842,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/firewall.lock.yml b/.github/workflows/firewall.lock.yml index 29c295eedf8..8fcdf343e71 100644 --- a/.github/workflows/firewall.lock.yml +++ b/.github/workflows/firewall.lock.yml @@ -61,7 +61,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -697,7 +698,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/github-mcp-structural-analysis.lock.yml b/.github/workflows/github-mcp-structural-analysis.lock.yml index 70219cbdc75..46145a51c01 100644 --- a/.github/workflows/github-mcp-structural-analysis.lock.yml +++ b/.github/workflows/github-mcp-structural-analysis.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2915,7 +2916,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/github-mcp-tools-report.lock.yml b/.github/workflows/github-mcp-tools-report.lock.yml index 12589f7b702..fd8f7f0691b 100644 --- a/.github/workflows/github-mcp-tools-report.lock.yml +++ b/.github/workflows/github-mcp-tools-report.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2768,7 +2769,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/glossary-maintainer.lock.yml b/.github/workflows/glossary-maintainer.lock.yml index b528a6cd17b..c55ce0d7e14 100644 --- a/.github/workflows/glossary-maintainer.lock.yml +++ b/.github/workflows/glossary-maintainer.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2918,7 +2919,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/go-fan.lock.yml b/.github/workflows/go-fan.lock.yml index a5103e04bec..4b14368eb71 100644 --- a/.github/workflows/go-fan.lock.yml +++ b/.github/workflows/go-fan.lock.yml @@ -67,7 +67,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2556,7 +2557,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/go-file-size-reduction-project64.campaign.g.lock.yml b/.github/workflows/go-file-size-reduction-project64.campaign.g.lock.yml index c4e67f7b070..60900a860b6 100644 --- a/.github/workflows/go-file-size-reduction-project64.campaign.g.lock.yml +++ b/.github/workflows/go-file-size-reduction-project64.campaign.g.lock.yml @@ -64,7 +64,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2445,7 +2446,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/go-logger.lock.yml b/.github/workflows/go-logger.lock.yml index 17cb223c7e0..7a6f21dcaf5 100644 --- a/.github/workflows/go-logger.lock.yml +++ b/.github/workflows/go-logger.lock.yml @@ -64,7 +64,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2474,7 +2475,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/go-pattern-detector.lock.yml b/.github/workflows/go-pattern-detector.lock.yml index 3690e0eff28..6cc9fbefb50 100644 --- a/.github/workflows/go-pattern-detector.lock.yml +++ b/.github/workflows/go-pattern-detector.lock.yml @@ -67,7 +67,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: @@ -2360,7 +2361,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/grumpy-reviewer.lock.yml b/.github/workflows/grumpy-reviewer.lock.yml index 82ee4723f03..d96f51a2db3 100644 --- a/.github/workflows/grumpy-reviewer.lock.yml +++ b/.github/workflows/grumpy-reviewer.lock.yml @@ -79,7 +79,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Compute current body text id: compute-text uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -108,7 +109,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2479,7 +2481,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6332,7 +6334,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/hourly-ci-cleaner.lock.yml b/.github/workflows/hourly-ci-cleaner.lock.yml index 109d79ea2d0..4182a13f928 100644 --- a/.github/workflows/hourly-ci-cleaner.lock.yml +++ b/.github/workflows/hourly-ci-cleaner.lock.yml @@ -67,7 +67,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: @@ -2593,7 +2594,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/human-ai-collaboration.lock.yml b/.github/workflows/human-ai-collaboration.lock.yml index d4ee95c0419..28261aa1b24 100644 --- a/.github/workflows/human-ai-collaboration.lock.yml +++ b/.github/workflows/human-ai-collaboration.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2722,7 +2723,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/incident-response.lock.yml b/.github/workflows/incident-response.lock.yml index cffc3e796a5..448fd57b4dc 100644 --- a/.github/workflows/incident-response.lock.yml +++ b/.github/workflows/incident-response.lock.yml @@ -79,7 +79,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2850,7 +2851,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/instructions-janitor.lock.yml b/.github/workflows/instructions-janitor.lock.yml index 47f62daff27..4bbfdc6921b 100644 --- a/.github/workflows/instructions-janitor.lock.yml +++ b/.github/workflows/instructions-janitor.lock.yml @@ -64,7 +64,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2358,7 +2359,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/intelligence.lock.yml b/.github/workflows/intelligence.lock.yml index f6148142757..ec0f6bfc70c 100644 --- a/.github/workflows/intelligence.lock.yml +++ b/.github/workflows/intelligence.lock.yml @@ -79,7 +79,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -3397,7 +3398,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/issue-arborist.lock.yml b/.github/workflows/issue-arborist.lock.yml index 6a879255568..d92f6da4345 100644 --- a/.github/workflows/issue-arborist.lock.yml +++ b/.github/workflows/issue-arborist.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2517,7 +2518,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/issue-classifier.lock.yml b/.github/workflows/issue-classifier.lock.yml index f20f36b8f48..423918157b4 100644 --- a/.github/workflows/issue-classifier.lock.yml +++ b/.github/workflows/issue-classifier.lock.yml @@ -75,7 +75,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Compute current body text id: compute-text uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -102,7 +103,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2204,7 +2206,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/issue-monster.lock.yml b/.github/workflows/issue-monster.lock.yml index 73bc56715dc..b810cf2b972 100644 --- a/.github/workflows/issue-monster.lock.yml +++ b/.github/workflows/issue-monster.lock.yml @@ -71,7 +71,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: @@ -2415,7 +2416,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6261,7 +6262,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_skip_if_match.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_skip_if_match.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/issue-triage-agent.lock.yml b/.github/workflows/issue-triage-agent.lock.yml index 2768238e4e2..74bce26415c 100644 --- a/.github/workflows/issue-triage-agent.lock.yml +++ b/.github/workflows/issue-triage-agent.lock.yml @@ -62,7 +62,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2178,7 +2179,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/jsweep.lock.yml b/.github/workflows/jsweep.lock.yml index 2f900cfc777..4d165e985a9 100644 --- a/.github/workflows/jsweep.lock.yml +++ b/.github/workflows/jsweep.lock.yml @@ -64,7 +64,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2420,7 +2421,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/layout-spec-maintainer.lock.yml b/.github/workflows/layout-spec-maintainer.lock.yml index b5c539bc513..fa7c192f7b1 100644 --- a/.github/workflows/layout-spec-maintainer.lock.yml +++ b/.github/workflows/layout-spec-maintainer.lock.yml @@ -65,7 +65,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2453,7 +2454,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/lockfile-stats.lock.yml b/.github/workflows/lockfile-stats.lock.yml index 09c5944b6a4..f2a94c0ba7f 100644 --- a/.github/workflows/lockfile-stats.lock.yml +++ b/.github/workflows/lockfile-stats.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2560,7 +2561,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/mcp-inspector.lock.yml b/.github/workflows/mcp-inspector.lock.yml index f44b51150a0..129881cb65d 100644 --- a/.github/workflows/mcp-inspector.lock.yml +++ b/.github/workflows/mcp-inspector.lock.yml @@ -83,7 +83,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2681,7 +2682,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/mergefest.lock.yml b/.github/workflows/mergefest.lock.yml index f39eae4d4ce..7cfa2ae616e 100644 --- a/.github/workflows/mergefest.lock.yml +++ b/.github/workflows/mergefest.lock.yml @@ -73,7 +73,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Add eyes reaction to the triggering item id: react if: github.event_name == 'issues' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment' || github.event_name == 'discussion' || github.event_name == 'discussion_comment' || (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.id == github.repository_id) @@ -89,7 +90,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2548,7 +2550,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6436,7 +6438,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/notion-issue-summary.lock.yml b/.github/workflows/notion-issue-summary.lock.yml index 97a77622a19..c4e6b083192 100644 --- a/.github/workflows/notion-issue-summary.lock.yml +++ b/.github/workflows/notion-issue-summary.lock.yml @@ -70,7 +70,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2179,7 +2180,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/org-health-report.lock.yml b/.github/workflows/org-health-report.lock.yml index 8ac411895c3..5fea356a762 100644 --- a/.github/workflows/org-health-report.lock.yml +++ b/.github/workflows/org-health-report.lock.yml @@ -70,7 +70,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -3053,7 +3054,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/org-wide-rollout.lock.yml b/.github/workflows/org-wide-rollout.lock.yml index 2f1ba23bab9..16a4e8bf78e 100644 --- a/.github/workflows/org-wide-rollout.lock.yml +++ b/.github/workflows/org-wide-rollout.lock.yml @@ -86,7 +86,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2878,7 +2879,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/pdf-summary.lock.yml b/.github/workflows/pdf-summary.lock.yml index 061741c4e32..413e393abe0 100644 --- a/.github/workflows/pdf-summary.lock.yml +++ b/.github/workflows/pdf-summary.lock.yml @@ -96,7 +96,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Compute current body text id: compute-text uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -125,7 +126,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2467,7 +2469,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6324,7 +6326,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/plan.lock.yml b/.github/workflows/plan.lock.yml index 2a6aa81c814..718e920136b 100644 --- a/.github/workflows/plan.lock.yml +++ b/.github/workflows/plan.lock.yml @@ -78,7 +78,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Compute current body text id: compute-text uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -106,7 +107,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2515,7 +2517,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6360,7 +6362,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/playground-org-project-update-issue.lock.yml b/.github/workflows/playground-org-project-update-issue.lock.yml index e14ffa9ca98..c5ab03cde8e 100644 --- a/.github/workflows/playground-org-project-update-issue.lock.yml +++ b/.github/workflows/playground-org-project-update-issue.lock.yml @@ -61,7 +61,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2219,7 +2220,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/playground-snapshots-refresh.lock.yml b/.github/workflows/playground-snapshots-refresh.lock.yml index 16e0d181227..30e27e4fb55 100644 --- a/.github/workflows/playground-snapshots-refresh.lock.yml +++ b/.github/workflows/playground-snapshots-refresh.lock.yml @@ -63,7 +63,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2211,7 +2212,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/poem-bot.lock.yml b/.github/workflows/poem-bot.lock.yml index 10e6bf7e258..fcf9905c63c 100644 --- a/.github/workflows/poem-bot.lock.yml +++ b/.github/workflows/poem-bot.lock.yml @@ -81,7 +81,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Compute current body text id: compute-text uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -110,7 +111,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2878,7 +2880,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6770,7 +6772,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/portfolio-analyst.lock.yml b/.github/workflows/portfolio-analyst.lock.yml index 41715740fa7..6491abddd98 100644 --- a/.github/workflows/portfolio-analyst.lock.yml +++ b/.github/workflows/portfolio-analyst.lock.yml @@ -71,7 +71,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -3044,7 +3045,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/pr-nitpick-reviewer.lock.yml b/.github/workflows/pr-nitpick-reviewer.lock.yml index ada0c40bb44..785c7de50bb 100644 --- a/.github/workflows/pr-nitpick-reviewer.lock.yml +++ b/.github/workflows/pr-nitpick-reviewer.lock.yml @@ -105,7 +105,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Add eyes reaction to the triggering item id: react if: github.event_name == 'issues' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment' || github.event_name == 'discussion' || github.event_name == 'discussion_comment' || (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.id == github.repository_id) @@ -122,7 +123,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2789,7 +2791,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6650,7 +6652,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/prompt-clustering-analysis.lock.yml b/.github/workflows/prompt-clustering-analysis.lock.yml index 8d5dcbce56a..c130c32ce41 100644 --- a/.github/workflows/prompt-clustering-analysis.lock.yml +++ b/.github/workflows/prompt-clustering-analysis.lock.yml @@ -74,7 +74,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -3012,7 +3013,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/python-data-charts.lock.yml b/.github/workflows/python-data-charts.lock.yml index f36a9b9430f..471ebcd4c7a 100644 --- a/.github/workflows/python-data-charts.lock.yml +++ b/.github/workflows/python-data-charts.lock.yml @@ -67,7 +67,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -3345,7 +3346,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/q.lock.yml b/.github/workflows/q.lock.yml index df0046214c2..df11147241d 100644 --- a/.github/workflows/q.lock.yml +++ b/.github/workflows/q.lock.yml @@ -107,7 +107,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Compute current body text id: compute-text uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -136,7 +137,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2818,7 +2820,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6693,7 +6695,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/release.lock.yml b/.github/workflows/release.lock.yml index f7227874e1c..f2bbdd93edd 100644 --- a/.github/workflows/release.lock.yml +++ b/.github/workflows/release.lock.yml @@ -65,7 +65,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: @@ -2351,7 +2352,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/repo-tree-map.lock.yml b/.github/workflows/repo-tree-map.lock.yml index 617c2c2ffe0..472f9260cf0 100644 --- a/.github/workflows/repo-tree-map.lock.yml +++ b/.github/workflows/repo-tree-map.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2297,7 +2298,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/repository-quality-improver.lock.yml b/.github/workflows/repository-quality-improver.lock.yml index 20029c9c70e..d3ce639e173 100644 --- a/.github/workflows/repository-quality-improver.lock.yml +++ b/.github/workflows/repository-quality-improver.lock.yml @@ -67,7 +67,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2848,7 +2849,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/research.lock.yml b/.github/workflows/research.lock.yml index 18e106d9467..6b33f6957f6 100644 --- a/.github/workflows/research.lock.yml +++ b/.github/workflows/research.lock.yml @@ -71,7 +71,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2259,7 +2260,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/safe-output-health.lock.yml b/.github/workflows/safe-output-health.lock.yml index 2c9e3333a60..0033b0e90ac 100644 --- a/.github/workflows/safe-output-health.lock.yml +++ b/.github/workflows/safe-output-health.lock.yml @@ -70,7 +70,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2682,7 +2683,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/schema-consistency-checker.lock.yml b/.github/workflows/schema-consistency-checker.lock.yml index 92a06131434..8f3320531f3 100644 --- a/.github/workflows/schema-consistency-checker.lock.yml +++ b/.github/workflows/schema-consistency-checker.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2504,7 +2505,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/scout.lock.yml b/.github/workflows/scout.lock.yml index 9520b02f905..403cf9a32c3 100644 --- a/.github/workflows/scout.lock.yml +++ b/.github/workflows/scout.lock.yml @@ -122,7 +122,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Compute current body text id: compute-text uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -151,7 +152,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2641,7 +2643,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6190,7 +6192,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/security-compliance.lock.yml b/.github/workflows/security-compliance.lock.yml index b93cfe5186f..1948f51a585 100644 --- a/.github/workflows/security-compliance.lock.yml +++ b/.github/workflows/security-compliance.lock.yml @@ -73,7 +73,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2542,7 +2543,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/security-fix-pr.lock.yml b/.github/workflows/security-fix-pr.lock.yml index 7502c4e59c9..9ee5ca3b87b 100644 --- a/.github/workflows/security-fix-pr.lock.yml +++ b/.github/workflows/security-fix-pr.lock.yml @@ -72,7 +72,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2391,7 +2392,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -5908,7 +5909,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_skip_if_match.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_skip_if_match.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/semantic-function-refactor.lock.yml b/.github/workflows/semantic-function-refactor.lock.yml index ec4d82a7bdc..26b5994743d 100644 --- a/.github/workflows/semantic-function-refactor.lock.yml +++ b/.github/workflows/semantic-function-refactor.lock.yml @@ -68,7 +68,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2700,7 +2701,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/slide-deck-maintainer.lock.yml b/.github/workflows/slide-deck-maintainer.lock.yml index e53523f2632..27575972352 100644 --- a/.github/workflows/slide-deck-maintainer.lock.yml +++ b/.github/workflows/slide-deck-maintainer.lock.yml @@ -71,7 +71,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2508,7 +2509,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6405,7 +6406,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_skip_if_match.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_skip_if_match.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/smoke-claude.lock.yml b/.github/workflows/smoke-claude.lock.yml index 4eb73f8d5fc..9dd6ac2d787 100644 --- a/.github/workflows/smoke-claude.lock.yml +++ b/.github/workflows/smoke-claude.lock.yml @@ -82,7 +82,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Add heart reaction to the triggering item id: react if: github.event_name == 'issues' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment' || github.event_name == 'discussion' || github.event_name == 'discussion_comment' || (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.id == github.repository_id) @@ -98,7 +99,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2547,7 +2549,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/smoke-codex-firewall.lock.yml b/.github/workflows/smoke-codex-firewall.lock.yml index c1cd672a17d..5d565245eca 100644 --- a/.github/workflows/smoke-codex-firewall.lock.yml +++ b/.github/workflows/smoke-codex-firewall.lock.yml @@ -78,7 +78,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Add rocket reaction to the triggering item id: react if: github.event_name == 'issues' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment' || github.event_name == 'discussion' || github.event_name == 'discussion_comment' || (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.id == github.repository_id) @@ -94,7 +95,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2348,7 +2350,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/smoke-codex.lock.yml b/.github/workflows/smoke-codex.lock.yml index 8a4af996e36..c55b90fe0ca 100644 --- a/.github/workflows/smoke-codex.lock.yml +++ b/.github/workflows/smoke-codex.lock.yml @@ -78,7 +78,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Add hooray reaction to the triggering item id: react if: github.event_name == 'issues' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment' || github.event_name == 'discussion' || github.event_name == 'discussion_comment' || (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.id == github.repository_id) @@ -94,7 +95,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2452,7 +2454,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/smoke-copilot-no-firewall.lock.yml b/.github/workflows/smoke-copilot-no-firewall.lock.yml index 5ad360fa5ef..0cad86ceebd 100644 --- a/.github/workflows/smoke-copilot-no-firewall.lock.yml +++ b/.github/workflows/smoke-copilot-no-firewall.lock.yml @@ -82,7 +82,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Add +1 reaction to the triggering item id: react if: github.event_name == 'issues' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment' || github.event_name == 'discussion' || github.event_name == 'discussion_comment' || (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.id == github.repository_id) @@ -98,7 +99,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -3674,7 +3676,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/smoke-copilot-playwright.lock.yml b/.github/workflows/smoke-copilot-playwright.lock.yml index 4d0676c3d50..c50ee20dd08 100644 --- a/.github/workflows/smoke-copilot-playwright.lock.yml +++ b/.github/workflows/smoke-copilot-playwright.lock.yml @@ -82,7 +82,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Add eyes reaction to the triggering item id: react if: github.event_name == 'issues' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment' || github.event_name == 'discussion' || github.event_name == 'discussion_comment' || (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.id == github.repository_id) @@ -98,7 +99,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -3786,7 +3788,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/smoke-copilot-safe-inputs.lock.yml b/.github/workflows/smoke-copilot-safe-inputs.lock.yml index 196713a3ded..ab6e4168206 100644 --- a/.github/workflows/smoke-copilot-safe-inputs.lock.yml +++ b/.github/workflows/smoke-copilot-safe-inputs.lock.yml @@ -82,7 +82,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Add eyes reaction to the triggering item id: react if: github.event_name == 'issues' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment' || github.event_name == 'discussion' || github.event_name == 'discussion_comment' || (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.id == github.repository_id) @@ -97,7 +98,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -3494,7 +3496,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/smoke-copilot.lock.yml b/.github/workflows/smoke-copilot.lock.yml index abf1451c38f..ef79e5559d3 100644 --- a/.github/workflows/smoke-copilot.lock.yml +++ b/.github/workflows/smoke-copilot.lock.yml @@ -78,7 +78,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Add eyes reaction to the triggering item id: react if: github.event_name == 'issues' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment' || github.event_name == 'discussion' || github.event_name == 'discussion_comment' || (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.id == github.repository_id) @@ -94,7 +95,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2502,7 +2504,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/smoke-detector.lock.yml b/.github/workflows/smoke-detector.lock.yml index c01ae1a40d0..1931b897595 100644 --- a/.github/workflows/smoke-detector.lock.yml +++ b/.github/workflows/smoke-detector.lock.yml @@ -98,7 +98,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Add eyes reaction to the triggering item id: react if: github.event_name == 'issues' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment' || github.event_name == 'discussion' || github.event_name == 'discussion_comment' || (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.id == github.repository_id) @@ -114,7 +115,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2622,7 +2624,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/smoke-srt-custom-config.lock.yml b/.github/workflows/smoke-srt-custom-config.lock.yml index c1c3ff4bb0b..8211f1f5406 100644 --- a/.github/workflows/smoke-srt-custom-config.lock.yml +++ b/.github/workflows/smoke-srt-custom-config.lock.yml @@ -61,7 +61,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -638,7 +639,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/smoke-srt.lock.yml b/.github/workflows/smoke-srt.lock.yml index 6f502c1a5be..53a0923745e 100644 --- a/.github/workflows/smoke-srt.lock.yml +++ b/.github/workflows/smoke-srt.lock.yml @@ -71,7 +71,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2123,7 +2124,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/spec-kit-execute.lock.yml b/.github/workflows/spec-kit-execute.lock.yml index 0fb5355b613..e95b515e461 100644 --- a/.github/workflows/spec-kit-execute.lock.yml +++ b/.github/workflows/spec-kit-execute.lock.yml @@ -63,7 +63,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2608,7 +2609,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/spec-kit-executor.lock.yml b/.github/workflows/spec-kit-executor.lock.yml index 0fecbe0fdab..27c6dbb6f88 100644 --- a/.github/workflows/spec-kit-executor.lock.yml +++ b/.github/workflows/spec-kit-executor.lock.yml @@ -64,7 +64,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2483,7 +2484,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/speckit-dispatcher.lock.yml b/.github/workflows/speckit-dispatcher.lock.yml index b7f6ea6ba2e..60d5b5f926b 100644 --- a/.github/workflows/speckit-dispatcher.lock.yml +++ b/.github/workflows/speckit-dispatcher.lock.yml @@ -101,7 +101,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Compute current body text id: compute-text uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 @@ -130,7 +131,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2733,7 +2735,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6607,7 +6609,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/stale-repo-identifier.lock.yml b/.github/workflows/stale-repo-identifier.lock.yml index 619b8e95195..7d93c29487a 100644 --- a/.github/workflows/stale-repo-identifier.lock.yml +++ b/.github/workflows/stale-repo-identifier.lock.yml @@ -79,7 +79,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -3079,7 +3080,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/static-analysis-report.lock.yml b/.github/workflows/static-analysis-report.lock.yml index dd122fba279..92b07bd20a5 100644 --- a/.github/workflows/static-analysis-report.lock.yml +++ b/.github/workflows/static-analysis-report.lock.yml @@ -69,7 +69,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2593,7 +2594,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/sub-issue-closer.lock.yml b/.github/workflows/sub-issue-closer.lock.yml index 5e0f83f1af4..0d52af5dc35 100644 --- a/.github/workflows/sub-issue-closer.lock.yml +++ b/.github/workflows/sub-issue-closer.lock.yml @@ -64,7 +64,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2349,7 +2350,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/super-linter.lock.yml b/.github/workflows/super-linter.lock.yml index c4afe989ebe..758ec6020ce 100644 --- a/.github/workflows/super-linter.lock.yml +++ b/.github/workflows/super-linter.lock.yml @@ -67,7 +67,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: @@ -2414,7 +2415,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/technical-doc-writer.lock.yml b/.github/workflows/technical-doc-writer.lock.yml index d6acc7bae72..9ef3589984d 100644 --- a/.github/workflows/technical-doc-writer.lock.yml +++ b/.github/workflows/technical-doc-writer.lock.yml @@ -71,7 +71,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2738,7 +2739,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/tidy.lock.yml b/.github/workflows/tidy.lock.yml index 9eb396b5689..678937f1d24 100644 --- a/.github/workflows/tidy.lock.yml +++ b/.github/workflows/tidy.lock.yml @@ -85,7 +85,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Add eyes reaction to the triggering item id: react if: github.event_name == 'issues' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment' || github.event_name == 'discussion' || github.event_name == 'discussion_comment' || (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.id == github.repository_id) @@ -101,7 +102,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2369,7 +2371,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6244,7 +6246,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/typist.lock.yml b/.github/workflows/typist.lock.yml index 55d35b1d520..1e1369b8843 100644 --- a/.github/workflows/typist.lock.yml +++ b/.github/workflows/typist.lock.yml @@ -67,7 +67,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2698,7 +2699,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/unbloat-docs.lock.yml b/.github/workflows/unbloat-docs.lock.yml index 90622d6d130..4d7b546076e 100644 --- a/.github/workflows/unbloat-docs.lock.yml +++ b/.github/workflows/unbloat-docs.lock.yml @@ -81,7 +81,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Add eyes reaction to the triggering item id: react if: github.event_name == 'issues' || github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment' || github.event_name == 'discussion' || github.event_name == 'discussion_comment' || (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.id == github.repository_id) @@ -98,7 +99,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + const { main } = require('/tmp/gh-aw/actions/add_reaction_and_edit_comment.cjs'); + await main(); agent: needs: activation @@ -2640,7 +2642,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt @@ -6226,7 +6228,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_command_position.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_command_position.cjs'); + await main(); safe_outputs: needs: diff --git a/.github/workflows/video-analyzer.lock.yml b/.github/workflows/video-analyzer.lock.yml index e4d66b71076..4fa4883a0d0 100644 --- a/.github/workflows/video-analyzer.lock.yml +++ b/.github/workflows/video-analyzer.lock.yml @@ -70,7 +70,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2499,7 +2500,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/weekly-issue-summary.lock.yml b/.github/workflows/weekly-issue-summary.lock.yml index c7c9464af47..5d009b24e97 100644 --- a/.github/workflows/weekly-issue-summary.lock.yml +++ b/.github/workflows/weekly-issue-summary.lock.yml @@ -69,7 +69,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2847,7 +2848,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/workflow-generator.lock.yml b/.github/workflows/workflow-generator.lock.yml index e8d109a1ba5..e62bb4d2043 100644 --- a/.github/workflows/workflow-generator.lock.yml +++ b/.github/workflows/workflow-generator.lock.yml @@ -69,7 +69,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); - name: Lock issue for agent workflow id: lock-issue if: (github.event_name == 'issues') || (github.event_name == 'issue_comment') @@ -2329,7 +2330,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/.github/workflows/workflow-health-manager.lock.yml b/.github/workflows/workflow-health-manager.lock.yml index 11039929524..d716a387a14 100644 --- a/.github/workflows/workflow-health-manager.lock.yml +++ b/.github/workflows/workflow-health-manager.lock.yml @@ -66,7 +66,8 @@ jobs: global.context = context; global.exec = exec; global.io = io; - require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + const { main } = require('/tmp/gh-aw/actions/check_workflow_timestamp_api.cjs'); + await main(); agent: needs: activation @@ -2691,7 +2692,7 @@ jobs: core.setFailed(error instanceof Error ? error.message : String(error)); } } - main(); + await main(); - name: Print prompt env: GH_AW_PROMPT: /tmp/gh-aw/aw-prompts/prompt.txt diff --git a/pkg/workflow/activation_checkout_test.go b/pkg/workflow/activation_checkout_test.go index d1ed3186c85..81811db7da0 100644 --- a/pkg/workflow/activation_checkout_test.go +++ b/pkg/workflow/activation_checkout_test.go @@ -70,7 +70,10 @@ strict: false t.Fatal(err) } - compiler := NewCompiler(false, "", "test") + compiler := NewCompiler(false, "", "dev") + // Use release mode to test production behavior (no checkout in activation job) + // Version "dev" forces inline scripts instead of using setup action + compiler.SetActionMode(ActionModeRelease) // Compile the workflow if err := compiler.CompileWorkflow(testFile); err != nil { diff --git a/pkg/workflow/bundler.go b/pkg/workflow/bundler.go index 198add29024..d677fe1effe 100644 --- a/pkg/workflow/bundler.go +++ b/pkg/workflow/bundler.go @@ -135,6 +135,14 @@ func BundleJavaScriptWithMode(mainContent string, sources map[string]string, bas // GitHub Script mode: remove module.exports from final output bundled = removeExports(bundled) + // Inject await main() call for inline execution + // This allows scripts to export main when used with require(), but still execute + // when inlined directly in github-script action + if strings.Contains(bundled, "async function main()") || strings.Contains(bundled, "async function main ()") { + bundled = bundled + "\nawait main();\n" + bundlerLog.Print("Injected 'await main()' call for GitHub Script inline execution") + } + // Validate all local requires are bundled and module references removed if err := validateNoLocalRequires(bundled); err != nil { bundlerLog.Printf("Validation failed: %v", err) diff --git a/pkg/workflow/compiler_activation_jobs.go b/pkg/workflow/compiler_activation_jobs.go index ec544eb6261..766225880d8 100644 --- a/pkg/workflow/compiler_activation_jobs.go +++ b/pkg/workflow/compiler_activation_jobs.go @@ -71,7 +71,8 @@ func (c *Compiler) buildPreActivationJob(data *WorkflowData, needsPermissionChec steps = append(steps, " global.context = context;\n") steps = append(steps, " global.exec = exec;\n") steps = append(steps, " global.io = io;\n") - steps = append(steps, " require('"+SetupActionDestination+"/check_stop_time.cjs');\n") + steps = append(steps, " const { main } = require('"+SetupActionDestination+"/check_stop_time.cjs');\n") + steps = append(steps, " await main();\n") } else { // Add the JavaScript script with proper indentation formattedScript := FormatJavaScriptForYAML(checkStopTimeScript) @@ -102,7 +103,8 @@ func (c *Compiler) buildPreActivationJob(data *WorkflowData, needsPermissionChec steps = append(steps, " global.context = context;\n") steps = append(steps, " global.exec = exec;\n") steps = append(steps, " global.io = io;\n") - steps = append(steps, " require('"+SetupActionDestination+"/check_skip_if_match.cjs');\n") + steps = append(steps, " const { main } = require('"+SetupActionDestination+"/check_skip_if_match.cjs');\n") + steps = append(steps, " await main();\n") } else { // Add the JavaScript script with proper indentation formattedScript := FormatJavaScriptForYAML(checkSkipIfMatchScript) @@ -128,7 +130,8 @@ func (c *Compiler) buildPreActivationJob(data *WorkflowData, needsPermissionChec steps = append(steps, " global.context = context;\n") steps = append(steps, " global.exec = exec;\n") steps = append(steps, " global.io = io;\n") - steps = append(steps, " require('"+SetupActionDestination+"/check_command_position.cjs');\n") + steps = append(steps, " const { main } = require('"+SetupActionDestination+"/check_command_position.cjs');\n") + steps = append(steps, " await main();\n") } else { // Add the JavaScript script with proper indentation formattedScript := FormatJavaScriptForYAML(checkCommandPositionScript) @@ -374,7 +377,8 @@ func (c *Compiler) buildActivationJob(data *WorkflowData, preActivationJobCreate steps = append(steps, " global.context = context;\n") steps = append(steps, " global.exec = exec;\n") steps = append(steps, " global.io = io;\n") - steps = append(steps, " require('"+SetupActionDestination+"/check_workflow_timestamp_api.cjs');\n") + steps = append(steps, " const { main } = require('"+SetupActionDestination+"/check_workflow_timestamp_api.cjs');\n") + steps = append(steps, " await main();\n") } else { // Add the JavaScript script with proper indentation (using API-based version) formattedScript := FormatJavaScriptForYAML(checkWorkflowTimestampAPIScript) @@ -457,7 +461,8 @@ func (c *Compiler) buildActivationJob(data *WorkflowData, preActivationJobCreate steps = append(steps, " global.context = context;\n") steps = append(steps, " global.exec = exec;\n") steps = append(steps, " global.io = io;\n") - steps = append(steps, " require('"+SetupActionDestination+"/add_reaction_and_edit_comment.cjs');\n") + steps = append(steps, " const { main } = require('"+SetupActionDestination+"/add_reaction_and_edit_comment.cjs');\n") + steps = append(steps, " await main();\n") } else { // Add each line of the script with proper indentation (bundled version with messages.cjs) formattedScript := FormatJavaScriptForYAML(getAddReactionAndEditCommentScript()) diff --git a/pkg/workflow/js.go b/pkg/workflow/js.go index d5046412c8e..49bfa4e1cea 100644 --- a/pkg/workflow/js.go +++ b/pkg/workflow/js.go @@ -34,6 +34,7 @@ func init() { DefaultScriptRegistry.Register("assign_issue", assignIssueScriptSource) DefaultScriptRegistry.Register("add_copilot_reviewer", addCopilotReviewerScriptSource) DefaultScriptRegistry.Register("add_reaction_and_edit_comment", addReactionAndEditCommentScriptSource) + DefaultScriptRegistry.Register("redact_secrets", redactSecretsScript) } // getAddReactionAndEditCommentScript returns the bundled add_reaction_and_edit_comment script diff --git a/pkg/workflow/js/check_command_position.cjs b/pkg/workflow/js/check_command_position.cjs index 812e774e557..d0df669e004 100644 --- a/pkg/workflow/js/check_command_position.cjs +++ b/pkg/workflow/js/check_command_position.cjs @@ -66,4 +66,4 @@ async function main() { } } -await main(); +module.exports = { main }; diff --git a/pkg/workflow/js/check_membership.cjs b/pkg/workflow/js/check_membership.cjs index a9192d554b8..d5f6c8a5c9e 100644 --- a/pkg/workflow/js/check_membership.cjs +++ b/pkg/workflow/js/check_membership.cjs @@ -96,4 +96,5 @@ async function main() { core.setOutput("error_message", `Access denied: User '${actor}' is not authorized. Required permissions: ${requiredPermissions.join(", ")}`); } } -await main(); + +module.exports = { main }; diff --git a/pkg/workflow/js/check_membership.test.cjs b/pkg/workflow/js/check_membership.test.cjs index ebe4580835a..6d5fa85310f 100644 --- a/pkg/workflow/js/check_membership.test.cjs +++ b/pkg/workflow/js/check_membership.test.cjs @@ -75,8 +75,8 @@ describe("check_membership.cjs", () => { throw new Error(`Module not found: ${modulePath}`); }; - // Remove the main() call at the end and execute - const scriptWithoutMain = scriptContent.replace("await main();", ""); + // Remove the main() call/export at the end and execute + const scriptWithoutMain = scriptContent.replace("module.exports = { main };", ""); const scriptFunction = new Function("core", "github", "context", "process", "require", scriptWithoutMain + "\nreturn main();"); await scriptFunction(mockCore, mockGithub, mockContext, process, mockRequire); }; diff --git a/pkg/workflow/js/check_permissions.cjs b/pkg/workflow/js/check_permissions.cjs index d21a48ba400..d9484f78823 100644 --- a/pkg/workflow/js/check_permissions.cjs +++ b/pkg/workflow/js/check_permissions.cjs @@ -41,4 +41,5 @@ async function main() { core.setFailed(`Access denied: User '${actor}' is not authorized. Required permissions: ${requiredPermissions.join(", ")}`); } } -await main(); + +module.exports = { main }; diff --git a/pkg/workflow/js/check_skip_if_match.cjs b/pkg/workflow/js/check_skip_if_match.cjs index 7290bc7d72b..fa8525b9283 100644 --- a/pkg/workflow/js/check_skip_if_match.cjs +++ b/pkg/workflow/js/check_skip_if_match.cjs @@ -57,4 +57,5 @@ async function main() { return; } } -await main(); + +module.exports = { main }; diff --git a/pkg/workflow/js/check_stop_time.cjs b/pkg/workflow/js/check_stop_time.cjs index 165a42fe305..4e86da0f8a4 100644 --- a/pkg/workflow/js/check_stop_time.cjs +++ b/pkg/workflow/js/check_stop_time.cjs @@ -37,4 +37,5 @@ async function main() { core.setOutput("stop_time_ok", "true"); } -await main(); + +module.exports = { main }; diff --git a/pkg/workflow/js/check_team_member.cjs b/pkg/workflow/js/check_team_member.cjs index ae6ce6f6cb3..493f5589e83 100644 --- a/pkg/workflow/js/check_team_member.cjs +++ b/pkg/workflow/js/check_team_member.cjs @@ -33,4 +33,5 @@ async function main() { core.setFailed(`Access denied: User '${actor}' is not authorized for this workflow`); core.setOutput("is_team_member", "false"); } -await main(); + +module.exports = { main }; diff --git a/pkg/workflow/js/check_workflow_timestamp_api.cjs b/pkg/workflow/js/check_workflow_timestamp_api.cjs index f88794ed891..9b94409b83b 100644 --- a/pkg/workflow/js/check_workflow_timestamp_api.cjs +++ b/pkg/workflow/js/check_workflow_timestamp_api.cjs @@ -109,6 +109,4 @@ async function main() { } } -main().catch(error => { - core.setFailed(error instanceof Error ? error.message : String(error)); -}); +module.exports = { main }; diff --git a/pkg/workflow/js/checkout_pr_branch.test.cjs b/pkg/workflow/js/checkout_pr_branch.test.cjs index d619859617e..b033fd1875f 100644 --- a/pkg/workflow/js/checkout_pr_branch.test.cjs +++ b/pkg/workflow/js/checkout_pr_branch.test.cjs @@ -55,7 +55,7 @@ describe("checkout_pr_branch.cjs", () => { // Execute the script in a new context with our mocks const AsyncFunction = Object.getPrototypeOf(async function () {}).constructor; - const wrappedScript = new AsyncFunction("core", "exec", "context", scriptContent.replace(/main\(\)\.catch.*$/s, "await main();")); + const wrappedScript = new AsyncFunction("core", "exec", "context", scriptContent.replace(/module\.exports = \{ main \};?\s*$/s, "await main();")); try { await wrappedScript(mockCore, mockExec, mockContext); diff --git a/pkg/workflow/js/close_expired_discussions.cjs b/pkg/workflow/js/close_expired_discussions.cjs index 8cf285b39d1..0cd3db2dec8 100644 --- a/pkg/workflow/js/close_expired_discussions.cjs +++ b/pkg/workflow/js/close_expired_discussions.cjs @@ -279,4 +279,4 @@ async function main() { core.info(`Successfully closed ${closedCount} expired discussion(s)`); } -await main(); +module.exports = { main }; diff --git a/pkg/workflow/js/close_expired_issues.cjs b/pkg/workflow/js/close_expired_issues.cjs index fc5473d893b..63436f36681 100644 --- a/pkg/workflow/js/close_expired_issues.cjs +++ b/pkg/workflow/js/close_expired_issues.cjs @@ -272,4 +272,4 @@ async function main() { core.info(`Successfully closed ${closedCount} expired issue(s)`); } -await main(); +module.exports = { main }; diff --git a/pkg/workflow/js/collect_ndjson_output.cjs b/pkg/workflow/js/collect_ndjson_output.cjs index bfd0d865580..d53305392f0 100644 --- a/pkg/workflow/js/collect_ndjson_output.cjs +++ b/pkg/workflow/js/collect_ndjson_output.cjs @@ -355,4 +355,5 @@ async function main() { core.setOutput("has_patch", hasPatch ? "true" : "false"); } } -await main(); + +module.exports = { main }; diff --git a/pkg/workflow/js/create_issue.test.cjs b/pkg/workflow/js/create_issue.test.cjs index a5ffd48d696..06cd766eb79 100644 --- a/pkg/workflow/js/create_issue.test.cjs +++ b/pkg/workflow/js/create_issue.test.cjs @@ -51,7 +51,7 @@ const mockCore = { const scriptPath = path.join(process.cwd(), "create_issue.cjs"); ((createIssueScript = fs.readFileSync(scriptPath, "utf8")), (createIssueScript = createIssueScript.replace("export {};", "")), - (createIssueScript = createIssueScript.replace(/\(async \(\) => \{\s*await main\(\);\s*\}\)\(\);?\s*$/, "await main();"))); + (createIssueScript = createIssueScript.replace(/module\.exports = \{ main \};?\s*$/, ""))); }), afterEach(() => { tempFilePath && require("fs").existsSync(tempFilePath) && (require("fs").unlinkSync(tempFilePath), (tempFilePath = void 0)); diff --git a/pkg/workflow/js/interpolate_prompt.cjs b/pkg/workflow/js/interpolate_prompt.cjs index 23def554622..3b7d798c325 100644 --- a/pkg/workflow/js/interpolate_prompt.cjs +++ b/pkg/workflow/js/interpolate_prompt.cjs @@ -122,5 +122,4 @@ async function main() { } } -// Execute main function -main(); +module.exports = { main }; diff --git a/pkg/workflow/js/redact_secrets.cjs b/pkg/workflow/js/redact_secrets.cjs index f1521940564..103c3fb1341 100644 --- a/pkg/workflow/js/redact_secrets.cjs +++ b/pkg/workflow/js/redact_secrets.cjs @@ -148,4 +148,5 @@ async function main() { core.setFailed(`Secret redaction failed: ${error instanceof Error ? error.message : String(error)}`); } } -await main(); + +module.exports = { main }; diff --git a/pkg/workflow/js/sanitize_output.cjs b/pkg/workflow/js/sanitize_output.cjs index f9bdf1b9471..4b07e46f65a 100644 --- a/pkg/workflow/js/sanitize_output.cjs +++ b/pkg/workflow/js/sanitize_output.cjs @@ -40,4 +40,4 @@ async function main() { } } -await main(); +module.exports = { main }; diff --git a/pkg/workflow/js/sanitize_output.test.cjs b/pkg/workflow/js/sanitize_output.test.cjs index 9b222a8a8a7..348f2b373a6 100644 --- a/pkg/workflow/js/sanitize_output.test.cjs +++ b/pkg/workflow/js/sanitize_output.test.cjs @@ -35,7 +35,7 @@ const mockCore = { (vi.clearAllMocks(), delete process.env.GH_AW_SAFE_OUTPUTS, delete process.env.GH_AW_ALLOWED_DOMAINS); const scriptPath = path.join(process.cwd(), "sanitize_output.cjs"); sanitizeScript = fs.readFileSync(scriptPath, "utf8"); - const scriptWithExport = sanitizeScript.replace("await main();", "global.testSanitizeContent = sanitizeContent;"); + const scriptWithExport = sanitizeScript.replace("module.exports = { main };", "global.testSanitizeContent = sanitizeContent;"); (eval(scriptWithExport), (sanitizeContentFunction = global.testSanitizeContent)); }), describe("sanitizeContent function", () => { diff --git a/pkg/workflow/js/upload_assets.cjs b/pkg/workflow/js/upload_assets.cjs index 325b12164c5..9eb258b9350 100644 --- a/pkg/workflow/js/upload_assets.cjs +++ b/pkg/workflow/js/upload_assets.cjs @@ -192,4 +192,4 @@ async function main() { core.setOutput("branch_name", normalizedBranchName); } -await main(); +module.exports = { main }; diff --git a/pkg/workflow/redact_secrets.go b/pkg/workflow/redact_secrets.go index 169db842dff..1345771624f 100644 --- a/pkg/workflow/redact_secrets.go +++ b/pkg/workflow/redact_secrets.go @@ -70,8 +70,8 @@ func (c *Compiler) generateSecretRedactionStep(yaml *strings.Builder, yamlConten yaml.WriteString(" with:\n") yaml.WriteString(" script: |\n") - // Use the embedded JavaScript code without comments - WriteJavaScriptToYAML(yaml, redactSecretsScript) + // Use the bundled redact_secrets script which has module.exports removed and await main() injected + WriteJavaScriptToYAML(yaml, getRedactSecretsScript()) // Add environment variables yaml.WriteString(" env:\n") diff --git a/pkg/workflow/scripts.go b/pkg/workflow/scripts.go index ad7d80dfee6..9df86785a33 100644 --- a/pkg/workflow/scripts.go +++ b/pkg/workflow/scripts.go @@ -395,3 +395,8 @@ func getGenerateSafeInputsConfigScript() string { func getSubstitutePlaceholdersScript() string { return DefaultScriptRegistry.GetWithMode("substitute_placeholders", RuntimeModeGitHubScript) } + +// getRedactSecretsScript returns the bundled redact_secrets script +func getRedactSecretsScript() string { + return DefaultScriptRegistry.GetWithMode("redact_secrets", RuntimeModeGitHubScript) +}