Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

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.yml
index 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@v9
with:
script: | # js
const fs = require('fs');
diff --git a/.github/actions/fetch-artifact/action.yml b/.github/actions/fetch-artifact/action.yml
index 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_artifact
id: find_release_artifact
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
result-encoding: string
script: | # js
diff --git a/.github/actions/get-docker-info/action.yml b/.github/actions/get-docker-info/action.yml
index 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 info
id: docker-info
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | # js
const branch = '${{ inputs.branch }}';
diff --git a/.github/actions/notify-pull-request/action.yml b/.github/actions/notify-pull-request/action.yml
index 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@v9
if: ${{ 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@v9
if: ${{ inputs.add-new-comment == 'true' && always() && github.event_name == 'pull_request' }}
id: notify-pull-request
with:
diff --git a/.github/workflows/app-db.yml b/.github/workflows/app-db.yml
index 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@v9
env:
needs: ${{ toJson(needs) }}
with:
diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml
index 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@v9
with:
github-token: ${{ steps.generate-token.outputs.token }}
script: | #js
diff --git a/.github/workflows/auto-backport.yml b/.github/workflows/auto-backport.yml
index 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@v9
with:
script: | # js
const labels = [
@@ -58,7 +58,7 @@ jobs:
- name: get release versions
id: get-latest-release-version
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | # js
const currentVersion = Number(${{ vars.CURRENT_VERSION }});
diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml
index 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@v9
env:
needs: ${{ toJson(needs) }}
with:
diff --git a/.github/workflows/build-for-release.yml b/.github/workflows/build-for-release.yml
index 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 scripts
uses: ./.github/actions/prepare-release-scripts
- name: Send build start message
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
SLACK_RELEASE_CHANNEL: ${{ vars.SLACK_RELEASE_CHANNEL }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -85,7 +85,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Get Release Version
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
id: canonical_version
with:
script: | # js
@@ -129,7 +129,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Get Release Branch
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
id: release_branch
with:
result-encoding: string
@@ -163,7 +163,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Get build dependencies
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
id: dependencies
with:
script: | # js
diff --git a/.github/workflows/containerize-jar.yml b/.github/workflows/containerize-jar.yml
index 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 platforms
id: platforms
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
result-encoding: string
script: | # js
diff --git a/.github/workflows/containerize-uberjar.yml b/.github/workflows/containerize-uberjar.yml
index 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 info
id: build-matrix
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | # js
const 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.yml
index 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@v9
id: is-conventional-commit
with:
result-encoding: string
@@ -48,7 +48,7 @@ jobs:
- name: Remind PR authors to use conventional commit in the title
if: ${{ steps.is-conventional-commit.outputs.result != 'true' }}
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | #js
const { updateCommentForEmbedding } = require(".github/scripts/conventional-commit-pr-title-reminder/utils.js")
diff --git a/.github/workflows/cross-version.yml b/.github/workflows/cross-version.yml
index 5846e89234d..3541739c200 100644
--- a/.github/workflows/cross-version.yml
+++ b/.github/workflows/cross-version.yml
@@ -36,7 +36,7 @@ jobs:
- name: Generate version matrix
id: set-matrix
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: |
const { buildCrossVersionMatrix } = require('${{ github.workspace }}/.github/scripts/build-cross-version-matrix');
@@ -130,7 +130,7 @@ jobs:
- name: Notify Slack
continue-on-error: true
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
diff --git a/.github/workflows/cut-release-branch.yml b/.github/workflows/cut-release-branch.yml
index 4bfec80efbe..fa39367d70e 100644
--- a/.github/workflows/cut-release-branch.yml
+++ b/.github/workflows/cut-release-branch.yml
@@ -22,7 +22,7 @@ jobs:
- name: Preflight
id: preflight
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | # js
const { versionRequirements } = require('${{ github.workspace }}/release/dist/index.cjs');
@@ -87,7 +87,7 @@ jobs:
- name: Create 0.${{ steps.preflight.outputs.nextMilestone }} milestone
id: milestone
continue-on-error: true
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}
script: | # js
@@ -113,7 +113,7 @@ jobs:
- name: Create Bug:v${{ steps.preflight.outputs.nextMilestone }} label
id: label
continue-on-error: true
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}
script: | # js
@@ -145,7 +145,7 @@ jobs:
continue-on-error: true
env:
STATS_API_KEY: ${{ secrets.STATS_API_KEY }}
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | # js
const 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@v9
env:
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@v9
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
@@ -262,7 +262,7 @@ jobs:
# the happy-path message above.
- name: Notify Slack on cut failure
if: failure()
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
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.yml
index 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@v9
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
diff --git a/.github/workflows/drivers.yml b/.github/workflows/drivers.yml
index 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@v9
env:
needs: ${{ toJson(needs) }}
with:
diff --git a/.github/workflows/e2e-matrix-builder.yml b/.github/workflows/e2e-matrix-builder.yml
index 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@v9
id: matrix
env:
chunks: ${{ inputs.chunks }}
diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml
index 8b111d98698..10448e6a308 100644
--- a/.github/workflows/e2e-test.yml
+++ b/.github/workflows/e2e-test.yml
@@ -208,7 +208,7 @@ jobs:
id: extract-timings
if: inputs.split_index >= 0 && github.ref == 'refs/heads/master'
continue-on-error: true
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: |
const fs = require('fs');
@@ -251,7 +251,7 @@ jobs:
- name: Publish Summary
if: failure()
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | #js
const {
diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml
index 538b5b7b3a6..b8daf430f32 100644
--- a/.github/workflows/e2e-tests.yml
+++ b/.github/workflows/e2e-tests.yml
@@ -28,7 +28,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Remove test results comment
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | # js
const { owner, repo } = context.repo;
@@ -98,7 +98,7 @@ jobs:
- name: Merge split timings
id: merge
continue-on-error: true
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: |
const fs = require('fs');
diff --git a/.github/workflows/embedding-sdk-component-tests.yml b/.github/workflows/embedding-sdk-component-tests.yml
index 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@v9
with:
script: | #js
const {
@@ -286,7 +286,7 @@ jobs:
- name: Publish Summary
if: failure()
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | #js
const {
diff --git a/.github/workflows/embedding-sdk-host-sample-apps-tests.yml b/.github/workflows/embedding-sdk-host-sample-apps-tests.yml
index 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@v9
id: build-sample-apps-data
with:
script: | # js
diff --git a/.github/workflows/embedding-sdk.yml b/.github/workflows/embedding-sdk.yml
index 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@v9
env:
needs: ${{ toJson(needs) }}
with:
diff --git a/.github/workflows/emotion-stats-update.yml b/.github/workflows/emotion-stats-update.yml
index 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@v9
env:
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.yml
index 9ac408f7b3c..75ddb6a909a 100644
--- a/.github/workflows/escalation-slack-notification.yml
+++ b/.github/workflows/escalation-slack-notification.yml
@@ -11,7 +11,7 @@ jobs:
timeout-minutes: 10
steps:
- name: Format issue title (escape quotes)
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
id: vars
with:
script: |
diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml
index 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@v9
env:
needs: ${{ toJson(needs) }}
with:
diff --git a/.github/workflows/js-stats-update.yml b/.github/workflows/js-stats-update.yml
index 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@v9
env:
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.yml
index 84da0846157..dd3b1d4acf2 100644
--- a/.github/workflows/linear-pr-links.yml
+++ b/.github/workflows/linear-pr-links.yml
@@ -11,7 +11,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6
- name: Run the link script
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
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.yml
index 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@v9
with:
github-token: ${{secrets.METABASE_AUTOMATION_USER_TOKEN}}
script: |
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 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@v9
id: vars
with:
script: |
diff --git a/.github/workflows/minimal-tests.yml b/.github/workflows/minimal-tests.yml
index 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@v9
env:
needs: ${{ toJson(needs) }}
with:
diff --git a/.github/workflows/module-boundaries-stats.yml b/.github/workflows/module-boundaries-stats.yml
index 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_OUTPUT
echo "VIOLATIONS=$VIOLATIONS" >> $GITHUB_OUTPUT
- name: Upload stats
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
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.yml
index 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 config
id: config
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | # js
const { getMajorVersion } = require('${{ github.workspace }}/release/dist/index.cjs');
@@ -287,7 +287,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Send tests complete message
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
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.yml
index 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@v9
with:
script: | #js
const fs = require("fs");
diff --git a/.github/workflows/pull-request-reminders.yml b/.github/workflows/pull-request-reminders.yml
index 00f040e7637..6e070742615 100644
--- a/.github/workflows/pull-request-reminders.yml
+++ b/.github/workflows/pull-request-reminders.yml
@@ -16,7 +16,7 @@ jobs:
pull-requests: write
issues: read
steps:
- - uses: actions/github-script@v7
+ - uses: actions/github-script@v9
with:
script: | # js
const owner = context.repo.owner;
diff --git a/.github/workflows/release-auto.yml b/.github/workflows/release-auto.yml
index 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 commit
id: compute
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
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.yml
index 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 message
id: send-slack-message-start
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
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@v9
env:
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@v9
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
@@ -191,7 +191,7 @@ jobs:
- name: Get next SDK patch or pre-release version
id: new-sdk-version
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | #js
const { getNextSdkVersion } = require('${{ github.workspace }}/release/dist/index.cjs');
diff --git a/.github/workflows/release-log.yml b/.github/workflows/release-log.yml
index e704429ff53..7cd5d4ba1b6 100644
--- a/.github/workflows/release-log.yml
+++ b/.github/workflows/release-log.yml
@@ -45,7 +45,7 @@ jobs:
- name: Install tsx
run: npm i -g tsx
- name: Get version number
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | # js
const {
diff --git a/.github/workflows/release-milestone-check.yml b/.github/workflows/release-milestone-check.yml
index 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 scripts
run: bun install --cwd release --frozen-lockfile && bun run --cwd release build
- - uses: actions/github-script@v7
+ - uses: actions/github-script@v9
env:
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.yml
index 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 scripts
uses: ./.github/actions/prepare-release-scripts
- name: Update milestones
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | # js
const { 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.yml
index 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 scripts
uses: ./.github/actions/prepare-release-scripts
- name: Get Release Version
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
DOCKERHUB_OWNER: test_owner
DOCKERHUB_REPO: test_repo
@@ -68,7 +68,7 @@ jobs:
- name: Post release notes preview to Slack
if: ${{ inputs.slackChannel != '' }}
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
diff --git a/.github/workflows/release-status.yml b/.github/workflows/release-status.yml
index 21020227121..ee3107acbee 100644
--- a/.github/workflows/release-status.yml
+++ b/.github/workflows/release-status.yml
@@ -18,7 +18,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Check backport status and post to Slack
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
with:
diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml
index 89a500ce328..184534bd651 100644
--- a/.github/workflows/release-tag.yml
+++ b/.github/workflows/release-tag.yml
@@ -90,7 +90,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Get Release Version
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
id: canonical_version
with:
script: | # js
@@ -121,7 +121,7 @@ jobs:
return versions;
- name: Get Edition matrix
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
id: edition_matrix
with:
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@v9
id: source_path
with:
result-encoding: string
@@ -173,7 +173,7 @@ jobs:
return source_path;
- name: Determine upload path
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
id: upload_path
with:
result-encoding: string
@@ -316,7 +316,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Update latest in version-info.json
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | # js
const { updateVersionInfoLatest } = require('${{ github.workspace }}/release/dist/index.cjs');
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 0277bbeda81..4b712138d3c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -53,7 +53,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Get Release Version
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
id: canonical_version
with:
script: | # js
@@ -101,7 +101,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Send publish start message
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
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@v9
id: version_path
with:
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@v9
id: version_path
with:
result-encoding: string
@@ -281,7 +281,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Tag Release
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}
result-encoding: string
@@ -316,7 +316,7 @@ jobs:
uses: ./.github/actions/prepare-release-scripts
- name: Get extra tags
id: taglist
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
result-encoding: string
script: | # js
@@ -366,7 +366,7 @@ jobs:
uses: ./.github/actions/prepare-release-scripts
- name: Find milestone
id: find-milestone
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | # js
const { 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@v9
with:
github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}
script: | # js
@@ -409,7 +409,7 @@ jobs:
runs-on: ${{ vars.DEFAULT_RUNNER_KEY }}
timeout-minutes: 10
steps:
- - uses: actions/github-script@v7
+ - uses: actions/github-script@v9
with:
github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}
script: | # js
@@ -444,7 +444,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Publish draft release notes to github
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}
result-encoding: string
@@ -519,7 +519,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Publish version info
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
id: new_version_info
with:
result-encoding: string
@@ -567,7 +567,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Send publish complete message
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
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.yml
index 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@v9
with:
script: | # js
const MAX_ATTEMPTS = 1;
diff --git a/.github/workflows/resolve-backport-conflicts.yml b/.github/workflows/resolve-backport-conflicts.yml
index 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 data
id: pr
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
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@v9
with:
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@v9
with:
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@v9
with:
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@v9
with:
github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}
script: |
@@ -305,7 +305,7 @@ jobs:
- name: Remove label
if: always()
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
github-token: ${{ secrets.METABASE_AUTOMATION_USER_TOKEN }}
script: |
diff --git a/.github/workflows/schedule-minor.yml b/.github/workflows/schedule-minor.yml
index 97106027db4..ebae79eb44f 100644
--- a/.github/workflows/schedule-minor.yml
+++ b/.github/workflows/schedule-minor.yml
@@ -15,7 +15,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Dispatch minor release for the current major
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | # js
// Minor releases only go out for the current major; the
diff --git a/.github/workflows/schedule-patch.yml b/.github/workflows/schedule-patch.yml
index 7d87a2bb4c6..63aadd1c023 100644
--- a/.github/workflows/schedule-patch.yml
+++ b/.github/workflows/schedule-patch.yml
@@ -15,7 +15,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Dispatch patch release for the current and previous major
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: | # js
// Nightly patches cover the current supported major and the one
diff --git a/.github/workflows/security-slack-notification.yml b/.github/workflows/security-slack-notification.yml
index 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@v9
id: vars
with:
script: |
diff --git a/.github/workflows/semantic-search.yml b/.github/workflows/semantic-search.yml
index 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@v9
env:
needs: ${{ toJson(needs) }}
with:
diff --git a/.github/workflows/set-announce-url.yml b/.github/workflows/set-announce-url.yml
index 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@v9
id: announce_url
with:
result-encoding: string
diff --git a/.github/workflows/set-milestone.yml b/.github/workflows/set-milestone.yml
index 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@v9
if: ${{ github.event_name == 'push' && github.event.created != true }}
name: Set milestone for single commit
with:
@@ -87,7 +87,7 @@ jobs:
npm i -g tsx
tsx release/src/release-branch-commits.ts ${{ steps.version.outputs.major }} > commit-messages.json
- - uses: actions/github-script@v7
+ - uses: actions/github-script@v9
if: ${{ (github.event_name == 'push' && github.event.created == true) || github.event_name == 'workflow_dispatch' }}
name: Backfill milestones for release branch
env:
diff --git a/.github/workflows/tag-for-release.yml b/.github/workflows/tag-for-release.yml
index 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 scripts
uses: ./.github/actions/prepare-release-scripts
- name: Send build start message
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
env:
SLACK_RELEASE_CHANNEL: ${{ vars.SLACK_RELEASE_CHANNEL }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
@@ -83,7 +83,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Get Release Version
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
id: canonical_version
with:
script: | # js
@@ -127,7 +127,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Get Release Branch
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
id: release_branch
with:
result-encoding: string
@@ -255,7 +255,7 @@ jobs:
edition: ee
release: "true"
- name: Determine the upload path
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
id: version_path
with:
result-encoding: string
diff --git a/.github/workflows/team-issues-slack-notification.yml b/.github/workflows/team-issues-slack-notification.yml
index 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@v9
id: vars
with:
script: |
diff --git a/.github/workflows/transforms-python-stress-test.yml b/.github/workflows/transforms-python-stress-test.yml
index 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@v9
env:
needs: ${{ toJson(needs) }}
with:
diff --git a/.github/workflows/uberjar.yml b/.github/workflows/uberjar.yml
index 7f6a67c24bf..52ee4b03c35 100644
--- a/.github/workflows/uberjar.yml
+++ b/.github/workflows/uberjar.yml
@@ -99,7 +99,7 @@ jobs:
- name: Prepare release scripts
uses: ./.github/actions/prepare-release-scripts
- name: Get build dependencies
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
id: dependencies
with:
script: | # js
diff --git a/.github/workflows/update-e2e-timings.yml b/.github/workflows/update-e2e-timings.yml
index 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 data
id: collect-timings
- uses: actions/github-script@v7
+ uses: actions/github-script@v9
with:
script: |
const { collectAndAverageTimings } = require('${{ github.workspace }}/.github/scripts/average-e2e-timings.js');