diff --git a/.github/workflows/agent-performance-analyzer.lock.yml b/.github/workflows/agent-performance-analyzer.lock.yml index 6c9e45793a..d9fb410501 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 2e2b835958..9e77539bd8 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 1535d1f5ef..60cd732edd 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 2507adde35..76ff6f11f0 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 a39c7f67d6..e389f54209 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 c59dea0dd1..8e737a7b46 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 a9a6eccec1..f0372a2b55 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 7bf832c5aa..2177c08038 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 6e907a1a19..363ae4823c 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 1c3935ee4b..e182218f42 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 66c5d83d49..3a3b847c74 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 edee99b38d..f130284ad7 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 6b84ef2339..b7fb9b21bd 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 da8c7d6079..f6e37222ea 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 827ea38e84..799b99490b 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 066d1de808..e9edb86cac 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 c8680ad1b1..09f2b5758d 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 92fd48301f..d2d916e166 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 1548bf2f49..64ed793112 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 caa35557f9..b91751885a 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 98e1ec5519..7283dd2bb2 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 b58b54881f..3739a4d0f4 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 4aef59ad74..c73a0b5dbf 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 0dec303883..457c2e2093 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 45281db036..bda5ffea80 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 ae818fb0b7..d89d94176f 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 fa717e9929..fd3e9001f5 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 3d6e269391..944bab2642 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 5d481b2ea5..2cd3baf4ac 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 647626fe7d..56b6a5452a 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 6ebae50771..44c2c9f4d7 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 8ae5903a2b..e85febf57b 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 34ff426095..de6099a32b 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 83e57636fc..3b6816981e 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 83ebf60290..f5c593e45c 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 c1c7dde40c..4f73dc8a1f 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 581b6b5ecf..651129749d 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 0b62e5b211..aa1396355d 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 08047dfcad..4c350c2cf9 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 b50a70d59f..08f2cce342 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 71cfc9aaea..d5ab9864b8 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 426eea6576..5846ad7ec0 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 32cf26ce7d..40a3ba70ae 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 95dfb0601d..282c33f321 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 e302a810b2..c1718613dc 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 ce0827d6cd..91139d9c14 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 d1e7d5de7d..3776da81b6 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 b9a8c2ca35..77b53854bb 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 a7de51da35..3f5c61e40f 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 db8ba0dff4..04ab841569 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 84b0e13a90..dd27e36cba 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 29c295eedf..8fcdf343e7 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 70219cbdc7..46145a51c0 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 12589f7b70..fd8f7f0691 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 b528a6cd17..c55ce0d7e1 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 a5103e04be..4b14368eb7 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 c4e67f7b07..60900a860b 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 17cb223c7e..7a6f21dcaf 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 3690e0eff2..6cc9fbefb5 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 82ee4723f0..d96f51a2db 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 109d79ea2d..4182a13f92 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 d4ee95c041..28261aa1b2 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 cffc3e796a..448fd57b4d 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 47f62daff2..4bbfdc6921 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 f614814275..ec0f6bfc70 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 6a87925556..d92f6da434 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 f20f36b8f4..423918157b 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 73bc56715d..b810cf2b97 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 2768238e4e..74bce26415 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 2f900cfc77..4d165e985a 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 b5c539bc51..fa7c192f7b 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 09c5944b6a..f2a94c0ba7 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 f44b51150a..129881cb65 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 f39eae4d4c..7cfa2ae616 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 97a77622a1..c4e6b08319 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 8ac411895c..5fea356a76 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 2f1ba23bab..16a4e8bf78 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 061741c4e3..413e393abe 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 2a6aa81c81..718e920136 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 e14ffa9ca9..c5ab03cde8 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 16e0d18122..30e27e4fb5 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 10e6bf7e25..fcf9905c63 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 41715740fa..6491abddd9 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 ada0c40bb4..785c7de50b 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 8d5dcbce56..c130c32ce4 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 f36a9b9430..471ebcd4c7 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 df0046214c..df11147241 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 f7227874e1..f2bbdd93ed 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 617c2c2ffe..472f9260cf 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 20029c9c70..d3ce639e17 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 18e106d946..6b33f6957f 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 2c9e3333a6..0033b0e90a 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 92a0613143..8f3320531f 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 9520b02f90..403cf9a32c 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 b93cfe5186..1948f51a58 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 7502c4e59c..9ee5ca3b87 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 ec4d82a7bd..26b5994743 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 e53523f263..2757597235 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 4eb73f8d5f..9dd6ac2d78 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 c1cd672a17..5d565245ec 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 8a4af996e3..c55b90fe0c 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 5ad360fa5e..0cad86ceeb 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 4d0676c3d5..c50ee20dd0 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 196713a3de..ab6e416820 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 abf1451c38..ef79e5559d 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 c01ae1a40d..1931b89759 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 c1c3ff4bb0..8211f1f540 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 6f502c1a5b..53a0923745 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 0fb5355b61..e95b515e46 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 0fecbe0fda..27c6dbb6f8 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 b7f6ea6ba2..60d5b5f926 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 619b8e9519..7d93c29487 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 dd122fba27..92b07bd20a 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 5e0f83f1af..0d52af5dc3 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 c4afe989eb..758ec6020c 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 d6acc7bae7..9ef3589984 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 9eb396b568..678937f1d2 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 55d35b1d52..1e1369b884 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 90622d6d13..4d7b546076 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 e4d66b7107..4fa4883a0d 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 c7c9464af4..5d009b24e9 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 e8d109a1ba..e62bb4d204 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 1103992952..d716a387a1 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 d1ed3186c8..81811db7da 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 198add2902..d677fe1eff 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 ec544eb626..766225880d 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 d5046412c8..49bfa4e1ce 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 812e774e55..d0df669e00 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 a9192d554b..d5f6c8a5c9 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 ebe4580835..6d5fa85310 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 d21a48ba40..d9484f7882 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 7290bc7d72..fa8525b928 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 165a42fe30..4e86da0f8a 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 ae6ce6f6cb..493f5589e8 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 f88794ed89..9b94409b83 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 d619859617..b033fd1875 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 8cf285b39d..0cd3db2dec 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 fc5473d893..63436f3668 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 bfd0d86558..d53305392f 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 a5ffd48d69..06cd766eb7 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 23def55462..3b7d798c32 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 f152194056..103c3fb134 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 f9bdf1b947..4b07e46f65 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 9b222a8a8a..348f2b373a 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 325b12164c..9eb258b935 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 169db842df..1345771624 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 ad7d80dfee..9df86785a3 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) +}