The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
Upgrade `actions/github-script@v7` to its latest v9 (#74629)
Nemanja Glumac6c5473b913de
diff --git a/.github/actions/e2e-download-uberjar/action.yml b/.github/actions/e2e-download-uberjar/action.ymlindex 4dcf309c95e..a0d0b6ec024 100644--- a/.github/actions/e2e-download-uberjar/action.yml+++ b/.github/actions/e2e-download-uberjar/action.yml@@ -9,7 +9,7 @@ runs:using: "composite"steps:- name: Download previously stored uberjar- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # jsconst fs = require('fs');diff --git a/.github/actions/fetch-artifact/action.yml b/.github/actions/fetch-artifact/action.ymlindex 836bdbd8cd5..620782d06dd 100644--- a/.github/actions/fetch-artifact/action.yml+++ b/.github/actions/fetch-artifact/action.yml@@ -26,7 +26,7 @@ runs:steps:- name: find_release_artifactid: find_release_artifact- uses: actions/github-script@v7+ uses: actions/github-script@v9with:result-encoding: stringscript: | # jsdiff --git a/.github/actions/get-docker-info/action.yml b/.github/actions/get-docker-info/action.ymlindex 472a3db03a2..7d8c27a03d8 100644--- a/.github/actions/get-docker-info/action.yml+++ b/.github/actions/get-docker-info/action.yml@@ -34,7 +34,7 @@ runs:steps:- name: Determine Docker infoid: docker-info- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # jsconst branch = '${{ inputs.branch }}';diff --git a/.github/actions/notify-pull-request/action.yml b/.github/actions/notify-pull-request/action.ymlindex 64c2ff71b4e..69d056a5da6 100644--- a/.github/actions/notify-pull-request/action.yml+++ b/.github/actions/notify-pull-request/action.yml@@ -18,7 +18,7 @@ runs:using: "composite"steps:- name: Remove previous pull-request comment- uses: actions/github-script@v7+ uses: actions/github-script@v9if: ${{ inputs.remove-previous-comment == 'true' && always() && github.event_name == 'pull_request' }}with:script: |@@ -53,7 +53,7 @@ runs:}- name: Notify pull-request- uses: actions/github-script@v7+ uses: actions/github-script@v9if: ${{ inputs.add-new-comment == 'true' && always() && github.event_name == 'pull_request' }}id: notify-pull-requestwith:diff --git a/.github/workflows/app-db.yml b/.github/workflows/app-db.ymlindex 1b40ee8503b..87c0970b051 100644--- a/.github/workflows/app-db.yml+++ b/.github/workflows/app-db.yml@@ -369,7 +369,7 @@ jobs:if: always() && !cancelled()steps:- name: Check job status- uses: actions/github-script@v7+ uses: actions/github-script@v9env:needs: ${{ toJson(needs) }}with:diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.ymlindex 7489a6e5448..76019525fcf 100644--- a/.github/workflows/auto-assign.yml+++ b/.github/workflows/auto-assign.yml@@ -20,7 +20,7 @@ jobs:- name: Assign author and their team. Returns true if team exists.id: auto-assign- uses: actions/github-script@v7+ uses: actions/github-script@v9with:github-token: ${{ steps.generate-token.outputs.token }}script: | #jsdiff --git a/.github/workflows/auto-backport.yml b/.github/workflows/auto-backport.ymlindex 14dc40c3f68..ccbdfe81047 100644--- a/.github/workflows/auto-backport.yml+++ b/.github/workflows/auto-backport.yml@@ -35,7 +35,7 @@ jobs:- name: how many backports?id: how-many-backports- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # jsconst labels = [@@ -58,7 +58,7 @@ jobs:- name: get release versionsid: get-latest-release-version- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # jsconst currentVersion = Number(${{ vars.CURRENT_VERSION }});diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.ymlindex 5c291fe3331..0e73190d08d 100644--- a/.github/workflows/backend.yml+++ b/.github/workflows/backend.yml@@ -267,7 +267,7 @@ jobs:needs: ${{ toJson(needs) }}steps:- name: Check backend job status- uses: actions/github-script@v7+ uses: actions/github-script@v9env:needs: ${{ toJson(needs) }}with:diff --git a/.github/workflows/build-for-release.yml b/.github/workflows/build-for-release.ymlindex 2e008efa201..56043e5cfab 100644--- a/.github/workflows/build-for-release.yml+++ b/.github/workflows/build-for-release.yml@@ -31,7 +31,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Send build start message- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_RELEASE_CHANNEL: ${{ vars.SLACK_RELEASE_CHANNEL }}SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}@@ -85,7 +85,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Get Release Version- uses: actions/github-script@v7+ uses: actions/github-script@v9id: canonical_versionwith:script: | # js@@ -129,7 +129,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Get Release Branch- uses: actions/github-script@v7+ uses: actions/github-script@v9id: release_branchwith:result-encoding: string@@ -163,7 +163,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Get build dependencies- uses: actions/github-script@v7+ uses: actions/github-script@v9id: dependencieswith:script: | # jsdiff --git a/.github/workflows/containerize-jar.yml b/.github/workflows/containerize-jar.ymlindex 287b53c275f..bf0383d0488 100644--- a/.github/workflows/containerize-jar.yml+++ b/.github/workflows/containerize-jar.yml@@ -70,7 +70,7 @@ jobs:uses: ./.github/actions/prepare-release-scripts- name: Get platformsid: platforms- uses: actions/github-script@v7+ uses: actions/github-script@v9with:result-encoding: stringscript: | # jsdiff --git a/.github/workflows/containerize-uberjar.yml b/.github/workflows/containerize-uberjar.ymlindex 420828d6166..2d587a15f36 100644--- a/.github/workflows/containerize-uberjar.yml+++ b/.github/workflows/containerize-uberjar.yml@@ -28,7 +28,7 @@ jobs:edition: oss- name: Build matrix infoid: build-matrix- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # jsconst editions = JSON.parse('${{ steps.ee-info.outputs.editions }}');diff --git a/.github/workflows/conventional-commit-pr-title-reminder.yml b/.github/workflows/conventional-commit-pr-title-reminder.ymlindex 68f2133e932..5a4387e9426 100644--- a/.github/workflows/conventional-commit-pr-title-reminder.yml+++ b/.github/workflows/conventional-commit-pr-title-reminder.yml@@ -36,7 +36,7 @@ jobs:ref: ${{ github.head_ref }}- name: Check if the PR title is already following Conventional Commits style- uses: actions/github-script@v7+ uses: actions/github-script@v9id: is-conventional-commitwith:result-encoding: string@@ -48,7 +48,7 @@ jobs:- name: Remind PR authors to use conventional commit in the titleif: ${{ steps.is-conventional-commit.outputs.result != 'true' }}- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | #jsconst { updateCommentForEmbedding } = require(".github/scripts/conventional-commit-pr-title-reminder/utils.js")diff --git a/.github/workflows/cross-version.yml b/.github/workflows/cross-version.ymlindex 5846e89234d..3541739c200 100644--- a/.github/workflows/cross-version.yml+++ b/.github/workflows/cross-version.yml@@ -36,7 +36,7 @@ jobs:- name: Generate version matrixid: set-matrix- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: |const { buildCrossVersionMatrix } = require('${{ github.workspace }}/.github/scripts/build-cross-version-matrix');@@ -130,7 +130,7 @@ jobs:- name: Notify Slackcontinue-on-error: true- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}with:diff --git a/.github/workflows/cut-release-branch.yml b/.github/workflows/cut-release-branch.ymlindex 4bfec80efbe..fa39367d70e 100644--- a/.github/workflows/cut-release-branch.yml+++ b/.github/workflows/cut-release-branch.yml@@ -22,7 +22,7 @@ jobs:- name: Preflightid: preflight- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # jsconst { versionRequirements } = require('${{ github.workspace }}/release/dist/index.cjs');@@ -87,7 +87,7 @@ jobs:- name: Create 0.${{ steps.preflight.outputs.nextMilestone }} milestoneid: milestonecontinue-on-error: true- uses: actions/github-script@v7+ uses: actions/github-script@v9with:github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}script: | # js@@ -113,7 +113,7 @@ jobs:- name: Create Bug:v${{ steps.preflight.outputs.nextMilestone }} labelid: labelcontinue-on-error: true- uses: actions/github-script@v7+ uses: actions/github-script@v9with:github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}script: | # js@@ -145,7 +145,7 @@ jobs:continue-on-error: trueenv:STATS_API_KEY: ${{ secrets.STATS_API_KEY }}- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # jsconst next = '${{ steps.preflight.outputs.next }}';@@ -178,7 +178,7 @@ jobs:console.log(`Created timeline event ${name}`);- name: Notify Slack- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}with:@@ -233,7 +233,7 @@ jobs:# Heads-up to the broader eng audience about where backports go now.- name: Notify the engineering team- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}with:@@ -262,7 +262,7 @@ jobs:# the happy-path message above.- name: Notify Slack on cut failureif: failure()- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}with:diff --git a/.github/workflows/disabled-drivers-slack-notification.yml b/.github/workflows/disabled-drivers-slack-notification.ymlindex c3d2af957e1..d3c765b0306 100644--- a/.github/workflows/disabled-drivers-slack-notification.yml+++ b/.github/workflows/disabled-drivers-slack-notification.yml@@ -19,7 +19,7 @@ jobs:run: npm install @slack/web-api- name: Check disabled drivers and notify Slack- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}with:diff --git a/.github/workflows/drivers.yml b/.github/workflows/drivers.ymlindex 4e0b2542cd1..1d6962972db 100644--- a/.github/workflows/drivers.yml+++ b/.github/workflows/drivers.yml@@ -1652,7 +1652,7 @@ jobs:if: always() && !cancelled()steps:- name: Check job status- uses: actions/github-script@v7+ uses: actions/github-script@v9env:needs: ${{ toJson(needs) }}with:diff --git a/.github/workflows/e2e-matrix-builder.yml b/.github/workflows/e2e-matrix-builder.ymlindex fc163277905..3c25c2190fc 100644--- a/.github/workflows/e2e-matrix-builder.yml+++ b/.github/workflows/e2e-matrix-builder.yml@@ -37,7 +37,7 @@ jobs:with:node-version: lts/Jod # 22.x.x- name: Build e2e matrix- uses: actions/github-script@v7+ uses: actions/github-script@v9id: matrixenv:chunks: ${{ inputs.chunks }}diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.ymlindex 8b111d98698..10448e6a308 100644--- a/.github/workflows/e2e-test.yml+++ b/.github/workflows/e2e-test.yml@@ -208,7 +208,7 @@ jobs:id: extract-timingsif: inputs.split_index >= 0 && github.ref == 'refs/heads/master'continue-on-error: true- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: |const fs = require('fs');@@ -251,7 +251,7 @@ jobs:- name: Publish Summaryif: failure()- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | #jsconst {diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.ymlindex 538b5b7b3a6..b8daf430f32 100644--- a/.github/workflows/e2e-tests.yml+++ b/.github/workflows/e2e-tests.yml@@ -28,7 +28,7 @@ jobs:timeout-minutes: 5steps:- name: Remove test results comment- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # jsconst { owner, repo } = context.repo;@@ -98,7 +98,7 @@ jobs:- name: Merge split timingsid: mergecontinue-on-error: true- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: |const fs = require('fs');diff --git a/.github/workflows/embedding-sdk-component-tests.yml b/.github/workflows/embedding-sdk-component-tests.ymlindex a7597ae1170..35af566b85e 100644--- a/.github/workflows/embedding-sdk-component-tests.yml+++ b/.github/workflows/embedding-sdk-component-tests.yml@@ -122,7 +122,7 @@ jobs:- name: "SDK component tests > Publish Summary"if: failure()- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | #jsconst {@@ -286,7 +286,7 @@ jobs:- name: Publish Summaryif: failure()- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | #jsconst {diff --git a/.github/workflows/embedding-sdk-host-sample-apps-tests.yml b/.github/workflows/embedding-sdk-host-sample-apps-tests.ymlindex 4e44f6ed354..cb7b4d6b5fe 100644--- a/.github/workflows/embedding-sdk-host-sample-apps-tests.yml+++ b/.github/workflows/embedding-sdk-host-sample-apps-tests.yml@@ -34,7 +34,7 @@ jobs:uses: ./.github/actions/prepare-release-scripts- name: Build sample app compatibility data- uses: actions/github-script@v7+ uses: actions/github-script@v9id: build-sample-apps-datawith:script: | # jsdiff --git a/.github/workflows/embedding-sdk.yml b/.github/workflows/embedding-sdk.ymlindex 8afafd59474..751a3e9ec74 100644--- a/.github/workflows/embedding-sdk.yml+++ b/.github/workflows/embedding-sdk.yml@@ -192,7 +192,7 @@ jobs:needs: ${{ toJson(needs) }}steps:- name: Check embedding SDK job status- uses: actions/github-script@v7+ uses: actions/github-script@v9env:needs: ${{ toJson(needs) }}with:diff --git a/.github/workflows/emotion-stats-update.yml b/.github/workflows/emotion-stats-update.ymlindex 6f822ef09e2..625b3232ea5 100644--- a/.github/workflows/emotion-stats-update.yml+++ b/.github/workflows/emotion-stats-update.yml@@ -44,7 +44,7 @@ jobs:echo "EMOTION_FILES=$(($oss+$ee))" >> $GITHUB_OUTPUT- name: Upload count to Stats- uses: actions/github-script@v7+ uses: actions/github-script@v9env:EMOTION_FILES: ${{ steps.get-emotion-file-count.outputs.EMOTION_FILES }}API_KEY: ${{ secrets.STATS_API_KEY }}diff --git a/.github/workflows/escalation-slack-notification.yml b/.github/workflows/escalation-slack-notification.ymlindex 9ac408f7b3c..75ddb6a909a 100644--- a/.github/workflows/escalation-slack-notification.yml+++ b/.github/workflows/escalation-slack-notification.yml@@ -11,7 +11,7 @@ jobs:timeout-minutes: 10steps:- name: Format issue title (escape quotes)- uses: actions/github-script@v7+ uses: actions/github-script@v9id: varswith:script: |diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.ymlindex eb77626b425..96db0dc3d43 100644--- a/.github/workflows/frontend.yml+++ b/.github/workflows/frontend.yml@@ -164,7 +164,7 @@ jobs:needs: ${{ toJson(needs) }}steps:- name: Check frontend job status- uses: actions/github-script@v7+ uses: actions/github-script@v9env:needs: ${{ toJson(needs) }}with:diff --git a/.github/workflows/js-stats-update.yml b/.github/workflows/js-stats-update.ymlindex f4d28169392..1e59db3d5d4 100644--- a/.github/workflows/js-stats-update.yml+++ b/.github/workflows/js-stats-update.yml@@ -22,7 +22,7 @@ jobs:echo "JS_FILES=$(($oss+$ee))" >> $GITHUB_OUTPUT- name: Upload count to Stats- uses: actions/github-script@v7+ uses: actions/github-script@v9env:JS_FILES: ${{ steps.get-js-file-count.outputs.JS_FILES }}API_KEY: ${{ secrets.STATS_API_KEY }}diff --git a/.github/workflows/linear-pr-links.yml b/.github/workflows/linear-pr-links.ymlindex 84da0846157..dd3b1d4acf2 100644--- a/.github/workflows/linear-pr-links.yml+++ b/.github/workflows/linear-pr-links.yml@@ -11,7 +11,7 @@ jobs:- name: Checkout codeuses: actions/checkout@v6- name: Run the link script- uses: actions/github-script@v7+ uses: actions/github-script@v9env:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}LINEAR_API_KEY: ${{ secrets.LINEAR_API_KEY }}diff --git a/.github/workflows/loki-update.yml b/.github/workflows/loki-update.ymlindex 54b5329bf9e..49c5dc0d57a 100644--- a/.github/workflows/loki-update.yml+++ b/.github/workflows/loki-update.yml@@ -55,7 +55,7 @@ jobs:message: No visual differences were found. All Loki snapshots are up to date.- name: Remove 'loki-update' label- uses: actions/github-script@v7+ uses: actions/github-script@v9with:github-token: ${{secrets.METABASE_AUTOMATION_USER_TOKEN}}script: |diff --git a/.github/workflows/main.yml b/.github/workflows/main.ymlindex a27fc74589f..d6a987a918c 100644--- a/.github/workflows/main.yml+++ b/.github/workflows/main.yml@@ -12,7 +12,7 @@ jobs:contains(github.event.issue.labels.*.name, 'Type:New Feature')steps:- name: Setting title- uses: actions/github-script@v7+ uses: actions/github-script@v9id: varswith:script: |diff --git a/.github/workflows/minimal-tests.yml b/.github/workflows/minimal-tests.ymlindex 2993dd023ce..6eda344cd26 100644--- a/.github/workflows/minimal-tests.yml+++ b/.github/workflows/minimal-tests.yml@@ -172,7 +172,7 @@ jobs:if: always() && !cancelled()steps:- name: Check job status- uses: actions/github-script@v7+ uses: actions/github-script@v9env:needs: ${{ toJson(needs) }}with:diff --git a/.github/workflows/module-boundaries-stats.yml b/.github/workflows/module-boundaries-stats.ymlindex 340affca9dc..f95243e52e7 100644--- a/.github/workflows/module-boundaries-stats.yml+++ b/.github/workflows/module-boundaries-stats.yml@@ -52,7 +52,7 @@ jobs:echo "UNMODULED=$UNMODULED" >> $GITHUB_OUTPUTecho "VIOLATIONS=$VIOLATIONS" >> $GITHUB_OUTPUT- name: Upload stats- uses: actions/github-script@v7+ uses: actions/github-script@v9env:NAMED_MODULES: ${{ steps.get-stats.outputs.NAMED_MODULES }}ENFORCED_MODULES: ${{ steps.get-stats.outputs.ENFORCED_MODULES }}diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.ymlindex 5e53be93762..6332c3d3ab5 100644--- a/.github/workflows/pre-release.yml+++ b/.github/workflows/pre-release.yml@@ -43,7 +43,7 @@ jobs:# note: this block can be removed after we stop needing to be able to test versions before v55- name: Get test mode configid: config- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # jsconst { getMajorVersion } = require('${{ github.workspace }}/release/dist/index.cjs');@@ -287,7 +287,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Send tests complete message- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_RELEASE_CHANNEL: ${{ vars.SLACK_RELEASE_CHANNEL }}SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}diff --git a/.github/workflows/presto-kerberos-integration-test.yml b/.github/workflows/presto-kerberos-integration-test.ymlindex a1fa0e3afed..3e2dbf34d8c 100644--- a/.github/workflows/presto-kerberos-integration-test.yml+++ b/.github/workflows/presto-kerberos-integration-test.yml@@ -88,7 +88,7 @@ jobs:run: mba --mb . --data-db postgres-data -n example.com compose config > mba-compose.yml- name: Adjust generated docker-compose config- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | #jsconst fs = require("fs");diff --git a/.github/workflows/pull-request-reminders.yml b/.github/workflows/pull-request-reminders.ymlindex 00f040e7637..6e070742615 100644--- a/.github/workflows/pull-request-reminders.yml+++ b/.github/workflows/pull-request-reminders.yml@@ -16,7 +16,7 @@ jobs:pull-requests: writeissues: readsteps:- - uses: actions/github-script@v7+ - uses: actions/github-script@v9with:script: | # jsconst owner = context.repo.owner;diff --git a/.github/workflows/release-auto.yml b/.github/workflows/release-auto.ymlindex 2cb039ba7c4..9d4f8de87f3 100644--- a/.github/workflows/release-auto.yml+++ b/.github/workflows/release-auto.yml@@ -43,7 +43,7 @@ jobs:uses: ./.github/actions/prepare-release-scripts- name: Compute next version and green commitid: compute- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_RELEASE_CHANNEL: ${{ vars.SLACK_RELEASE_CHANNEL }}SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}diff --git a/.github/workflows/release-embedding-sdk.yml b/.github/workflows/release-embedding-sdk.ymlindex db2a83af6d3..da144dbd1a7 100644--- a/.github/workflows/release-embedding-sdk.yml+++ b/.github/workflows/release-embedding-sdk.yml@@ -59,7 +59,7 @@ jobs:- name: Send build start messageid: send-slack-message-start- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}with:@@ -109,7 +109,7 @@ jobs:path: release/dist/- name: Send build failure message- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}with:@@ -146,7 +146,7 @@ jobs:path: release/dist/- name: Send build successful message- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}with:@@ -191,7 +191,7 @@ jobs:- name: Get next SDK patch or pre-release versionid: new-sdk-version- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | #jsconst { getNextSdkVersion } = require('${{ github.workspace }}/release/dist/index.cjs');diff --git a/.github/workflows/release-log.yml b/.github/workflows/release-log.ymlindex e704429ff53..7cd5d4ba1b6 100644--- a/.github/workflows/release-log.yml+++ b/.github/workflows/release-log.yml@@ -45,7 +45,7 @@ jobs:- name: Install tsxrun: npm i -g tsx- name: Get version number- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # jsconst {diff --git a/.github/workflows/release-milestone-check.yml b/.github/workflows/release-milestone-check.ymlindex c92f0fef12e..5cb31c43e0b 100644--- a/.github/workflows/release-milestone-check.yml+++ b/.github/workflows/release-milestone-check.yml@@ -37,7 +37,7 @@ jobs:token: ${{ secrets.GITHUB_TOKEN }}- name: Prepare build scriptsrun: bun install --cwd release --frozen-lockfile && bun run --cwd release build- - uses: actions/github-script@v7+ - uses: actions/github-script@v9env:GITHUB_TOKEN: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}SLACK_RELEASE_CHANNEL: ${{ vars.SLACK_RELEASE_CHANNEL }}diff --git a/.github/workflows/release-milestone-manage.yml b/.github/workflows/release-milestone-manage.ymlindex f8af7afe537..0f5d354ae5f 100644--- a/.github/workflows/release-milestone-manage.yml+++ b/.github/workflows/release-milestone-manage.yml@@ -36,7 +36,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Update milestones- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # jsconst { closeMilestone, openNextMilestones, isPreReleaseVersion } = require('${{ github.workspace }}/release/dist/index.cjs');diff --git a/.github/workflows/release-notes-preview.yml b/.github/workflows/release-notes-preview.ymlindex 21fbe33507f..c0f59aac7bf 100644--- a/.github/workflows/release-notes-preview.yml+++ b/.github/workflows/release-notes-preview.yml@@ -34,7 +34,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Get Release Version- uses: actions/github-script@v7+ uses: actions/github-script@v9env:DOCKERHUB_OWNER: test_ownerDOCKERHUB_REPO: test_repo@@ -68,7 +68,7 @@ jobs:- name: Post release notes preview to Slackif: ${{ inputs.slackChannel != '' }}- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}with:diff --git a/.github/workflows/release-status.yml b/.github/workflows/release-status.ymlindex 21020227121..ee3107acbee 100644--- a/.github/workflows/release-status.yml+++ b/.github/workflows/release-status.yml@@ -18,7 +18,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Check backport status and post to Slack- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}with:diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.ymlindex 89a500ce328..184534bd651 100644--- a/.github/workflows/release-tag.yml+++ b/.github/workflows/release-tag.yml@@ -90,7 +90,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Get Release Version- uses: actions/github-script@v7+ uses: actions/github-script@v9id: canonical_versionwith:script: | # js@@ -121,7 +121,7 @@ jobs:return versions;- name: Get Edition matrix- uses: actions/github-script@v7+ uses: actions/github-script@v9id: edition_matrixwith:script: | # js@@ -156,7 +156,7 @@ jobs:role-to-assume: ${{ secrets.CI_RELEASE_IAM_ROLE }}aws-region: ${{ vars.AWS_REGION }}- name: Determine the source path- uses: actions/github-script@v7+ uses: actions/github-script@v9id: source_pathwith:result-encoding: string@@ -173,7 +173,7 @@ jobs:return source_path;- name: Determine upload path- uses: actions/github-script@v7+ uses: actions/github-script@v9id: upload_pathwith:result-encoding: string@@ -316,7 +316,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Update latest in version-info.json- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # jsconst { updateVersionInfoLatest } = require('${{ github.workspace }}/release/dist/index.cjs');diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 0277bbeda81..4b712138d3c 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -53,7 +53,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Get Release Version- uses: actions/github-script@v7+ uses: actions/github-script@v9id: canonical_versionwith:script: | # js@@ -101,7 +101,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Send publish start message- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_RELEASE_CHANNEL: ${{ vars.SLACK_RELEASE_CHANNEL }}SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}@@ -187,7 +187,7 @@ jobs:with:name: metabase-${{ matrix.edition }}-uberjar- name: Determine the upload path ## EE is always v1.x.y, OSS is always v0.x.y- uses: actions/github-script@v7+ uses: actions/github-script@v9id: version_pathwith:result-encoding: string@@ -226,7 +226,7 @@ jobs:with:name: metabase-${{ matrix.edition }}-uberjar- name: Determine the download path ## EE is always v1.x.y, OSS is always v0.x.y- uses: actions/github-script@v7+ uses: actions/github-script@v9id: version_pathwith:result-encoding: string@@ -281,7 +281,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Tag Release- uses: actions/github-script@v7+ uses: actions/github-script@v9with:github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}result-encoding: string@@ -316,7 +316,7 @@ jobs:uses: ./.github/actions/prepare-release-scripts- name: Get extra tagsid: taglist- uses: actions/github-script@v7+ uses: actions/github-script@v9with:result-encoding: stringscript: | # js@@ -366,7 +366,7 @@ jobs:uses: ./.github/actions/prepare-release-scripts- name: Find milestoneid: find-milestone- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # jsconst { findMilestone } = require('${{ github.workspace }}/release/dist/index.cjs');@@ -382,7 +382,7 @@ jobs:console.log("Milestone:", milestone.number);core.setOutput('milestone', milestone.number);- - uses: actions/github-script@v7+ - uses: actions/github-script@v9with:github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}script: | # js@@ -409,7 +409,7 @@ jobs:runs-on: ${{ vars.DEFAULT_RUNNER_KEY }}timeout-minutes: 10steps:- - uses: actions/github-script@v7+ - uses: actions/github-script@v9with:github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}script: | # js@@ -444,7 +444,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Publish draft release notes to github- uses: actions/github-script@v7+ uses: actions/github-script@v9with:github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}result-encoding: string@@ -519,7 +519,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Publish version info- uses: actions/github-script@v7+ uses: actions/github-script@v9id: new_version_infowith:result-encoding: string@@ -567,7 +567,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Send publish complete message- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_RELEASE_CHANNEL: ${{ vars.SLACK_RELEASE_CHANNEL }}SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}diff --git a/.github/workflows/rerun-workflows.yml b/.github/workflows/rerun-workflows.ymlindex db5023b7cc1..fb4681874a4 100644--- a/.github/workflows/rerun-workflows.yml+++ b/.github/workflows/rerun-workflows.yml@@ -28,7 +28,7 @@ jobs:node-version: lts/Jod # 22.x.x- run: npm install @slack/web-api- name: Trigger a re-run- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # jsconst MAX_ATTEMPTS = 1;diff --git a/.github/workflows/resolve-backport-conflicts.yml b/.github/workflows/resolve-backport-conflicts.ymlindex 8b6b3f02a8c..3d33c72ad36 100644--- a/.github/workflows/resolve-backport-conflicts.yml+++ b/.github/workflows/resolve-backport-conflicts.yml@@ -33,7 +33,7 @@ jobs:steps:- name: Get PR dataid: pr- uses: actions/github-script@v7+ uses: actions/github-script@v9with:github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}script: |@@ -228,7 +228,7 @@ jobs:- name: Comment on PR (success)if: always() && steps.claude.outcome == 'success' && steps.check-failure.outputs.max_turns_exceeded != 'true'- uses: actions/github-script@v7+ uses: actions/github-script@v9with:github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}script: |@@ -256,7 +256,7 @@ jobs:- name: Comment on PR (max turns exceeded)if: always() && steps.check-failure.outputs.max_turns_exceeded == 'true'- uses: actions/github-script@v7+ uses: actions/github-script@v9with:github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}script: |@@ -275,7 +275,7 @@ jobs:- name: Comment on PR (failure)if: always() && steps.claude.outcome == 'failure' && steps.check-failure.outputs.max_turns_exceeded != 'true'- uses: actions/github-script@v7+ uses: actions/github-script@v9with:github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}script: |@@ -292,7 +292,7 @@ jobs:- name: Comment on PR (clean cherry-pick)if: always() && steps.backport.outputs.has_conflicts == 'false'- uses: actions/github-script@v7+ uses: actions/github-script@v9with:github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}script: |@@ -305,7 +305,7 @@ jobs:- name: Remove labelif: always()- uses: actions/github-script@v7+ uses: actions/github-script@v9with:github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}script: |diff --git a/.github/workflows/schedule-minor.yml b/.github/workflows/schedule-minor.ymlindex 97106027db4..ebae79eb44f 100644--- a/.github/workflows/schedule-minor.yml+++ b/.github/workflows/schedule-minor.yml@@ -15,7 +15,7 @@ jobs:timeout-minutes: 5steps:- name: Dispatch minor release for the current major- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # js// Minor releases only go out for the current major; thediff --git a/.github/workflows/schedule-patch.yml b/.github/workflows/schedule-patch.ymlindex 7d87a2bb4c6..63aadd1c023 100644--- a/.github/workflows/schedule-patch.yml+++ b/.github/workflows/schedule-patch.yml@@ -15,7 +15,7 @@ jobs:timeout-minutes: 5steps:- name: Dispatch patch release for the current and previous major- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: | # js// Nightly patches cover the current supported major and the onediff --git a/.github/workflows/security-slack-notification.yml b/.github/workflows/security-slack-notification.ymlindex a5bf35c0b43..3b0c4470a32 100644--- a/.github/workflows/security-slack-notification.yml+++ b/.github/workflows/security-slack-notification.yml@@ -12,7 +12,7 @@ jobs:if: github.event.label.name == 'SECURITY'steps:- name: Setting title- uses: actions/github-script@v7+ uses: actions/github-script@v9id: varswith:script: |diff --git a/.github/workflows/semantic-search.yml b/.github/workflows/semantic-search.ymlindex 77fd4810ee8..4eaa04f99f2 100644--- a/.github/workflows/semantic-search.yml+++ b/.github/workflows/semantic-search.yml@@ -298,7 +298,7 @@ jobs:if: always() && !cancelled()steps:- name: Check job status- uses: actions/github-script@v7+ uses: actions/github-script@v9env:needs: ${{ toJson(needs) }}with:diff --git a/.github/workflows/set-announce-url.yml b/.github/workflows/set-announce-url.ymlindex cd8ba532b7c..466848de98e 100644--- a/.github/workflows/set-announce-url.yml+++ b/.github/workflows/set-announce-url.yml@@ -30,7 +30,7 @@ jobs:role-to-assume: ${{ secrets.CI_RELEASE_IAM_ROLE }}aws-region: ${{ vars.AWS_REGION }}- name: Update announcement url- uses: actions/github-script@v7+ uses: actions/github-script@v9id: announce_urlwith:result-encoding: stringdiff --git a/.github/workflows/set-milestone.yml b/.github/workflows/set-milestone.ymlindex 7c84d02a0c2..3f06bfeec2d 100644--- a/.github/workflows/set-milestone.yml+++ b/.github/workflows/set-milestone.yml@@ -56,7 +56,7 @@ jobs:# `github.event.created` is a documented top-level field on the push# webhook payload (true iff the push created the ref). See:# https://docs.github.com/en/webhooks/webhook-events-and-payloads#push- - uses: actions/github-script@v7+ - uses: actions/github-script@v9if: ${{ github.event_name == 'push' && github.event.created != true }}name: Set milestone for single commitwith:@@ -87,7 +87,7 @@ jobs:npm i -g tsxtsx release/src/release-branch-commits.ts ${{ steps.version.outputs.major }} > commit-messages.json- - uses: actions/github-script@v7+ - uses: actions/github-script@v9if: ${{ (github.event_name == 'push' && github.event.created == true) || github.event_name == 'workflow_dispatch' }}name: Backfill milestones for release branchenv:diff --git a/.github/workflows/tag-for-release.yml b/.github/workflows/tag-for-release.ymlindex 37c34d685cd..81439d5448f 100644--- a/.github/workflows/tag-for-release.yml+++ b/.github/workflows/tag-for-release.yml@@ -42,7 +42,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Send build start message- uses: actions/github-script@v7+ uses: actions/github-script@v9env:SLACK_RELEASE_CHANNEL: ${{ vars.SLACK_RELEASE_CHANNEL }}SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}@@ -83,7 +83,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Get Release Version- uses: actions/github-script@v7+ uses: actions/github-script@v9id: canonical_versionwith:script: | # js@@ -127,7 +127,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Get Release Branch- uses: actions/github-script@v7+ uses: actions/github-script@v9id: release_branchwith:result-encoding: string@@ -255,7 +255,7 @@ jobs:edition: eerelease: "true"- name: Determine the upload path- uses: actions/github-script@v7+ uses: actions/github-script@v9id: version_pathwith:result-encoding: stringdiff --git a/.github/workflows/team-issues-slack-notification.yml b/.github/workflows/team-issues-slack-notification.ymlindex 8695e7aa336..7176849622e 100644--- a/.github/workflows/team-issues-slack-notification.yml+++ b/.github/workflows/team-issues-slack-notification.yml@@ -15,7 +15,7 @@ jobs:contains(github.event.issue.labels.*.name, 'flaky-test-fix') )steps:- name: Setting title- uses: actions/github-script@v7+ uses: actions/github-script@v9id: varswith:script: |diff --git a/.github/workflows/transforms-python-stress-test.yml b/.github/workflows/transforms-python-stress-test.ymlindex a170df9d483..9c65b10ec14 100644--- a/.github/workflows/transforms-python-stress-test.yml+++ b/.github/workflows/transforms-python-stress-test.yml@@ -466,7 +466,7 @@ jobs:if: always() && !cancelled()steps:- name: Check job status- uses: actions/github-script@v7+ uses: actions/github-script@v9env:needs: ${{ toJson(needs) }}with:diff --git a/.github/workflows/uberjar.yml b/.github/workflows/uberjar.ymlindex 7f6a67c24bf..52ee4b03c35 100644--- a/.github/workflows/uberjar.yml+++ b/.github/workflows/uberjar.yml@@ -99,7 +99,7 @@ jobs:- name: Prepare release scriptsuses: ./.github/actions/prepare-release-scripts- name: Get build dependencies- uses: actions/github-script@v7+ uses: actions/github-script@v9id: dependencieswith:script: | # jsdiff --git a/.github/workflows/update-e2e-timings.yml b/.github/workflows/update-e2e-timings.ymlindex ccd83fd57fb..b6bf458d6ec 100644--- a/.github/workflows/update-e2e-timings.yml+++ b/.github/workflows/update-e2e-timings.yml@@ -42,7 +42,7 @@ jobs:- name: Collect and average timing dataid: collect-timings- uses: actions/github-script@v7+ uses: actions/github-script@v9with:script: |const { collectAndAverageTimings } = require('${{ github.workspace }}/.github/scripts/average-e2e-timings.js');