Skip to content

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.

ci: explicit permissions (#6886)

Myles Scolnick4e2f58f0edbb
diff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.yml
index c38710ffdd..1e9c72d317 100644
--- a/.github/workflows/dev-release.yml
+++ b/.github/workflows/dev-release.yml
@@ -6,6 +6,10 @@ on:
branches:
- main
+permissions:
+ contents: read
+ pull-requests: write
+
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: marimo
diff --git a/.github/workflows/dev_build.yaml b/.github/workflows/dev_build.yaml
index b3831917f2..a993c91c20 100644
--- a/.github/workflows/dev_build.yaml
+++ b/.github/workflows/dev_build.yaml
@@ -6,6 +6,9 @@ on:
- 'Makefile'
- 'pyproject.toml'
+permissions:
+ contents: read
+
jobs:
build:
strategy:
diff --git a/.github/workflows/discord-release.yml b/.github/workflows/discord-release.yml
index b35b1eb971..fcde3c5ad9 100644
--- a/.github/workflows/discord-release.yml
+++ b/.github/workflows/discord-release.yml
@@ -4,6 +4,9 @@ on:
release:
types: [published]
+permissions:
+ contents: read
+
jobs:
github-releases-to-discord:
runs-on: ubuntu-latest
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 137c721cb4..123cba1cb0 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -7,6 +7,9 @@ on:
# Deploy on workflow dispatch
workflow_dispatch: {}
+permissions:
+ contents: read
+
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
diff --git a/.github/workflows/marimo-bot.yml b/.github/workflows/marimo-bot.yml
index a60b52ec10..68553c630b 100644
--- a/.github/workflows/marimo-bot.yml
+++ b/.github/workflows/marimo-bot.yml
@@ -4,6 +4,10 @@ on:
issue_comment:
types: [created]
+permissions:
+ contents: read
+ pull-requests: write
+
env:
TURBO_TEAM: marimo
diff --git a/.github/workflows/notify-readme-owners.yml b/.github/workflows/notify-readme-owners.yml
index 36f8ee2342..7f7aef0d06 100644
--- a/.github/workflows/notify-readme-owners.yml
+++ b/.github/workflows/notify-readme-owners.yml
@@ -5,6 +5,10 @@ on:
paths:
- 'README.md'
+permissions:
+ contents: read
+ pull-requests: write
+
jobs:
notify-translators:
# Only run this job when the PR is merged, not when it's closed without merging
diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml
index dc81dd3b02..e742164536 100644
--- a/.github/workflows/pages.yml
+++ b/.github/workflows/pages.yml
@@ -16,8 +16,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
- pull-requests: write
- contents: write
+ contents: read
steps:
- uses: actions/checkout@v4
diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml
index 6764ae478e..2231c240f9 100644
--- a/.github/workflows/playwright.yml
+++ b/.github/workflows/playwright.yml
@@ -5,6 +5,9 @@ on:
branches: [main]
pull_request:
+permissions:
+ contents: read
+
env:
MARIMO_SKIP_UPDATE_CHECK: 1
diff --git a/.github/workflows/release-marimo-base.yml b/.github/workflows/release-marimo-base.yml
index 5e823613c1..335a0272ce 100644
--- a/.github/workflows/release-marimo-base.yml
+++ b/.github/workflows/release-marimo-base.yml
@@ -7,6 +7,9 @@ on:
- "[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch: {}
+permissions:
+ contents: read
+
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: marimo
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ed50370a92..f04fc58ccd 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -7,6 +7,9 @@ on:
- '[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch: {}
+permissions:
+ contents: read
+
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: marimo
diff --git a/.github/workflows/test_be.yaml b/.github/workflows/test_be.yaml
index 301d7c2150..9347aa5e1d 100644
--- a/.github/workflows/test_be.yaml
+++ b/.github/workflows/test_be.yaml
@@ -5,6 +5,9 @@ on:
branches: [main]
pull_request:
+permissions:
+ contents: read
+
env:
MARIMO_SKIP_UPDATE_CHECK: 1
diff --git a/.github/workflows/test_cli.yaml b/.github/workflows/test_cli.yaml
index 8af8e4f530..22525beeba 100644
--- a/.github/workflows/test_cli.yaml
+++ b/.github/workflows/test_cli.yaml
@@ -5,6 +5,9 @@ on:
branches: [main]
pull_request:
+permissions:
+ contents: read
+
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: marimo
diff --git a/.github/workflows/test_schemas.yaml b/.github/workflows/test_schemas.yaml
index d074717d82..03593ed56f 100644
--- a/.github/workflows/test_schemas.yaml
+++ b/.github/workflows/test_schemas.yaml
@@ -6,6 +6,10 @@ on:
- 'marimo/_schemas/**/*.yaml'
- 'packages/openapi/api.yaml'
+permissions:
+ contents: read
+ pull-requests: write
+
jobs:
changes:
runs-on: ubuntu-latest
diff --git a/.github/workflows/test_typos.yaml b/.github/workflows/test_typos.yaml
index 4ab9e72aa9..ba946de556 100644
--- a/.github/workflows/test_typos.yaml
+++ b/.github/workflows/test_typos.yaml
@@ -4,6 +4,9 @@ name: Typos
on:
pull_request: {}
+permissions:
+ contents: read
+
jobs:
typos:
name: Check for typos