diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml index 8d7e677..3641889 100644 --- a/.github/workflows/auto-label.yml +++ b/.github/workflows/auto-label.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Ensure labels exist - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const labels = [ @@ -50,7 +50,7 @@ jobs: } } - name: Add labels to this PR - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const number = context.payload.pull_request.number; @@ -66,7 +66,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Ensure labels exist - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const labels = [ @@ -95,7 +95,7 @@ jobs: } } - name: Add labels to all open PRs - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | async function paginateAllOpenPRs() { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d6f07e..2ad4aae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -532,7 +532,7 @@ jobs: - name: Comment on PR if: github.event_name == 'pull_request' - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const summary = `## 🔍 CI Pipeline Results diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7ec7b32..9e5ee63 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -77,7 +77,7 @@ jobs: - name: Check for high severity alerts if: always() - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const { data: alerts } = await github.rest.codeScanning.listAlertsForRepo({ diff --git a/.github/workflows/complete-production-pipeline.yml b/.github/workflows/complete-production-pipeline.yml index 0b37244..8b683da 100644 --- a/.github/workflows/complete-production-pipeline.yml +++ b/.github/workflows/complete-production-pipeline.yml @@ -169,7 +169,7 @@ jobs: - name: Comment on PR if: github.event_name == 'pull_request' - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | await github.rest.issues.createComment({ @@ -279,7 +279,7 @@ jobs: uses: actions/checkout@v6 - name: Create failure issue - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const workflowRun = await github.rest.actions.getWorkflowRun({ diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 75f35ed..f4e3cb4 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -90,7 +90,7 @@ jobs: scope: ${{ secrets.VERCEL_ORG_ID }} - name: Add preview-deployed label - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | try { @@ -105,7 +105,7 @@ jobs: } - name: Comment preview URL on PR - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const url = '${{ steps.deploy.outputs.preview-url }}'; @@ -168,7 +168,7 @@ jobs: steps: - name: Comment on PR - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const comment = `## ⚠️ Preview Deployment Skipped diff --git a/.github/workflows/deploy-railway-preview.yml b/.github/workflows/deploy-railway-preview.yml index 4d6e0a1..d639253 100644 --- a/.github/workflows/deploy-railway-preview.yml +++ b/.github/workflows/deploy-railway-preview.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Check for skip-deployment label id: check - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const labels = context.payload.pull_request.labels.map(label => label.name); @@ -196,7 +196,7 @@ jobs: - name: Add preview-deployed label if: success() - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | try { @@ -211,7 +211,7 @@ jobs: } - name: Comment preview URL on PR - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const url = '${{ steps.deploy.outputs.url }}'; @@ -276,7 +276,7 @@ jobs: - name: Create deployment record if: success() - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const deployment = await github.rest.repos.createDeployment({ @@ -309,7 +309,7 @@ jobs: steps: - name: Comment on PR - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const skipLabel = '${{ needs.check-skip.outputs.should-deploy }}' === 'false'; diff --git a/.github/workflows/deploy-railway.yml b/.github/workflows/deploy-railway.yml index f74afb1..f9e7dd8 100644 --- a/.github/workflows/deploy-railway.yml +++ b/.github/workflows/deploy-railway.yml @@ -157,7 +157,7 @@ jobs: exit 1 - name: Create deployment record - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const deployment = await github.rest.repos.createDeployment({ @@ -183,7 +183,7 @@ jobs: - name: Notify on failure if: failure() - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const issue = await github.rest.issues.create({ diff --git a/.github/workflows/deploy-vercel.yml b/.github/workflows/deploy-vercel.yml index 4cf63df..65ec792 100644 --- a/.github/workflows/deploy-vercel.yml +++ b/.github/workflows/deploy-vercel.yml @@ -62,7 +62,7 @@ jobs: VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} - name: Create deployment - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const deployment = await github.rest.repos.createDeployment({ @@ -105,7 +105,7 @@ jobs: - name: Comment on PR (if applicable) if: github.event_name == 'pull_request' - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const url = '${{ steps.deploy.outputs.url }}'; @@ -132,7 +132,7 @@ jobs: - name: Notify on failure if: failure() - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const issue = await github.rest.issues.create({ @@ -177,7 +177,7 @@ jobs: continue-on-error: true - name: Notify rollback - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | console.log('⏪ Rollback initiated due to deployment failure'); diff --git a/.github/workflows/failed-job-handler.yml b/.github/workflows/failed-job-handler.yml index ef8bcc9..7d50e77 100644 --- a/.github/workflows/failed-job-handler.yml +++ b/.github/workflows/failed-job-handler.yml @@ -28,7 +28,7 @@ jobs: - name: Get workflow run details id: workflow - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | let runId; @@ -118,7 +118,7 @@ jobs: - name: Retry workflow if: steps.workflow.outputs.should_retry == 'true' - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const runId = parseInt('${{ steps.workflow.outputs.run_id }}'); @@ -141,7 +141,7 @@ jobs: if: | steps.workflow.outputs.should_retry == 'false' && steps.workflow.outputs.attempt >= 3 - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const runId = '${{ steps.workflow.outputs.run_id }}'; diff --git a/.github/workflows/gxq-pr-check.yml b/.github/workflows/gxq-pr-check.yml index d54a0f7..859bfbe 100644 --- a/.github/workflows/gxq-pr-check.yml +++ b/.github/workflows/gxq-pr-check.yml @@ -81,7 +81,7 @@ jobs: echo "webapp_size=$WEBAPP_SIZE" >> $GITHUB_OUTPUT - name: Comment PR with results - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const distSize = '${{ steps.sizes.outputs.dist_size }}'; diff --git a/.github/workflows/gxq-scheduled-health.yml b/.github/workflows/gxq-scheduled-health.yml index 16f3bbe..17802d4 100644 --- a/.github/workflows/gxq-scheduled-health.yml +++ b/.github/workflows/gxq-scheduled-health.yml @@ -123,7 +123,7 @@ jobs: - name: Create issue if services are down if: steps.report.outputs.has_issues == 'true' - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const fs = require('fs'); @@ -163,7 +163,7 @@ jobs: - name: Close health check issues if all healthy if: steps.report.outputs.has_issues == 'false' - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | // Find and close open health check issues diff --git a/.github/workflows/powershell-merge-automation.yml b/.github/workflows/powershell-merge-automation.yml index f114978..c3521c9 100644 --- a/.github/workflows/powershell-merge-automation.yml +++ b/.github/workflows/powershell-merge-automation.yml @@ -190,7 +190,7 @@ jobs: - name: Create Issue on Failure if: failure() && github.event_name == 'schedule' - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const fs = require('fs'); @@ -240,7 +240,7 @@ jobs: - name: Comment Success if: success() && github.event_name == 'workflow_dispatch' - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | // If triggered manually, post a success comment to a tracking issue diff --git a/.github/workflows/self-optimize.yml b/.github/workflows/self-optimize.yml index e5113b5..a3c3ade 100644 --- a/.github/workflows/self-optimize.yml +++ b/.github/workflows/self-optimize.yml @@ -325,7 +325,7 @@ jobs: echo "*🤖 Generated by Continuous Self-Optimization Workflow*" >> /tmp/pr-comment.md - name: Post PR comment - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const fs = require('fs'); @@ -362,7 +362,7 @@ jobs: } - name: Create inline PR review comments - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const fs = require('fs'); @@ -555,7 +555,7 @@ jobs: npm run build:webapp - name: Update production readiness comment - uses: actions/github-script@v8 + uses: actions/github-script@v9 with: script: | const fs = require('fs');