diff --git a/.github/workflows/superset-python-integrationtest.yml b/.github/workflows/superset-python-integrationtest.yml index d57b300659e..92e2dc58954 100644 --- a/.github/workflows/superset-python-integrationtest.yml +++ b/.github/workflows/superset-python-integrationtest.yml @@ -1,6 +1,11 @@ # Python integration tests name: Python-Integration +# Least-privilege default for GITHUB_TOKEN. Jobs that need more (e.g. OIDC for +# codecov uploads) opt in via their own job-level `permissions:` block. +permissions: + contents: read + on: push: branches: diff --git a/.github/workflows/superset-python-unittest.yml b/.github/workflows/superset-python-unittest.yml index 7355005eb55..be18420bcba 100644 --- a/.github/workflows/superset-python-unittest.yml +++ b/.github/workflows/superset-python-unittest.yml @@ -1,6 +1,11 @@ # Python unit tests name: Python-Unit +# Least-privilege default for GITHUB_TOKEN. Jobs that need more (e.g. OIDC for +# codecov uploads) opt in via their own job-level `permissions:` block. +permissions: + contents: read + on: push: branches: