diff --git a/.github/workflows/check-python-deps.yml b/.github/workflows/check-python-deps.yml index 844b7bee94e..0201ea817cd 100644 --- a/.github/workflows/check-python-deps.yml +++ b/.github/workflows/check-python-deps.yml @@ -8,6 +8,10 @@ on: pull_request: types: [synchronize, opened, reopened, ready_for_review] +permissions: + contents: read + pull-requests: read + # cancel previous workflow jobs for PRs concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 930f94b1484..0b50cfc664e 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -9,6 +9,10 @@ on: branches: - "master" +permissions: + contents: read + pull-requests: read + concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} cancel-in-progress: true diff --git a/.github/workflows/embedded-sdk-release.yml b/.github/workflows/embedded-sdk-release.yml index 8bcf42a56be..0d4296e84f6 100644 --- a/.github/workflows/embedded-sdk-release.yml +++ b/.github/workflows/embedded-sdk-release.yml @@ -6,6 +6,9 @@ on: - "master" - "[0-9].[0-9]*" +permissions: + contents: read + jobs: config: runs-on: ubuntu-24.04 diff --git a/.github/workflows/embedded-sdk-test.yml b/.github/workflows/embedded-sdk-test.yml index 9d5237fce34..b5be1cbdf81 100644 --- a/.github/workflows/embedded-sdk-test.yml +++ b/.github/workflows/embedded-sdk-test.yml @@ -6,6 +6,9 @@ on: - "superset-embedded-sdk/**" types: [synchronize, opened, reopened, ready_for_review] +permissions: + contents: read + # cancel previous workflow jobs for PRs concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} diff --git a/.github/workflows/generate-FOSSA-report.yml b/.github/workflows/generate-FOSSA-report.yml index 1962626100d..fe1000a4844 100644 --- a/.github/workflows/generate-FOSSA-report.yml +++ b/.github/workflows/generate-FOSSA-report.yml @@ -6,6 +6,9 @@ on: - "master" - "[0-9].[0-9]*" +permissions: + contents: read + jobs: config: runs-on: ubuntu-24.04 diff --git a/.github/workflows/github-action-validator.yml b/.github/workflows/github-action-validator.yml index 9a341871c76..4d4a7030683 100644 --- a/.github/workflows/github-action-validator.yml +++ b/.github/workflows/github-action-validator.yml @@ -8,6 +8,9 @@ on: pull_request: types: [synchronize, opened, reopened, ready_for_review] +permissions: + contents: read + jobs: validate-all-ghas: diff --git a/.github/workflows/license-check.yml b/.github/workflows/license-check.yml index b1796c4b07d..775e08d0ca8 100644 --- a/.github/workflows/license-check.yml +++ b/.github/workflows/license-check.yml @@ -4,6 +4,9 @@ on: pull_request: types: [synchronize, opened, reopened, ready_for_review] +permissions: + contents: read + # cancel previous workflow jobs for PRs concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} diff --git a/.github/workflows/superset-app-cli.yml b/.github/workflows/superset-app-cli.yml index 1c6d8ec9d41..0340a0bf045 100644 --- a/.github/workflows/superset-app-cli.yml +++ b/.github/workflows/superset-app-cli.yml @@ -8,6 +8,10 @@ on: pull_request: types: [synchronize, opened, reopened, ready_for_review] +permissions: + contents: read + pull-requests: read + # cancel previous workflow jobs for PRs concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} diff --git a/.github/workflows/superset-extensions-cli.yml b/.github/workflows/superset-extensions-cli.yml index da8d12aee58..bd374334278 100644 --- a/.github/workflows/superset-extensions-cli.yml +++ b/.github/workflows/superset-extensions-cli.yml @@ -8,6 +8,10 @@ on: pull_request: types: [synchronize, opened, reopened, ready_for_review] +permissions: + contents: read + pull-requests: read + # cancel previous workflow jobs for PRs concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} diff --git a/.github/workflows/superset-helm-lint.yml b/.github/workflows/superset-helm-lint.yml index b616aedeaf8..f76a39b2cde 100644 --- a/.github/workflows/superset-helm-lint.yml +++ b/.github/workflows/superset-helm-lint.yml @@ -6,6 +6,9 @@ on: paths: - "helm/**" +permissions: + contents: read + # cancel previous workflow jobs for PRs concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} diff --git a/.github/workflows/superset-translations.yml b/.github/workflows/superset-translations.yml index 3223eb5fa88..8de7b404519 100644 --- a/.github/workflows/superset-translations.yml +++ b/.github/workflows/superset-translations.yml @@ -8,6 +8,10 @@ on: pull_request: types: [synchronize, opened, reopened, ready_for_review] +permissions: + contents: read + pull-requests: read + # cancel previous workflow jobs for PRs concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} diff --git a/.github/workflows/superset-websocket.yml b/.github/workflows/superset-websocket.yml index 83458b7a609..58e5ffe0552 100644 --- a/.github/workflows/superset-websocket.yml +++ b/.github/workflows/superset-websocket.yml @@ -11,6 +11,9 @@ on: - "superset-websocket/**" types: [synchronize, opened, reopened, ready_for_review] +permissions: + contents: read + # cancel previous workflow jobs for PRs concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}