A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
ci: doppler secrets (#9236)
Myles Scolnick66df270fbf9b
diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.ymlindex 5c6698851b..6f23790a73 100644--- a/.github/workflows/cla.yml+++ b/.github/workflows/cla.yml@@ -15,19 +15,28 @@ permissions:contents: writepull-requests: writestatuses: write+ id-token: write # required for Doppler OIDCjobs:CLAAssistant:runs-on: ubuntu-lateststeps:+ - name: 🔐 Fetch Doppler secrets+ if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'+ uses: dopplerhq/secrets-fetch-action@cd2efbf9a404504316435873eff298b82f7e0562 # v1.3.0+ id: secrets+ with:+ auth-method: oidc+ doppler-identity-id: ${{ vars.DOPPLER_IDENTITY_ID }}+ doppler-project: marimo-oss+ doppler-config: ci_cla+- name: "CLA Assistant"if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1env:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- # the below token should have repo scope and must be manually added by you in the repository's secret- # This token is required only if you have configured to store the signatures in a remote repository/organization- PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}+ PERSONAL_ACCESS_TOKEN: ${{ steps.secrets.outputs.PERSONAL_ACCESS_TOKEN }}with:path-to-signatures: "signatures/version1/cla.json"path-to-document: "https://marimo.io/cla" # e.g. a CLA or a DCO documentdiff --git a/.github/workflows/docs.yml b/.github/workflows/docs.ymlindex 4e21cc25fe..03faf333f7 100644--- a/.github/workflows/docs.yml+++ b/.github/workflows/docs.yml@@ -13,6 +13,7 @@ concurrency:permissions:contents: read+ id-token: write # required for Doppler OIDCenv:UV_EXCLUDE_NEWER: "7 days"@@ -24,6 +25,15 @@ jobs:steps:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4+ - name: 🔐 Fetch Doppler secrets+ uses: dopplerhq/secrets-fetch-action@cd2efbf9a404504316435873eff298b82f7e0562 # v1.3.0+ id: secrets+ with:+ auth-method: oidc+ doppler-identity-id: ${{ vars.DOPPLER_IDENTITY_ID }}+ doppler-project: marimo-oss+ doppler-config: ci_docs+- name: 🐍 Setup uvuses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7with:@@ -34,16 +44,18 @@ jobs:run: npm install --global vercel@latest- name: ⬇️ Pull Vercel Environment Information- run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}env:- VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}- VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}+ VERCEL_ORG_ID: ${{ steps.secrets.outputs.VERCEL_ORG_ID }}+ VERCEL_PROJECT_ID: ${{ steps.secrets.outputs.VERCEL_PROJECT_ID }}+ VERCEL_TOKEN: ${{ steps.secrets.outputs.VERCEL_TOKEN }}+ run: vercel pull --yes --environment=production- name: 📚 Build docs- run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}env:- VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}- VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}+ VERCEL_ORG_ID: ${{ steps.secrets.outputs.VERCEL_ORG_ID }}+ VERCEL_PROJECT_ID: ${{ steps.secrets.outputs.VERCEL_PROJECT_ID }}+ VERCEL_TOKEN: ${{ steps.secrets.outputs.VERCEL_TOKEN }}+ run: vercel build --prod- name: 📝 Generate markdown versions of docsrun: |@@ -88,7 +100,8 @@ jobs:- name: 🚀 Deploy to Vercelif: github.ref == 'refs/heads/main' && steps.latest.outputs.is_latest == 'true'- run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}env:- VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}- VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}+ VERCEL_ORG_ID: ${{ steps.secrets.outputs.VERCEL_ORG_ID }}+ VERCEL_PROJECT_ID: ${{ steps.secrets.outputs.VERCEL_PROJECT_ID }}+ VERCEL_TOKEN: ${{ steps.secrets.outputs.VERCEL_TOKEN }}+ run: vercel deploy --prebuilt --proddiff --git a/.github/workflows/marimo-bot.yml b/.github/workflows/marimo-bot.ymlindex 819cf396b8..ea1790f13e 100644--- a/.github/workflows/marimo-bot.yml+++ b/.github/workflows/marimo-bot.yml@@ -86,10 +86,19 @@ jobs:console.log(`Comment created with ID: ${comment.data.id}`);return comment.data.id;+ - name: 🔐 Fetch Doppler secrets+ uses: dopplerhq/secrets-fetch-action@cd2efbf9a404504316435873eff298b82f7e0562 # v1.3.0+ id: secrets+ with:+ auth-method: oidc+ doppler-identity-id: ${{ vars.DOPPLER_IDENTITY_ID }}+ doppler-project: marimo-oss+ doppler-config: ci_test+- name: 📦 Build frontenduses: ./.github/actions/build-frontendwith:- turbo-token: ${{ secrets.TURBO_TOKEN }}+ turbo-token: ${{ steps.secrets.outputs.TURBO_TOKEN }}- name: Install uvuses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.ymlindex 86c9529571..57f19baada 100644--- a/.github/workflows/playwright.yml+++ b/.github/workflows/playwright.yml@@ -36,6 +36,9 @@ jobs:if: ${{ needs.changes.outputs.playwright == 'true' }}timeout-minutes: 18 # 2024-01-18 avg: 5.0m max: 7.0mruns-on: ubuntu-latest+ permissions:+ contents: read+ id-token: write # required for Doppler OIDCdefaults:run:shell: bash@@ -58,11 +61,23 @@ jobs:run: |sed -i 's/auto_instantiate = false/auto_instantiate = true/' pyproject.toml+ - name: 🔐 Fetch Doppler secrets+ # Skip on PRs from forks: id-token write is downgraded to read, so OIDC fails.+ # Downstream tokens (TURBO_TOKEN, CODECOV_TOKEN) are optional and tolerate empty.+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository+ uses: dopplerhq/secrets-fetch-action@cd2efbf9a404504316435873eff298b82f7e0562 # v1.3.0+ id: secrets+ with:+ auth-method: oidc+ doppler-identity-id: ${{ vars.DOPPLER_IDENTITY_ID }}+ doppler-project: marimo-oss+ doppler-config: ci_test+- name: 📦 Build frontenduses: ./.github/actions/build-frontendwith:- turbo-token: ${{ secrets.TURBO_TOKEN }}- codecov-token: ${{ secrets.CODECOV_TOKEN }}+ turbo-token: ${{ steps.secrets.outputs.TURBO_TOKEN }}+ codecov-token: ${{ steps.secrets.outputs.CODECOV_TOKEN }}- name: 🐍 Setup uvuses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7diff --git a/.github/workflows/release-dev.yml b/.github/workflows/release-dev.ymlindex 2c0e89ebe5..d3bda90a24 100644--- a/.github/workflows/release-dev.yml+++ b/.github/workflows/release-dev.yml@@ -20,6 +20,7 @@ jobs:runs-on: ubuntu-latestpermissions:contents: read+ id-token: write # required for Doppler OIDCdefaults:run:shell: bash@@ -34,11 +35,20 @@ jobs:# get tag history for version numberfetch-depth: 0+ - name: 🔐 Fetch Doppler secrets+ uses: dopplerhq/secrets-fetch-action@cd2efbf9a404504316435873eff298b82f7e0562 # v1.3.0+ id: secrets+ with:+ auth-method: oidc+ doppler-identity-id: ${{ vars.DOPPLER_IDENTITY_ID }}+ doppler-project: marimo-oss+ doppler-config: ci_deploy+- name: 📦 Build frontenduses: ./.github/actions/build-frontendwith:- turbo-token: ${{ secrets.TURBO_TOKEN }}- codecov-token: ${{ secrets.CODECOV_TOKEN }}+ turbo-token: ${{ steps.secrets.outputs.TURBO_TOKEN }}+ codecov-token: ${{ steps.secrets.outputs.CODECOV_TOKEN }}- name: Install uvuses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7diff --git a/.github/workflows/release-marimo-base.yml b/.github/workflows/release-marimo-base.ymlindex 91fda59033..637dd26b4d 100644--- a/.github/workflows/release-marimo-base.yml+++ b/.github/workflows/release-marimo-base.yml@@ -33,11 +33,20 @@ jobs:- name: ⬇️ Checkout repouses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4+ - name: 🔐 Fetch Doppler secrets+ uses: dopplerhq/secrets-fetch-action@cd2efbf9a404504316435873eff298b82f7e0562 # v1.3.0+ id: secrets+ with:+ auth-method: oidc+ doppler-identity-id: ${{ vars.DOPPLER_IDENTITY_ID }}+ doppler-project: marimo-oss+ doppler-config: ci_deploy+- name: 📦 Build frontenduses: ./.github/actions/build-frontendwith:- turbo-token: ${{ secrets.TURBO_TOKEN }}- codecov-token: ${{ secrets.CODECOV_TOKEN }}+ turbo-token: ${{ steps.secrets.outputs.TURBO_TOKEN }}+ codecov-token: ${{ steps.secrets.outputs.CODECOV_TOKEN }}- name: Install uvuses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7diff --git a/.github/workflows/release-prod.yml b/.github/workflows/release-prod.ymlindex c392690a8a..7b1389b3cd 100644--- a/.github/workflows/release-prod.yml+++ b/.github/workflows/release-prod.yml@@ -20,6 +20,7 @@ jobs:runs-on: ubuntu-latestpermissions:contents: read+ id-token: write # required for Doppler OIDCdefaults:run:shell: bash@@ -31,11 +32,20 @@ jobs:- name: ⬇️ Checkout repouses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4+ - name: 🔐 Fetch Doppler secrets+ uses: dopplerhq/secrets-fetch-action@cd2efbf9a404504316435873eff298b82f7e0562 # v1.3.0+ id: secrets+ with:+ auth-method: oidc+ doppler-identity-id: ${{ vars.DOPPLER_IDENTITY_ID }}+ doppler-project: marimo-oss+ doppler-config: ci_deploy+- name: 📦 Build frontenduses: ./.github/actions/build-frontendwith:- turbo-token: ${{ secrets.TURBO_TOKEN }}- codecov-token: ${{ secrets.CODECOV_TOKEN }}+ turbo-token: ${{ steps.secrets.outputs.TURBO_TOKEN }}+ codecov-token: ${{ steps.secrets.outputs.CODECOV_TOKEN }}- name: 🐍 Setup uvuses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.ymlindex f1f4d12d2f..77cd43353a 100644--- a/.github/workflows/release-tag.yml+++ b/.github/workflows/release-tag.yml@@ -15,6 +15,7 @@ jobs:runs-on: ubuntu-latestpermissions:contents: read+ id-token: write # required for Doppler OIDCsteps:- name: Extract version from PR titleid: version@@ -28,6 +29,15 @@ jobs:fiecho "version=$VERSION" >> "$GITHUB_OUTPUT"+ - name: 🔐 Fetch Doppler secrets+ uses: dopplerhq/secrets-fetch-action@cd2efbf9a404504316435873eff298b82f7e0562 # v1.3.0+ id: secrets+ with:+ auth-method: oidc+ doppler-identity-id: ${{ vars.DOPPLER_IDENTITY_ID }}+ doppler-project: marimo-oss+ doppler-config: ci_deploy+# Use a GitHub App token so the tag push triggers other workflows.# Tags pushed with the default GITHUB_TOKEN do not trigger workflows.- name: Generate app token@@ -35,7 +45,7 @@ jobs:uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1with:app-id: ${{ vars.RELEASE_APP_ID }}- private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}+ private-key: ${{ steps.secrets.outputs.RELEASE_APP_PRIVATE_KEY }}- name: Checkoutuses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4diff --git a/.github/workflows/test_be.yaml b/.github/workflows/test_be.yamlindex 2de7ee2bb0..3fbf03eb73 100644--- a/.github/workflows/test_be.yaml+++ b/.github/workflows/test_be.yaml@@ -186,6 +186,9 @@ jobs:name: Test coverageruns-on: ubuntu-latesttimeout-minutes: 35+ permissions:+ contents: read+ id-token: write # required for Doppler OIDCsteps:- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4@@ -210,6 +213,16 @@ jobs:--inline-snapshot=disable \--cov=marimo --cov-report=xml --junitxml=junit.xml -o junit_family=legacy+ - name: 🔐 Fetch Doppler secrets+ if: ${{ !cancelled() }}+ uses: dopplerhq/secrets-fetch-action@cd2efbf9a404504316435873eff298b82f7e0562 # v1.3.0+ id: secrets+ with:+ auth-method: oidc+ doppler-identity-id: ${{ vars.DOPPLER_IDENTITY_ID }}+ doppler-project: marimo-oss+ doppler-config: ci_test+# Only upload coverage on `main` so it is not blocking# and only on `3.13`, `ubuntu-latest`, with optional deps since it will cover# the most surface area.@@ -219,10 +232,10 @@ jobs:with:files: ./coverage.xmlenv:- CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}+ CODECOV_TOKEN: ${{ steps.secrets.outputs.CODECOV_TOKEN }}- name: Upload test results to Codecovif: ${{ !cancelled() }}uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1env:- CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}+ CODECOV_TOKEN: ${{ steps.secrets.outputs.CODECOV_TOKEN }}diff --git a/.github/workflows/test_cli.yaml b/.github/workflows/test_cli.yamlindex ee3dab5334..9e990ad39a 100644--- a/.github/workflows/test_cli.yaml+++ b/.github/workflows/test_cli.yaml@@ -13,7 +13,6 @@ permissions:contents: readenv:- TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}TURBO_TEAM: marimoMARIMO_SKIP_UPDATE_CHECK: 1UV_EXCLUDE_NEWER: "7 days"@@ -38,6 +37,9 @@ jobs:name: Build marimo wheelruns-on: ubuntu-latesttimeout-minutes: 8 # 2024-01-18+ permissions:+ contents: read+ id-token: write # required for Doppler OIDCdefaults:run:shell: bash@@ -48,11 +50,23 @@ jobs:with:fetch-depth: 0 # so we can run --since on the main branch and turbo can do faster cache hashing+ - name: 🔐 Fetch Doppler secrets+ # Skip on PRs from forks: id-token write is downgraded to read, so OIDC fails.+ # Downstream tokens (TURBO_TOKEN, CODECOV_TOKEN) are optional and tolerate empty.+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository+ uses: dopplerhq/secrets-fetch-action@cd2efbf9a404504316435873eff298b82f7e0562 # v1.3.0+ id: secrets+ with:+ auth-method: oidc+ doppler-identity-id: ${{ vars.DOPPLER_IDENTITY_ID }}+ doppler-project: marimo-oss+ doppler-config: ci_test+- name: 📦 Build frontenduses: ./.github/actions/build-frontendwith:- turbo-token: ${{ secrets.TURBO_TOKEN }}- codecov-token: ${{ secrets.CODECOV_TOKEN }}+ turbo-token: ${{ steps.secrets.outputs.TURBO_TOKEN }}+ codecov-token: ${{ steps.secrets.outputs.CODECOV_TOKEN }}- name: 🐍 Setup uvuses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7diff --git a/.github/workflows/test_fe.yaml b/.github/workflows/test_fe.yamlindex cdc81bc978..e95a8a484b 100644--- a/.github/workflows/test_fe.yaml+++ b/.github/workflows/test_fe.yaml@@ -13,7 +13,6 @@ permissions:contents: readenv:- TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}TURBO_TEAM: marimoMARIMO_SKIP_UPDATE_CHECK: 1@@ -38,6 +37,9 @@ jobs:name: 🧹 Lint frontendruns-on: ubuntu-latesttimeout-minutes: 10+ permissions:+ contents: read+ id-token: write # required for Doppler OIDCdefaults:run:shell: bash@@ -48,6 +50,18 @@ jobs:with:fetch-depth: 0+ - name: 🔐 Fetch Doppler secrets+ # Skip on PRs from forks: id-token write is downgraded to read, so OIDC fails.+ # Downstream tokens (TURBO_TOKEN, CODECOV_TOKEN) are optional and tolerate empty.+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository+ uses: dopplerhq/secrets-fetch-action@cd2efbf9a404504316435873eff298b82f7e0562 # v1.3.0+ id: secrets+ with:+ auth-method: oidc+ doppler-identity-id: ${{ vars.DOPPLER_IDENTITY_ID }}+ doppler-project: marimo-oss+ doppler-config: ci_test+- name: 📥 Install repouses: ./.github/actions/install@@ -58,6 +72,8 @@ jobs:- name: 🧹 Lintid: lint+ env:+ TURBO_TOKEN: ${{ steps.secrets.outputs.TURBO_TOKEN }}run: pnpm turbo lint- name: 🔒 Verify clean git tree after lint@@ -98,6 +114,9 @@ jobs:name: 🧪 Test frontendruns-on: ubuntu-latesttimeout-minutes: 10+ permissions:+ contents: read+ id-token: write # required for Doppler OIDCdefaults:run:working-directory: ./frontend@@ -109,6 +128,18 @@ jobs:with:fetch-depth: 0+ - name: 🔐 Fetch Doppler secrets+ # Skip on PRs from forks: id-token write is downgraded to read, so OIDC fails.+ # Downstream tokens (TURBO_TOKEN, CODECOV_TOKEN) are optional and tolerate empty.+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository+ uses: dopplerhq/secrets-fetch-action@cd2efbf9a404504316435873eff298b82f7e0562 # v1.3.0+ id: secrets+ with:+ auth-method: oidc+ doppler-identity-id: ${{ vars.DOPPLER_IDENTITY_ID }}+ doppler-project: marimo-oss+ doppler-config: ci_test+- name: 📥 Install repouses: ./.github/actions/install@@ -117,6 +148,8 @@ jobs:- name: 🔎 Type checkid: typecheck+ env:+ TURBO_TOKEN: ${{ steps.secrets.outputs.TURBO_TOKEN }}run: pnpm turbo typecheck- name: 🔒 Verify clean git tree after typecheck@@ -132,6 +165,8 @@ jobs:- name: 🧪 Testid: test+ env:+ TURBO_TOKEN: ${{ steps.secrets.outputs.TURBO_TOKEN }}run: pnpm turbo test- name: Summarize typecheck failure@@ -161,6 +196,9 @@ jobs:name: 📦 Build frontendruns-on: ubuntu-latesttimeout-minutes: 15+ permissions:+ contents: read+ id-token: write # required for Doppler OIDCdefaults:run:working-directory: ./frontend@@ -172,6 +210,18 @@ jobs:with:fetch-depth: 0+ - name: 🔐 Fetch Doppler secrets+ # Skip on PRs from forks: id-token write is downgraded to read, so OIDC fails.+ # Downstream tokens (TURBO_TOKEN, CODECOV_TOKEN) are optional and tolerate empty.+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository+ uses: dopplerhq/secrets-fetch-action@cd2efbf9a404504316435873eff298b82f7e0562 # v1.3.0+ id: secrets+ with:+ auth-method: oidc+ doppler-identity-id: ${{ vars.DOPPLER_IDENTITY_ID }}+ doppler-project: marimo-oss+ doppler-config: ci_test+- name: 📥 Install repouses: ./.github/actions/install@@ -191,12 +241,14 @@ jobs:run: pnpm turbo buildenv:NODE_ENV: production+ TURBO_TOKEN: ${{ steps.secrets.outputs.TURBO_TOKEN }}- name: 📦 Build islands frontendenv:NODE_ENV: productionVITE_MARIMO_ISLANDS: "true"VITE_MARIMO_VERSION: "0.0.0"+ TURBO_TOKEN: ${{ steps.secrets.outputs.TURBO_TOKEN }}run: |npm version 0.0.0 --no-git-tag-versionpnpm turbo build:islands