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
Fix all actionlint findings in .github/workflows (#79606)
Chris Vandoodewaarda9ca5965c4ca
diff --git a/.github/actionlint.yaml b/.github/actionlint.yamlnew file mode 100644index 00000000000..aadda76f6dc--- /dev/null+++ b/.github/actionlint.yaml@@ -0,0 +1,5 @@+self-hosted-runner:+ # Custom runner labels that actionlint cannot know about. Everything else is+ # selected through `vars.DEFAULT_RUNNER_KEY` and is not checked.+ labels:+ - arm-ubuntu-24-2corediff --git a/.github/actions/create-backport/action.yml b/.github/actions/create-backport/action.ymlindex cb486c261e6..c2171b6ca66 100644--- a/.github/actions/create-backport/action.yml+++ b/.github/actions/create-backport/action.yml@@ -1,4 +1,5 @@name: Create Backport PR+description: Cherry-picks a commit onto a release branch and opens the backport pull request.inputs:target-version: # major version number like 34 or 86@@ -42,7 +43,7 @@ runs:git cherry-pick --abortecho "Could not cherry pick because of a conflict"- echo "has-conflicts=true" >> $GITHUB_OUTPUT+ echo "has-conflicts=true" >> "$GITHUB_OUTPUT"# Add a shell script for resolving conflictsecho "git reset HEAD~1" > ./backport.sh@@ -66,7 +67,7 @@ runs:END)else- echo "has-conflicts=false" >> $GITHUB_OUTPUT+ echo "has-conflicts=false" >> "$GITHUB_OUTPUT"PR_BODY="#${ORIGINAL_PULL_REQUEST_NUMBER}"fi@@ -80,7 +81,7 @@ runs:BACKPORT_PR_URL=$(gh pr create "${PR_ARGS[@]}")BACKPORT_PR_NUMBER=${BACKPORT_PR_URL##*/}- echo "backport_pr_number=$BACKPORT_PR_NUMBER" >> $GITHUB_OUTPUT+ echo "backport_pr_number=$BACKPORT_PR_NUMBER" >> "$GITHUB_OUTPUT"echo "New PR has been created: #${BACKPORT_PR_NUMBER}"git checkout ${{ github.sha }}diff --git a/.github/actions/fetch-artifact/action.yml b/.github/actions/fetch-artifact/action.ymlindex 620782d06dd..97cf80a09f2 100644--- a/.github/actions/fetch-artifact/action.yml+++ b/.github/actions/fetch-artifact/action.yml@@ -113,9 +113,9 @@ runs:# Set the JAR_PATH environment variableif [ "$EXTRACT_PATH" == "." ]; then- echo "JAR_PATH=$OUTPUT_NAME" >> $GITHUB_ENV+ echo "JAR_PATH=$OUTPUT_NAME" >> "$GITHUB_ENV"else- echo "JAR_PATH=$EXTRACT_PATH/$OUTPUT_NAME" >> $GITHUB_ENV+ echo "JAR_PATH=$EXTRACT_PATH/$OUTPUT_NAME" >> "$GITHUB_ENV"fi- name: Verify that this is a valid JAR filediff --git a/.github/actions/find-squashed-commit/action.yml b/.github/actions/find-squashed-commit/action.ymlindex fabf0475d84..3c8823c77ef 100644--- a/.github/actions/find-squashed-commit/action.yml+++ b/.github/actions/find-squashed-commit/action.yml@@ -22,7 +22,7 @@ runs:COMMIT=$(env -i git log $BASE_REF --grep="(#$PULL_REQUEST_NUMBER)" --format="%H")echo "commit SHA $COMMIT"- echo "commit=$COMMIT" >> $GITHUB_OUTPUT+ echo "commit=$COMMIT" >> "$GITHUB_OUTPUT"id: find-squashed-commitshell: bashenv:diff --git a/.github/actions/get-cache-keys/action.yml b/.github/actions/get-cache-keys/action.ymlindex 79e163130f9..9f3644ec1c3 100644--- a/.github/actions/get-cache-keys/action.yml+++ b/.github/actions/get-cache-keys/action.yml@@ -36,10 +36,10 @@ runs:WEEK_OF_YEAR=$(/bin/date "+%G-%V")CACHE_SUFFIX="${{ runner.os }}-$WEEK_OF_YEAR"- echo "m2-cache-key=$M2_CACHE_PREFIX-$CACHE_SUFFIX" >> $GITHUB_OUTPUT- echo "m2-restore-key=$M2_CACHE_PREFIX-" >> $GITHUB_OUTPUT- echo "node-cache-key=$NODE_CACHE_PREFIX-$CACHE_SUFFIX" >> $GITHUB_OUTPUT- echo "node-restore-key=$NODE_CACHE_PREFIX-" >> $GITHUB_OUTPUT- echo "eslint-cache-key=$ESLINT_CACHE_PREFIX-$CACHE_SUFFIX" >> $GITHUB_OUTPUT- echo "cypress-cache-key=$CYPRESS_CACHE_PREFIX-$CACHE_SUFFIX" >> $GITHUB_OUTPUT+ echo "m2-cache-key=$M2_CACHE_PREFIX-$CACHE_SUFFIX" >> "$GITHUB_OUTPUT"+ echo "m2-restore-key=$M2_CACHE_PREFIX-" >> "$GITHUB_OUTPUT"+ echo "node-cache-key=$NODE_CACHE_PREFIX-$CACHE_SUFFIX" >> "$GITHUB_OUTPUT"+ echo "node-restore-key=$NODE_CACHE_PREFIX-" >> "$GITHUB_OUTPUT"+ echo "eslint-cache-key=$ESLINT_CACHE_PREFIX-$CACHE_SUFFIX" >> "$GITHUB_OUTPUT"+ echo "cypress-cache-key=$CYPRESS_CACHE_PREFIX-$CACHE_SUFFIX" >> "$GITHUB_OUTPUT"shell: bashdiff --git a/.github/actions/prepare-frontend/action.yml b/.github/actions/prepare-frontend/action.ymlindex a2d8062e6ef..0c6a8c6a731 100644--- a/.github/actions/prepare-frontend/action.yml+++ b/.github/actions/prepare-frontend/action.yml@@ -35,7 +35,7 @@ runs:run: |BUN_CACHE_DIR=$(bun pm cache)echo "Bun cache directory: $BUN_CACHE_DIR"- echo "dir=$BUN_CACHE_DIR" >> $GITHUB_OUTPUT+ echo "dir=$BUN_CACHE_DIR" >> "$GITHUB_OUTPUT"shell: bash- name: Restore node_modules cachediff --git a/.github/actions/prepare-shoppy-e2e/action.yml b/.github/actions/prepare-shoppy-e2e/action.ymlindex a63f9b48ebe..e36fa764e7b 100644--- a/.github/actions/prepare-shoppy-e2e/action.yml+++ b/.github/actions/prepare-shoppy-e2e/action.yml@@ -88,9 +88,9 @@ runs:REPO_URL="https://github.com/metabase/shoppy.git"echo "Checking if branch '${SAMPLE_APP_BRANCH_NAME}' exists in ${REPO_URL}..."if git ls-remote --exit-code --heads "$REPO_URL" "${SAMPLE_APP_BRANCH_NAME}"; then- echo "sample_app_branch_exists=true" >> $GITHUB_OUTPUT+ echo "sample_app_branch_exists=true" >> "$GITHUB_OUTPUT"else- echo "sample_app_branch_exists=false" >> $GITHUB_OUTPUT+ echo "sample_app_branch_exists=false" >> "$GITHUB_OUTPUT"fi- name: Configure AWS credentialsdiff --git a/.github/actions/upgrade-backend-deps/action.yml b/.github/actions/upgrade-backend-deps/action.ymlindex a594c0f4c31..703ccc0bd96 100644--- a/.github/actions/upgrade-backend-deps/action.yml+++ b/.github/actions/upgrade-backend-deps/action.yml@@ -1,4 +1,5 @@name: Create Backend Dep Bump PRs+description: Opens a pull request for each backend dependency that has a newer version available.inputs:github-token:diff --git a/.github/workflows/backend-cloverage.yml b/.github/workflows/backend-cloverage.ymlindex c8e6026eefa..c029a4e0b92 100644--- a/.github/workflows/backend-cloverage.yml+++ b/.github/workflows/backend-cloverage.yml@@ -24,8 +24,8 @@ jobs:- uses: actions/checkout@v6- id: get-modulesrun: |- modules=$(ls -1d src/metabase/*/ | xargs -n1 basename | tr '_' '-' | jq -R -s -c 'split("\n") | map(select(length > 0))')- echo "modules=$modules" >> $GITHUB_OUTPUT+ modules=$(for d in src/metabase/*/; do basename "$d"; done | tr '_' '-' | jq -R -s -c 'split("\n") | map(select(length > 0))')+ echo "modules=$modules" >> "$GITHUB_OUTPUT"be-linter-cloverage:needs: setup-oss@@ -71,8 +71,8 @@ jobs:- uses: actions/checkout@v6- id: get-modulesrun: |- modules=$(ls -1d enterprise/backend/src/metabase_enterprise/*/ | xargs -n1 basename | tr '_' '-' | jq -R -s -c 'split("\n") | map(select(length > 0))')- echo "modules=$modules" >> $GITHUB_OUTPUT+ modules=$(for d in enterprise/backend/src/metabase_enterprise/*/; do basename "$d"; done | tr '_' '-' | jq -R -s -c 'split("\n") | map(select(length > 0))')+ echo "modules=$modules" >> "$GITHUB_OUTPUT"be-linter-cloverage-enterprise:needs: setup-eediff --git a/.github/workflows/block-master-source-branch-prs.yml b/.github/workflows/block-master-source-branch-prs.ymlindex b6809ade08d..6bfc03acec9 100644--- a/.github/workflows/block-master-source-branch-prs.yml+++ b/.github/workflows/block-master-source-branch-prs.yml@@ -10,5 +10,5 @@ jobs:- name: Block master branch PRsif: github.head_ref == 'master'run: |- echo "PRs from `master` branches are not allowed, please use a new branch name for your PR."+ echo "PRs from \`master\` branches are not allowed, please use a new branch name for your PR."exit 1diff --git a/.github/workflows/build-for-release.yml b/.github/workflows/build-for-release.ymlindex 6bc139f2c4b..3f69dd0eb97 100644--- a/.github/workflows/build-for-release.yml+++ b/.github/workflows/build-for-release.yml@@ -141,10 +141,13 @@ jobs:- name: Ensure that the specified commit exists in the ${{ steps.release_branch.outputs.result }} release branchrun: | # bashRELEASE_BRANCH=${{ steps.release_branch.outputs.result }}- git checkout $RELEASE_BRANCH- git branch --contains ${{ inputs.commit }} | grep -q $RELEASE_BRANCH \- && echo "Commit found in correct release branch" \- || (echo "Commit not found in correct release branch" && exit 1)+ git checkout "$RELEASE_BRANCH"+ if git branch --contains ${{ inputs.commit }} | grep -q "$RELEASE_BRANCH"; then+ echo "Commit found in correct release branch"+ else+ echo "Commit not found in correct release branch"+ exit 1+ figit checkout -get-build-requirements:@@ -216,7 +219,7 @@ jobs:version='${{ needs.check-version.outputs.oss }}'fi- echo "VERSION=$version" >> $GITHUB_ENV+ echo "VERSION=$version" >> "$GITHUB_ENV"- name: Setup Java ${{ needs.get-build-requirements.outputs.java_version }}uses: actions/[email protected]with:@@ -238,11 +241,11 @@ jobs:- name: Build Metabaseif: ${{ needs.get-build-requirements.outputs.build_process != 'legacy' }}- run: ./bin/build.sh :edition :${{ matrix.edition }} :version $VERSION+ run: ./bin/build.sh :edition :${{ matrix.edition }} :version "$VERSION"- name: Build Metabase (legacy)if: ${{ needs.get-build-requirements.outputs.build_process == 'legacy' }}- run: cd ./bin/build-mb && clojure -X build/build! :edition :${{ matrix.edition }} :version $VERSION+ run: cd ./bin/build-mb && clojure -X build/build! :edition :${{ matrix.edition }} :version "$VERSION"- name: Store commit's SHA-1 hashrun: echo ${{ inputs.commit }} > COMMIT-IDdiff --git a/.github/workflows/cache-generator.yml b/.github/workflows/cache-generator.ymlindex 396aa56f906..89bf78ba5ca 100644--- a/.github/workflows/cache-generator.yml+++ b/.github/workflows/cache-generator.yml@@ -135,7 +135,7 @@ jobs:run: |BUN_CACHE_DIR=$(bun pm cache)echo "Bun cache directory: $BUN_CACHE_DIR"- echo "dir=$BUN_CACHE_DIR" >> $GITHUB_OUTPUT+ echo "dir=$BUN_CACHE_DIR" >> "$GITHUB_OUTPUT"- name: Ensure that Cypress executable is readyrun: |diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.ymlindex 3ba1ab66823..72300630774 100644--- a/.github/workflows/codespell.yml+++ b/.github/workflows/codespell.yml@@ -27,7 +27,7 @@ jobs:- name: Get current dateid: date- run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT+ run: echo "date=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"- name: Run codespell checkid: codespell_checkdiff --git a/.github/workflows/containerize-jar.yml b/.github/workflows/containerize-jar.ymlindex 57ff45a72b9..1ff6e2fe2ed 100644--- a/.github/workflows/containerize-jar.yml+++ b/.github/workflows/containerize-jar.yml@@ -16,8 +16,8 @@ on:commit:type: stringrelease:- type: string- default: 'false'+ type: boolean+ default: falsebuild-args:type: stringworkflow_dispatch:@@ -40,11 +40,8 @@ on:type: stringrelease:description: Whether this is a release artifact (uses metabase-release- prefix)- type: choice- options:- - "false"- - "true"- default: "false"+ type: boolean+ default: falsejobs:containerize:@@ -88,8 +85,8 @@ jobs:- name: Login to Docker Hubuses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0with:- username: ${{ inputs.release == 'true' && secrets.DOCKERHUB_RELEASE_USERNAME || secrets.DOCKERHUB_USERNAME }}- password: ${{ inputs.release == 'true' && secrets.DOCKERHUB_RELEASE_TOKEN || secrets.DOCKERHUB_TOKEN }}+ username: ${{ inputs.release && secrets.DOCKERHUB_RELEASE_USERNAME || secrets.DOCKERHUB_USERNAME }}+ password: ${{ inputs.release && secrets.DOCKERHUB_RELEASE_TOKEN || secrets.DOCKERHUB_TOKEN }}- name: Set up QEMUif: contains(steps.platforms.outputs.result, 'arm')uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0@@ -126,8 +123,8 @@ jobs:- name: Login to Docker Hubuses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0with:- username: ${{ inputs.release == 'true' && secrets.DOCKERHUB_RELEASE_USERNAME || secrets.DOCKERHUB_USERNAME }}- password: ${{ inputs.release == 'true' && secrets.DOCKERHUB_RELEASE_TOKEN || secrets.DOCKERHUB_TOKEN }}+ username: ${{ inputs.release && secrets.DOCKERHUB_RELEASE_USERNAME || secrets.DOCKERHUB_USERNAME }}+ password: ${{ inputs.release && secrets.DOCKERHUB_RELEASE_TOKEN || secrets.DOCKERHUB_TOKEN }}- name: Pull the container imagerun: docker pull ${{ inputs.repo }}:${{ inputs.tag }}- name: Launch container@@ -146,8 +143,8 @@ jobs:- name: Login to Docker Hubuses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0with:- username: ${{ inputs.release == 'true' && secrets.DOCKERHUB_RELEASE_USERNAME || secrets.DOCKERHUB_USERNAME }}- password: ${{ inputs.release == 'true' && secrets.DOCKERHUB_RELEASE_TOKEN || secrets.DOCKERHUB_TOKEN }}+ username: ${{ inputs.release && secrets.DOCKERHUB_RELEASE_USERNAME || secrets.DOCKERHUB_USERNAME }}+ password: ${{ inputs.release && secrets.DOCKERHUB_RELEASE_TOKEN || secrets.DOCKERHUB_TOKEN }}- name: Pull the container imagerun: docker pull ${{ inputs.repo }}:${{ inputs.tag }}- name: Launch containerdiff --git a/.github/workflows/containerize-uberjar.yml b/.github/workflows/containerize-uberjar.ymlindex 79046d4505d..7df1166ee78 100644--- a/.github/workflows/containerize-uberjar.yml+++ b/.github/workflows/containerize-uberjar.yml@@ -3,6 +3,10 @@ name: Containerize Uberjaron:workflow_call:workflow_dispatch:+ inputs:+ commit:+ description: the full commit hash to containerize (defaults to the triggering commit)+ type: stringjobs:get-container-info:@@ -59,7 +63,7 @@ jobs:commit: ${{ github.event.inputs.commit || github.event.pull_request.head.sha || github.sha }}repo: ${{ fromJson(needs.get-container-info.outputs[matrix.edition]).repo }}tag: ${{ fromJson(needs.get-container-info.outputs[matrix.edition]).tag }}- release: "false"+ release: falsebuild-args: |GIT_COMMIT_SHA=${{ github.event.inputs.commit || github.event.pull_request.head.sha || github.sha }}diff --git a/.github/workflows/docs-generate-base.yml b/.github/workflows/docs-generate-base.ymlindex 407a19dfcac..33d4806f1ec 100644--- a/.github/workflows/docs-generate-base.yml+++ b/.github/workflows/docs-generate-base.yml@@ -79,10 +79,10 @@ jobs:id: check_changesrun: |if git diff --quiet docs/; then- echo "changes=false" >> $GITHUB_OUTPUT+ echo "changes=false" >> "$GITHUB_OUTPUT"echo "No changes detected in docs directory"else- echo "changes=true" >> $GITHUB_OUTPUT+ echo "changes=true" >> "$GITHUB_OUTPUT"echo "Changes detected in docs directory"fi@@ -109,7 +109,7 @@ jobs:git commit -m "Update generated docs (${{ inputs.target_branch }})" --no-verifygit push -u origin "$BRANCH_NAME"- echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT+ echo "branch_name=$BRANCH_NAME" >> "$GITHUB_OUTPUT"echo "Successfully created and pushed branch"- name: Create pull request@@ -155,7 +155,7 @@ jobs:breakelseecho "PR creation failed on attempt $i"- if [ $i -eq 3 ]; then+ if [ "$i" -eq 3 ]; thenecho "All attempts failed. Exiting with error."exit 1fi@@ -172,22 +172,24 @@ jobs:- name: Workflow summaryif: always()run: |- if [ "${{ steps.check_changes.outputs.changes }}" == "true" ]; then- if [ "${{ steps.commit_and_push.outcome }}" == "success" ]; then- if [ "${{ steps.create_pr.outcome }}" == "success" ]; then- echo "## ✅ Documentation Updated Successfully" >> $GITHUB_STEP_SUMMARY- echo "- Branch: \`${{ steps.commit_and_push.outputs.branch_name }}\`" >> $GITHUB_STEP_SUMMARY- echo "- PR created targeting **${{ inputs.target_branch }}**" >> $GITHUB_STEP_SUMMARY+ {+ if [ "${{ steps.check_changes.outputs.changes }}" == "true" ]; then+ if [ "${{ steps.commit_and_push.outcome }}" == "success" ]; then+ if [ "${{ steps.create_pr.outcome }}" == "success" ]; then+ echo "## ✅ Documentation Updated Successfully"+ echo "- Branch: \`${{ steps.commit_and_push.outputs.branch_name }}\`"+ echo "- PR created targeting **${{ inputs.target_branch }}**"+ else+ echo "## ⚠️ Branch Created but PR Failed"+ echo "- Branch: \`${{ steps.commit_and_push.outputs.branch_name }}\`"+ echo "- Manual PR creation required"+ fielse- echo "## ⚠️ Branch Created but PR Failed" >> $GITHUB_STEP_SUMMARY- echo "- Branch: \`${{ steps.commit_and_push.outputs.branch_name }}\`" >> $GITHUB_STEP_SUMMARY- echo "- Manual PR creation required" >> $GITHUB_STEP_SUMMARY+ echo "## ❌ Failed to Create Branch"+ echo "- Check workflow logs for details"fielse- echo "## ❌ Failed to Create Branch" >> $GITHUB_STEP_SUMMARY- echo "- Check workflow logs for details" >> $GITHUB_STEP_SUMMARY+ echo "## ℹ️ No Changes Detected"+ echo "- Documentation is up to date on **${{ inputs.target_branch }}**"fi- else- echo "## ℹ️ No Changes Detected" >> $GITHUB_STEP_SUMMARY- echo "- Documentation is up to date on **${{ inputs.target_branch }}**" >> $GITHUB_STEP_SUMMARY- fi+ } >> "$GITHUB_STEP_SUMMARY"diff --git a/.github/workflows/e2e-matrix-builder.yml b/.github/workflows/e2e-matrix-builder.ymlindex ad3854932d2..15f557ec6d5 100644--- a/.github/workflows/e2e-matrix-builder.yml+++ b/.github/workflows/e2e-matrix-builder.yml@@ -4,7 +4,7 @@ on:workflow_call:inputs:chunks:- required: true+ required: falsetype: numberdefault: 30specs:diff --git a/.github/workflows/e2e-stress-test-flake-fix.yml b/.github/workflows/e2e-stress-test-flake-fix.ymlindex 4f221fbe15d..50ee3ac8dfa 100644--- a/.github/workflows/e2e-stress-test-flake-fix.yml+++ b/.github/workflows/e2e-stress-test-flake-fix.yml@@ -98,9 +98,9 @@ jobs:run: |SPEC='${{ inputs.spec }}'if [[ "$SPEC" == e2e/test-component/scenarios/embedding-sdk/* ]]; then- echo "type=component" >> $GITHUB_OUTPUT+ echo "type=component" >> "$GITHUB_OUTPUT"else- echo "type=e2e" >> $GITHUB_OUTPUT+ echo "type=e2e" >> "$GITHUB_OUTPUT"fiworkflow-summary:@@ -110,20 +110,33 @@ jobs:timeout-minutes: 5steps:- name: Generate workflow summary+ env:+ BRANCH: ${{ github.ref_name }}+ SPEC: ${{ inputs.spec }}+ TEST_TYPE: ${{ needs.determine-test-type.outputs.type }}+ BURN_IN: ${{ inputs.burn_in }}+ GREP: ${{ inputs.grep }}+ QA_DB: ${{ inputs.qa_db }}+ ENABLE_NETWORK_THROTTLING: ${{ inputs.enable_network_throttling }}+ FAIL_FAST: ${{ inputs.fail_fast }}+ BUILD_JAR: ${{ inputs.build_jar }}+ SENDER: ${{ github.event.sender.login }}run: |- echo '**Inputs:**' >> $GITHUB_STEP_SUMMARY- echo '' >> $GITHUB_STEP_SUMMARY- echo '- `branch`: ${{ github.ref_name }}' >> $GITHUB_STEP_SUMMARY- echo '- `spec`: ${{ inputs.spec }}' >> $GITHUB_STEP_SUMMARY- echo '- `test_type` (inferred): ${{ needs.determine-test-type.outputs.type }}' >> $GITHUB_STEP_SUMMARY- echo '- `burn_in`: ${{ inputs.burn_in }}' >> $GITHUB_STEP_SUMMARY- echo '- `grep`: "${{ inputs.grep }}"' >> $GITHUB_STEP_SUMMARY- echo '- `qa_db`: "${{ inputs.qa_db }}"' >> $GITHUB_STEP_SUMMARY- echo '- `enable_network_throttling`: "${{ inputs.enable_network_throttling }}"' >> $GITHUB_STEP_SUMMARY- echo '- `fail_fast`: "${{ inputs.fail_fast }}"' >> $GITHUB_STEP_SUMMARY- echo '- `build_jar`: "${{ inputs.build_jar }}"' >> $GITHUB_STEP_SUMMARY- echo '' >> $GITHUB_STEP_SUMMARY- echo 'triggered by: @${{ github.event.sender.login }}' >> $GITHUB_STEP_SUMMARY+ {+ echo '**Inputs:**'+ echo ''+ echo "- \`branch\`: $BRANCH"+ echo "- \`spec\`: $SPEC"+ echo "- \`test_type\` (inferred): $TEST_TYPE"+ echo "- \`burn_in\`: $BURN_IN"+ echo "- \`grep\`: \"$GREP\""+ echo "- \`qa_db\`: \"$QA_DB\""+ echo "- \`enable_network_throttling\`: \"$ENABLE_NETWORK_THROTTLING\""+ echo "- \`fail_fast\`: \"$FAIL_FAST\""+ echo "- \`build_jar\`: \"$BUILD_JAR\""+ echo ''+ echo "triggered by: @$SENDER"+ } >> "$GITHUB_STEP_SUMMARY"stress-test-flake-fix:needs: [determine-test-type]diff --git a/.github/workflows/e2e-stress-test-flaky-pr.yml b/.github/workflows/e2e-stress-test-flaky-pr.ymlindex 7cbde534538..3818a4f1cd9 100644--- a/.github/workflows/e2e-stress-test-flaky-pr.yml+++ b/.github/workflows/e2e-stress-test-flaky-pr.yml@@ -63,14 +63,14 @@ jobs:fiecho "Changed e2e Cypress specs:"- echo "$FILES" | sed 's/^/ - /'+ echo "$FILES" | awk '{ print " - " $0 }'# Compact JSON array for the matrix, e.g. ["e2e/test/scenarios/a.cy.spec.js"].SPECS_JSON=$(echo "$FILES" | jq -R . | jq -cs .)echo "specs=${SPECS_JSON}" >> "$GITHUB_OUTPUT"echo "should_run=true" >> "$GITHUB_OUTPUT"- echo "Note: you can use the burn-50 or burn-100 labels to increase the burn-in count from the default of 20." >> $GITHUB_STEP_SUMMARY+ echo "Note: you can use the burn-50 or burn-100 labels to increase the burn-in count from the default of 20." >> "$GITHUB_STEP_SUMMARY"stress-test:name: Stress testdiff --git a/.github/workflows/emotion-stats-update.yml b/.github/workflows/emotion-stats-update.ymlindex 625b3232ea5..4cfa0fdda39 100644--- a/.github/workflows/emotion-stats-update.yml+++ b/.github/workflows/emotion-stats-update.yml@@ -40,9 +40,9 @@ jobs:| wc -l || true)- echo "$(($oss+$ee)) files importing @emotion/*"+ echo "$((oss + ee)) files importing @emotion/*"- echo "EMOTION_FILES=$(($oss+$ee))" >> $GITHUB_OUTPUT+ echo "EMOTION_FILES=$((oss + ee))" >> "$GITHUB_OUTPUT"- name: Upload count to Statsuses: actions/github-script@v9env:diff --git a/.github/workflows/escalation-slack-notification.yml b/.github/workflows/escalation-slack-notification.ymlindex 802db098710..f92400806ff 100644--- a/.github/workflows/escalation-slack-notification.yml+++ b/.github/workflows/escalation-slack-notification.yml@@ -13,9 +13,11 @@ jobs:- name: Format issue title (escape quotes)uses: actions/github-script@v9id: vars+ env:+ ISSUE_TITLE: ${{ github.event.issue.title }}with:script: |- core.setOutput('issue_title', ${{ toJson(github.event.issue.title) }}.replaceAll(/"/g, '\\"'));+ core.setOutput('issue_title', process.env.ISSUE_TITLE.replaceAll(/"/g, '\\"'));- name: Send escalated issue ${{ github.event.issue.number }} to Slackid: slackuses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3diff --git a/.github/workflows/frontend-unit-test-stress-test-flake-fix.yml b/.github/workflows/frontend-unit-test-stress-test-flake-fix.ymlindex a2409ee3fd5..6c3da1a5fdb 100644--- a/.github/workflows/frontend-unit-test-stress-test-flake-fix.yml+++ b/.github/workflows/frontend-unit-test-stress-test-flake-fix.yml@@ -23,15 +23,23 @@ jobs:timeout-minutes: 5steps:- name: Generate workflow summary+ env:+ BRANCH: ${{ github.ref_name }}+ SPEC: ${{ inputs.spec }}+ BURN_IN: ${{ inputs.burn_in }}+ GREP: ${{ inputs.grep }}+ SENDER: ${{ github.event.sender.login }}run: |- echo '**Inputs:**' >> $GITHUB_STEP_SUMMARY- echo '' >> $GITHUB_STEP_SUMMARY- echo '- `branch`: ${{ github.ref_name }}' >> $GITHUB_STEP_SUMMARY- echo '- `spec`: ${{ inputs.spec }}' >> $GITHUB_STEP_SUMMARY- echo '- `burn_in`: ${{ inputs.burn_in }}' >> $GITHUB_STEP_SUMMARY- echo '- `grep`: "${{ inputs.grep }}"' >> $GITHUB_STEP_SUMMARY- echo '' >> $GITHUB_STEP_SUMMARY- echo 'triggered by: @${{ github.event.sender.login }}' >> $GITHUB_STEP_SUMMARY+ {+ echo '**Inputs:**'+ echo ''+ echo "- \`branch\`: $BRANCH"+ echo "- \`spec\`: $SPEC"+ echo "- \`burn_in\`: $BURN_IN"+ echo "- \`grep\`: \"$GREP\""+ echo ''+ echo "triggered by: @$SENDER"+ } >> "$GITHUB_STEP_SUMMARY"frontend-unit-test-stress-test-flake-fix:runs-on: ${{ vars.DEFAULT_RUNNER_KEY }}@@ -48,10 +56,9 @@ jobs:- name: Stress-test ${{ github.event.inputs.spec }} ${{ github.event.inputs.burn_in }} timesrun: |for ((i=1; i<=BURN_IN; i++)); do- bun run jest --runInBand --ci --silent --no-cache \+ if ! bun run jest --runInBand --ci --silent --no-cache \--testPathPatterns "${SPEC}" \- --testNamePattern "${GREP}"- if [[ "$?" != 0 ]]; then+ --testNamePattern "${GREP}"; thenecho "Failed after $i attempts" && break;fidonediff --git a/.github/workflows/js-stats-update.yml b/.github/workflows/js-stats-update.ymlindex 1e59db3d5d4..22143f5c5ed 100644--- a/.github/workflows/js-stats-update.yml+++ b/.github/workflows/js-stats-update.yml@@ -18,9 +18,9 @@ jobs:oss=$(find ./frontend/src/metabase -type f -name "*.js" -o -name "*.jsx" | wc -l)ee=$(find ./enterprise/frontend/src/metabase-enterprise -type f -name "*.js" -o -name "*.jsx" | wc -l)- echo $(($oss+$ee)) javascript files+ echo $((oss + ee)) javascript files- echo "JS_FILES=$(($oss+$ee))" >> $GITHUB_OUTPUT+ echo "JS_FILES=$((oss + ee))" >> "$GITHUB_OUTPUT"- name: Upload count to Statsuses: actions/github-script@v9env:diff --git a/.github/workflows/loki-stress-test-flake-fix.yml b/.github/workflows/loki-stress-test-flake-fix.ymlindex dde2227a571..025c0c49b8d 100644--- a/.github/workflows/loki-stress-test-flake-fix.yml+++ b/.github/workflows/loki-stress-test-flake-fix.yml@@ -53,8 +53,8 @@ jobs:if ! validate_paths "$FILES"; thenexit 1fi- echo "story_files=$FILES" >> $GITHUB_OUTPUT- echo "should_run=true" >> $GITHUB_OUTPUT+ echo "story_files=$FILES" >> "$GITHUB_OUTPUT"+ echo "should_run=true" >> "$GITHUB_OUTPUT"exit 0fi@@ -70,7 +70,7 @@ jobs:if [[ -z "$FILES" ]]; thenecho "No changed story files found"- echo "should_run=false" >> $GITHUB_OUTPUT+ echo "should_run=false" >> "$GITHUB_OUTPUT"exit 0fi@@ -79,8 +79,8 @@ jobs:fiecho "Changed story files: $FILES"- echo "story_files=$FILES" >> $GITHUB_OUTPUT- echo "should_run=true" >> $GITHUB_OUTPUT+ echo "story_files=$FILES" >> "$GITHUB_OUTPUT"+ echo "should_run=true" >> "$GITHUB_OUTPUT"workflow-summary:name: Summary@@ -99,22 +99,24 @@ jobs:PR_ACTOR: ${{ github.event.pull_request.user.login }}ACTOR: ${{ github.actor }}run: |- echo '## Loki Stress Test' >> $GITHUB_STEP_SUMMARY- echo '' >> $GITHUB_STEP_SUMMARY- echo "**Branch:** \`${BRANCH_NAME}\`" >> $GITHUB_STEP_SUMMARY- echo '' >> $GITHUB_STEP_SUMMARY- echo '**Story files:**' >> $GITHUB_STEP_SUMMARY- echo "${STORY_FILES}" | tr ',' '\n' | while read -r file; do- echo "- \`$file\`" >> $GITHUB_STEP_SUMMARY- done- echo '' >> $GITHUB_STEP_SUMMARY- echo "**Burn-in:** ${BURN_IN} runs" >> $GITHUB_STEP_SUMMARY- echo '' >> $GITHUB_STEP_SUMMARY- if [[ "${EVENT_NAME}" == "pull_request" ]]; then- echo "Triggered by PR #${PR_NUMBER} from @${PR_ACTOR}" >> $GITHUB_STEP_SUMMARY- else- echo "Triggered manually by @${ACTOR}" >> $GITHUB_STEP_SUMMARY- fi+ {+ echo '## Loki Stress Test'+ echo ''+ echo "**Branch:** \`${BRANCH_NAME}\`"+ echo ''+ echo '**Story files:**'+ echo "${STORY_FILES}" | tr ',' '\n' | while read -r file; do+ echo "- \`$file\`"+ done+ echo ''+ echo "**Burn-in:** ${BURN_IN} runs"+ echo ''+ if [[ "${EVENT_NAME}" == "pull_request" ]]; then+ echo "Triggered by PR #${PR_NUMBER} from @${PR_ACTOR}"+ else+ echo "Triggered manually by @${ACTOR}"+ fi+ } >> "$GITHUB_STEP_SUMMARY"stress-test-loki:needs: detect-changed-stories@@ -175,8 +177,8 @@ jobs:echo "❌ Run $i FAILED"FAILED=$((FAILED + 1))- mkdir -p .loki/failures/run-$i- cp -r .loki/difference/* .loki/failures/run-$i/ 2>/dev/null || true+ mkdir -p ".loki/failures/run-$i"+ cp -r .loki/difference/* ".loki/failures/run-$i/" 2>/dev/null || truefiecho ""donediff --git a/.github/workflows/loki-update.yml b/.github/workflows/loki-update.ymlindex 800a09bc1e3..4323d746b20 100644--- a/.github/workflows/loki-update.yml+++ b/.github/workflows/loki-update.yml@@ -31,9 +31,9 @@ jobs:id: check-changesrun: |if [[ -n "$(git status --porcelain .loki/reference/)" ]]; then- echo "has_changes=true" >> $GITHUB_OUTPUT+ echo "has_changes=true" >> "$GITHUB_OUTPUT"else- echo "has_changes=false" >> $GITHUB_OUTPUT+ echo "has_changes=false" >> "$GITHUB_OUTPUT"fi- name: Commit and Push Changesdiff --git a/.github/workflows/main.yml b/.github/workflows/main.ymlindex 2b9f25b76ca..1b653028d56 100644--- a/.github/workflows/main.yml+++ b/.github/workflows/main.yml@@ -14,9 +14,11 @@ jobs:- name: Setting titleuses: actions/github-script@v9id: vars+ env:+ ISSUE_TITLE: ${{ github.event.issue.title }}with:script: |- core.setOutput('issue_title', ${{ toJson(github.event.issue.title) }}.replaceAll(/"/g, '\\"'));+ core.setOutput('issue_title', process.env.ISSUE_TITLE.replaceAll(/"/g, '\\"'));- name: Send the issue ${{ github.event.issue.number }} to Slackid: slackuses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3diff --git a/.github/workflows/mbql-library-changelog.yml b/.github/workflows/mbql-library-changelog.ymlindex dffc0f4d1d4..a051364335b 100644--- a/.github/workflows/mbql-library-changelog.yml+++ b/.github/workflows/mbql-library-changelog.yml@@ -27,6 +27,6 @@ jobs:elseecho "metabase.lib.js namespace changed but docs/developers/guide/mbql-library-changelog.md did not"echo "Update the changelog with the changes made to the library's API."- echo "If the edits did not change the API, add the `.metabase-lib/no-change` label."+ echo "If the edits did not change the API, add the \`.metabase-lib/no-change\` label."exit 1fidiff --git a/.github/workflows/openapi-check.yml b/.github/workflows/openapi-check.ymlindex 1cae161d06f..1b8a77e33ec 100644--- a/.github/workflows/openapi-check.yml+++ b/.github/workflows/openapi-check.yml@@ -31,7 +31,7 @@ jobs:- name: Get latest base branch commitrun: |git fetch origin ${{ github.event.pull_request.base.ref }}- echo "LATEST_BASE_SHA=$(git rev-parse origin/${{ github.event.pull_request.base.ref }})" >> $GITHUB_ENV+ echo "LATEST_BASE_SHA=$(git rev-parse origin/${{ github.event.pull_request.base.ref }})" >> "$GITHUB_ENV"- name: Check OpenAPI specs are up to dateenv:AUTO_COMMIT: "true"diff --git a/.github/workflows/optimize-images.yml b/.github/workflows/optimize-images.ymlindex cf6ec6a6b71..eb1baf581bc 100644--- a/.github/workflows/optimize-images.yml+++ b/.github/workflows/optimize-images.yml@@ -63,10 +63,12 @@ jobs:total_saved=$((total_before - total_after))# Output results for use in commit message- echo "files_optimized=${total_files}" >> "$GITHUB_OUTPUT"- echo "bytes_saved=${total_saved}" >> "$GITHUB_OUTPUT"- echo "total_before=${total_before}" >> "$GITHUB_OUTPUT"- echo "total_after=${total_after}" >> "$GITHUB_OUTPUT"+ {+ echo "files_optimized=${total_files}"+ echo "bytes_saved=${total_saved}"+ echo "total_before=${total_before}"+ echo "total_after=${total_after}"+ } >> "$GITHUB_OUTPUT"echo "Optimization complete"echo "Files processed: ${total_files}"diff --git a/.github/workflows/perf-test.yml b/.github/workflows/perf-test.ymlindex 17cceccd9b2..6865643f401 100644--- a/.github/workflows/perf-test.yml+++ b/.github/workflows/perf-test.yml@@ -70,7 +70,7 @@ jobs:export OIDC_URL_WITH_AUDIENCE="$ACTIONS_ID_TOKEN_REQUEST_URL&audience=${PR_ENV_K8S_AUDIENCE}"IDTOKEN=$(curl -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" -H "Accept: application/json; api-version=2.0" "$OIDC_URL_WITH_AUDIENCE" | jq -r .value)echo "::add-mask::${IDTOKEN}"- echo "idToken=${IDTOKEN}" >>$GITHUB_OUTPUT+ echo "idToken=${IDTOKEN}" >>"$GITHUB_OUTPUT"env:PR_ENV_K8S_AUDIENCE: ${{ secrets.PR_ENV_K8S_AUDIENCE }}- name: Setup Kube Context@@ -108,7 +108,7 @@ jobs:env:SHA: ${{ github.event.pull_request.head.sha || github.sha }}id: split- run: echo "fragment=${SHA:5}" >> $GITHUB_OUTPUT+ run: echo "fragment=${SHA:5}" >> "$GITHUB_OUTPUT"- name: Render Deployment YAMLuses: nowactions/envsubst@c4b8e3977354d294659a7ec164279ce8fba5c2e1 # v1.0.1with:diff --git a/.github/workflows/pr-env-destroy-manual.yml b/.github/workflows/pr-env-destroy-manual.ymlindex a4be1c6c4bd..317bd959d4f 100644--- a/.github/workflows/pr-env-destroy-manual.yml+++ b/.github/workflows/pr-env-destroy-manual.yml@@ -18,7 +18,10 @@ jobs:environment: pr-env-adminsteps:- name: Approved- run: echo "Destroying PR environment for PR #${{ inputs.pr_number }}"+ env:+ PR_NUMBER: ${{ inputs.pr_number }}+ run: |+ echo "Destroying PR environment for PR #${PR_NUMBER}"destroy:needs: approvediff --git a/.github/workflows/pr-env-destroy.yml b/.github/workflows/pr-env-destroy.ymlindex e3175aab155..106ff451186 100644--- a/.github/workflows/pr-env-destroy.yml+++ b/.github/workflows/pr-env-destroy.yml@@ -42,7 +42,7 @@ jobs:export OIDC_URL_WITH_AUDIENCE="$ACTIONS_ID_TOKEN_REQUEST_URL&audience=${PR_ENV_K8S_AUDIENCE}"IDTOKEN=$(curl -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" -H "Accept: application/json; api-version=2.0" "$OIDC_URL_WITH_AUDIENCE" | jq -r .value)echo "::add-mask::${IDTOKEN}"- echo "idToken=${IDTOKEN}" >>$GITHUB_OUTPUT+ echo "idToken=${IDTOKEN}" >>"$GITHUB_OUTPUT"env:PR_ENV_K8S_AUDIENCE: ${{ secrets.PR_ENV_K8S_AUDIENCE }}- name: Setup Kube Contextdiff --git a/.github/workflows/pr-env.yml b/.github/workflows/pr-env.ymlindex 8fe425f7f8b..dedb42afd85 100644--- a/.github/workflows/pr-env.yml+++ b/.github/workflows/pr-env.yml@@ -249,7 +249,7 @@ jobs:export OIDC_URL_WITH_AUDIENCE="$ACTIONS_ID_TOKEN_REQUEST_URL&audience=${PR_ENV_K8S_AUDIENCE}"IDTOKEN=$(curl -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" -H "Accept: application/json; api-version=2.0" "$OIDC_URL_WITH_AUDIENCE" | jq -r .value)echo "::add-mask::${IDTOKEN}"- echo "idToken=${IDTOKEN}" >>$GITHUB_OUTPUT+ echo "idToken=${IDTOKEN}" >>"$GITHUB_OUTPUT"env:PR_ENV_K8S_AUDIENCE: ${{ secrets.PR_ENV_K8S_AUDIENCE }}- name: Setup Kube Contextdiff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.ymlindex 6ba6de66f88..9fe8a160b84 100644--- a/.github/workflows/pre-release.yml+++ b/.github/workflows/pre-release.yml@@ -95,14 +95,14 @@ jobs:id: version-propertiesrun: |cat version.properties- echo "commit=$(cat ./COMMIT-ID)" >> $GITHUB_OUTPUT+ echo "commit=$(cat ./COMMIT-ID)" >> "$GITHUB_OUTPUT"version=$(grep -o '^tag=.*' version.properties | cut -d'=' -f2)if [[ "${{ matrix.edition }}" == "ee" ]]; then- echo "ee_version=$version" >> $GITHUB_OUTPUT+ echo "ee_version=$version" >> "$GITHUB_OUTPUT"else- echo "oss_version=$version" >> $GITHUB_OUTPUT+ echo "oss_version=$version" >> "$GITHUB_OUTPUT"fishell: bash- name: Upload Metabase ${{ matrix.edition }} JAR as artifact@@ -223,7 +223,7 @@ jobs:CYPRESS_BROWSER: ${{ steps.cypress-prep.outputs.chrome-path }}run: |node e2e/runner/run_cypress_ci.js e2e \- $CYPRESS_GREP_FLAG grepTags="@prerelease+-@EE" \+ "$CYPRESS_GREP_FLAG" grepTags="@prerelease+-@EE" \--spec './e2e/test/scenarios/**/*.cy.spec.(js|ts)'- name: Run a few important EE Cypress tests as sanity check@@ -232,7 +232,7 @@ jobs:CYPRESS_BROWSER: ${{ steps.cypress-prep.outputs.chrome-path }}run: |node e2e/runner/run_cypress_ci.js e2e \- $CYPRESS_GREP_FLAG grepTags="@prerelease+-@OSS" \+ "$CYPRESS_GREP_FLAG" grepTags="@prerelease+-@OSS" \--spec './e2e/test/scenarios/**/*.cy.spec.(js|ts)'- name: Upload Cypress Artifacts upon failure@@ -254,7 +254,7 @@ jobs:commit: ${{ inputs.commit }}repo: ${{ vars.DOCKERHUB_OWNER }}/${{ vars.DOCKERHUB_STAGING_REPO }}tag: ${{ needs.release-artifact.outputs.oss_version }}-${{ inputs.commit }}- release: "true"+ release: truecontainerize-ee:needs: release-artifact@@ -265,7 +265,7 @@ jobs:commit: ${{ inputs.commit }}repo: ${{ vars.DOCKERHUB_OWNER }}/${{ vars.DOCKERHUB_STAGING_REPO }}tag: ${{ needs.release-artifact.outputs.ee_version }}-${{ inputs.commit }}- release: "true"+ release: truetests-complete-message:if: always()diff --git a/.github/workflows/presto-kerberos-integration-test.yml b/.github/workflows/presto-kerberos-integration-test.ymlindex ab7dce0ce70..6bc8eaae482 100644--- a/.github/workflows/presto-kerberos-integration-test.yml+++ b/.github/workflows/presto-kerberos-integration-test.yml@@ -79,7 +79,7 @@ jobs:- name: ls mbarun: ls -latr mba-src- name: Symlink mba- run: cd mba-src && sudo ln -s $(pwd)/src/main.clj /usr/local/bin/mba && chmod +x /usr/local/bin/mba && cd ..+ run: cd mba-src && sudo ln -s "$(pwd)/src/main.clj" /usr/local/bin/mba && chmod +x /usr/local/bin/mba && cd ..- name: Ensure mbarun: which mbadiff --git a/.github/workflows/release-log.yml b/.github/workflows/release-log.ymlindex 0fccdd1f73e..f467651270e 100644--- a/.github/workflows/release-log.yml+++ b/.github/workflows/release-log.yml@@ -71,12 +71,12 @@ jobs:- name: generate release Logenv:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- run: cd release && tsx ./src/release-log-run.ts $VERSION > v$VERSION.html+ run: cd release && tsx ./src/release-log-run.ts "$VERSION" > "v$VERSION.html"- name: upload release log to the webrun: |aws s3 cp \- release/v$VERSION.html \- s3://${{ vars.AWS_S3_STATIC_BUCKET }}/release-log/v$VERSION.html+ "release/v$VERSION.html" \+ "s3://${{ vars.AWS_S3_STATIC_BUCKET }}/release-log/v$VERSION.html"- name: Create cloudfront invalidationrun: |diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.ymlindex 21c9a5ea771..12f786acc8e 100644--- a/.github/workflows/release-tag.yml+++ b/.github/workflows/release-tag.yml@@ -238,12 +238,12 @@ jobs:run: | # shif [[ "${{ matrix.edition }}" == "ee" ]]; thenecho "Metabase EE: image is going to be pushed to ${{ github.repository_owner }}/metabase-enterprise"- echo "DOCKERHUB_REPO=${{ github.repository_owner }}/metabase-enterprise" >> $GITHUB_ENV- echo "DOCKERHUB_VERSION=${{ needs.check-version.outputs.ee }}" >> $GITHUB_ENV+ echo "DOCKERHUB_REPO=${{ github.repository_owner }}/metabase-enterprise" >> "$GITHUB_ENV"+ echo "DOCKERHUB_VERSION=${{ needs.check-version.outputs.ee }}" >> "$GITHUB_ENV"elseecho "Metabase OSS: image is going to be pushed to ${{ github.repository_owner }}/metabase"- echo "DOCKERHUB_REPO=${{ github.repository_owner }}/metabase" >> $GITHUB_ENV- echo "DOCKERHUB_VERSION=${{ needs.check-version.outputs.oss }}" >> $GITHUB_ENV+ echo "DOCKERHUB_REPO=${{ github.repository_owner }}/metabase" >> "$GITHUB_ENV"+ echo "DOCKERHUB_VERSION=${{ needs.check-version.outputs.oss }}" >> "$GITHUB_ENV"fi- name: Login to Docker Hub@@ -255,8 +255,8 @@ jobs:- name: Tag the docker imagerun: | # shdocker buildx imagetools create --tag \- $DOCKERHUB_REPO\:$TAG_NAME \- $DOCKERHUB_REPO\:$DOCKERHUB_VERSION+ "$DOCKERHUB_REPO:$TAG_NAME" \+ "$DOCKERHUB_REPO:$DOCKERHUB_VERSION"push-git-tags:permissions:diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex c0c0f73b9f2..5a25e25d9e4 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -281,7 +281,7 @@ jobs:commit: ${{ inputs.commit }}repo: ${{ vars.DOCKERHUB_OWNER }}/${{ vars.DOCKERHUB_REPO }}tag: ${{ needs.check-version.outputs.oss }}- release: ${{ 'true' }}+ release: truecontainerize-ee:needs: check-version@@ -292,7 +292,7 @@ jobs:commit: ${{ inputs.commit }}repo: ${{ vars.DOCKERHUB_OWNER }}/${{ vars.DOCKERHUB_REPO }}-enterprisetag: ${{ needs.check-version.outputs.ee }}- release: ${{ 'true' }}+ release: truepush-tags:needs: [verify-s3-download, containerize-oss, containerize-ee, check-version]diff --git a/.github/workflows/repro-bot.yml b/.github/workflows/repro-bot.ymlindex ec03d49f75f..eaa145011ed 100644--- a/.github/workflows/repro-bot.yml+++ b/.github/workflows/repro-bot.yml@@ -37,7 +37,7 @@ jobs:elseISSUE_NUMBER="${{ github.event.issue.number }}"fi- echo "number=$ISSUE_NUMBER" >> $GITHUB_OUTPUT+ echo "number=$ISSUE_NUMBER" >> "$GITHUB_OUTPUT"echo "Issue: https://github.com/${{ github.repository }}/issues/$ISSUE_NUMBER"env:@@ -58,7 +58,7 @@ jobs:run: git clone --bare "https://github.com/${{ github.repository }}.git" repro-bot/git/metabase- name: Capture Node.js path for MCP subprocesses- run: echo "NODE_BIN_DIR=$(dirname $(which node))" >> $GITHUB_ENV+ run: echo "NODE_BIN_DIR=$(dirname "$(which node)")" >> "$GITHUB_ENV"- name: Pre-install MCP server dependenciesrun: uv sync --directory repro-bot/mcp@@ -90,7 +90,7 @@ jobs:--main-opts '["-m" "clojure-mcp-light.nrepl-eval"]'# Add to PATH for the rest of the workflow- echo "$HOME/.bbin/bin" >> $GITHUB_PATH+ echo "$HOME/.bbin/bin" >> "$GITHUB_PATH"# Verifyclj-nrepl-eval --help | head -3diff --git a/.github/workflows/resolve-backport-conflicts.yml b/.github/workflows/resolve-backport-conflicts.ymlindex fae5adfce62..16be2ea9c6a 100644--- a/.github/workflows/resolve-backport-conflicts.yml+++ b/.github/workflows/resolve-backport-conflicts.yml@@ -63,9 +63,9 @@ jobs:id: pkgrun: |if [ -f "bun.lock" ] || [ -f "bun.lockb" ]; then- echo "mgr=bun" >> $GITHUB_OUTPUT+ echo "mgr=bun" >> "$GITHUB_OUTPUT"else- echo "mgr=yarn" >> $GITHUB_OUTPUT+ echo "mgr=yarn" >> "$GITHUB_OUTPUT"fi- name: Validate backport PR@@ -92,13 +92,15 @@ jobs:# Check if we're in a cherry-pick state with conflictsCONFLICTED=$(git diff --name-only --diff-filter=U || true)if [ -n "$CONFLICTED" ]; then- echo "has_conflicts=true" >> $GITHUB_OUTPUT- echo "conflicted_files<<EOF" >> $GITHUB_OUTPUT- echo "$CONFLICTED" >> $GITHUB_OUTPUT- echo "EOF" >> $GITHUB_OUTPUT+ {+ echo "has_conflicts=true"+ echo "conflicted_files<<EOF"+ echo "$CONFLICTED"+ echo "EOF"+ } >> "$GITHUB_OUTPUT"echo "::notice::Found conflicts in: $CONFLICTED"else- echo "has_conflicts=false" >> $GITHUB_OUTPUT+ echo "has_conflicts=false" >> "$GITHUB_OUTPUT"echo "::notice::Cherry-pick applied cleanly, no conflicts to resolve"fi@@ -208,23 +210,25 @@ jobs:if [ -f "${{ steps.claude.outputs.execution_file }}" ]; thenSUBTYPE=$(jq -r '.[] | select(.type == "result") | .subtype' "${{ steps.claude.outputs.execution_file }}" | tail -1)if [ "$SUBTYPE" = "error_max_turns" ]; then- echo "max_turns_exceeded=true" >> $GITHUB_OUTPUT+ echo "max_turns_exceeded=true" >> "$GITHUB_OUTPUT"else- echo "max_turns_exceeded=false" >> $GITHUB_OUTPUT+ echo "max_turns_exceeded=false" >> "$GITHUB_OUTPUT"fielse- echo "max_turns_exceeded=false" >> $GITHUB_OUTPUT+ echo "max_turns_exceeded=false" >> "$GITHUB_OUTPUT"fi- name: Get commit detailsif: always() && steps.claude.outcome == 'success' && steps.check-failure.outputs.max_turns_exceeded != 'true'id: commit-inforun: |- echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUTFILES=$(git diff --name-only HEAD~1)- echo "changed_files<<EOF" >> $GITHUB_OUTPUT- echo "$FILES" >> $GITHUB_OUTPUT- echo "EOF" >> $GITHUB_OUTPUT+ {+ echo "sha=$(git rev-parse HEAD)"+ echo "changed_files<<EOF"+ echo "$FILES"+ echo "EOF"+ } >> "$GITHUB_OUTPUT"- name: Comment on PR (success)if: always() && steps.claude.outcome == 'success' && steps.check-failure.outputs.max_turns_exceeded != 'true'diff --git a/.github/workflows/security-slack-notification.yml b/.github/workflows/security-slack-notification.ymlindex 25332cf5323..9abcfe8e17b 100644--- a/.github/workflows/security-slack-notification.yml+++ b/.github/workflows/security-slack-notification.yml@@ -14,9 +14,11 @@ jobs:- name: Setting titleuses: actions/github-script@v9id: vars+ env:+ ISSUE_TITLE: ${{ github.event.issue.title }}with:script: |- core.setOutput('issue_title', ${{ toJson(github.event.issue.title) }}.replaceAll(/"/g, '\\"'));+ core.setOutput('issue_title', process.env.ISSUE_TITLE.replaceAll(/"/g, '\\"'));- name: Send the issue ${{ github.event.issue.number }} to Slackid: slackuses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3diff --git a/.github/workflows/sync-fork.yml b/.github/workflows/sync-fork.ymlindex f085d73303d..4412e79bdf7 100644--- a/.github/workflows/sync-fork.yml+++ b/.github/workflows/sync-fork.yml@@ -24,18 +24,25 @@ jobs:timeout-minutes: 5steps:- name: Generate workflow summary+ env:+ RELEASE_BRANCH_COUNT: ${{ inputs.release_branch_count || 5 }}+ FORCE: ${{ inputs.force || false }}+ EVENT_NAME: ${{ github.event_name }}+ SENDER: ${{ github.event.sender.login }}run: |- echo '**Inputs:**' >> $GITHUB_STEP_SUMMARY- echo '' >> $GITHUB_STEP_SUMMARY- echo '- `release_branch_count`: ${{ inputs.release_branch_count || 5 }}' >> $GITHUB_STEP_SUMMARY- echo '- `force`: ${{ inputs.force || false }}' >> $GITHUB_STEP_SUMMARY- echo '- `trigger`: ${{ github.event_name }}' >> $GITHUB_STEP_SUMMARY- echo '' >> $GITHUB_STEP_SUMMARY- if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then- echo 'triggered by: @${{ github.event.sender.login }}' >> $GITHUB_STEP_SUMMARY- else- echo 'triggered by: schedule' >> $GITHUB_STEP_SUMMARY- fi+ {+ echo '**Inputs:**'+ echo ''+ echo "- \`release_branch_count\`: $RELEASE_BRANCH_COUNT"+ echo "- \`force\`: $FORCE"+ echo "- \`trigger\`: $EVENT_NAME"+ echo ''+ if [ "$EVENT_NAME" = "workflow_dispatch" ]; then+ echo "triggered by: @$SENDER"+ else+ echo 'triggered by: schedule'+ fi+ } >> "$GITHUB_STEP_SUMMARY"sync-master:# ONLY run on internal metabase org forks — NEVER on the public repo or external forks@@ -89,9 +96,9 @@ jobs:REPO: ${{ github.repository }}run: |if [ "${{ steps.sync.outcome }}" = "success" ]; then- echo "| [\`master\`](https://github.com/${REPO}/tree/master) | ✅ ${{ steps.sync.outputs.detail }} |" >> $GITHUB_STEP_SUMMARY+ echo "| [\`master\`](https://github.com/${REPO}/tree/master) | ✅ ${{ steps.sync.outputs.detail }} |" >> "$GITHUB_STEP_SUMMARY"else- echo "| [\`master\`](https://github.com/${REPO}/tree/master) | ❌ failed |" >> $GITHUB_STEP_SUMMARY+ echo "| [\`master\`](https://github.com/${REPO}/tree/master) | ❌ failed |" >> "$GITHUB_STEP_SUMMARY"filist-release-branches:@@ -190,7 +197,7 @@ jobs:run: |branch="${{ matrix.branch }}"if [ "${{ steps.sync.outcome }}" = "success" ]; then- echo "| [\`${branch}\`](https://github.com/${REPO}/tree/${branch}) | ✅ ${{ steps.sync.outputs.detail }} |" >> $GITHUB_STEP_SUMMARY+ echo "| [\`${branch}\`](https://github.com/${REPO}/tree/${branch}) | ✅ ${{ steps.sync.outputs.detail }} |" >> "$GITHUB_STEP_SUMMARY"else- echo "| [\`${branch}\`](https://github.com/${REPO}/tree/${branch}) | ❌ failed |" >> $GITHUB_STEP_SUMMARY+ echo "| [\`${branch}\`](https://github.com/${REPO}/tree/${branch}) | ❌ failed |" >> "$GITHUB_STEP_SUMMARY"fidiff --git a/.github/workflows/translation-update.yml b/.github/workflows/translation-update.ymlindex f68ed292dde..9228832e390 100644--- a/.github/workflows/translation-update.yml+++ b/.github/workflows/translation-update.yml@@ -59,7 +59,7 @@ jobs:run: | # shgit config user.name github-actionsgit config user.email [email protected]- git checkout -b $BRANCH_NAME+ git checkout -b "$BRANCH_NAME"DATE=$(date +'%Y-%m-%d')@@ -72,7 +72,7 @@ jobs:git add locales/git commit -a -m "Update translations $Date" --allow-empty --no-verify- git push -u origin $BRANCH_NAME+ git push -u origin "$BRANCH_NAME"- name: Upload i18n violations reportid: upload-violations@@ -105,7 +105,7 @@ jobs:URL=$(gh pr create \--base master \- --head $BRANCH_NAME \+ --head "$BRANCH_NAME" \--title "Update translations $DATE" \--body "Synchronize translations with Crowdin" \--label "no-backport" \@@ -113,7 +113,7 @@ jobs:PR_NUMBER=${URL##*/}- echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT+ echo "pr_number=$PR_NUMBER" >> "$GITHUB_OUTPUT"- name: Comment violations summary on PRif: ${{ steps.create_pr.outputs.pr_number && hashFiles('target/i18n-violations.csv') != '' }}diff --git a/.github/workflows/uberjar.yml b/.github/workflows/uberjar.ymlindex 6e6ced01513..f486f3ff1c6 100644--- a/.github/workflows/uberjar.yml+++ b/.github/workflows/uberjar.yml@@ -78,7 +78,7 @@ jobs:echo "Skipping build: artifacts exist for this commit hash"fi- echo "should_build=$SHOULD_BUILD" >> $GITHUB_OUTPUT+ echo "should_build=$SHOULD_BUILD" >> "$GITHUB_OUTPUT"# if this is on a release branch, we need to check the build requirementsget-build-requirements:diff --git a/.github/workflows/update-e2e-timings.yml b/.github/workflows/update-e2e-timings.ymlindex 486d6b1bffa..f8ae3000bff 100644--- a/.github/workflows/update-e2e-timings.yml+++ b/.github/workflows/update-e2e-timings.yml@@ -61,7 +61,7 @@ jobs:git config user.name "github-actions[bot]"git config user.email "41898282+github-actions[bot]@users.noreply.github.com"BRANCH_NAME="update-e2e-timings-$(date +%Y%m%d-%H%M%S)"- echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV+ echo "BRANCH_NAME=$BRANCH_NAME" >> "$GITHUB_ENV"echo "Branch name will be: $BRANCH_NAME"- name: Create Pull Requestdiff --git a/.github/workflows/yaml.yml b/.github/workflows/yaml.ymlindex d30a12a57e8..03ecb674319 100644--- a/.github/workflows/yaml.yml+++ b/.github/workflows/yaml.yml@@ -24,6 +24,7 @@ jobs:filters: .github/file-paths.yamlyaml-linter:+ needs: files-changedruns-on: ${{ vars.DEFAULT_RUNNER_KEY }}if: needs.files-changed.outputs.yaml == 'true'timeout-minutes: 10