diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5208699e38..9975a632bf 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -16,6 +16,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +permissions: + contents: read + jobs: docs: # OS must be the same as on djangoproject.com. diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index e24733172e..eaa11ced3c 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -14,6 +14,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +permissions: + contents: read + jobs: flake8: name: flake8 diff --git a/.github/workflows/new_contributor_pr.yml b/.github/workflows/new_contributor_pr.yml index 3efc556ef4..0848c01187 100644 --- a/.github/workflows/new_contributor_pr.yml +++ b/.github/workflows/new_contributor_pr.yml @@ -4,6 +4,10 @@ on: pull_request_target: types: [opened] +permissions: + issues: write + pull-requests: read + jobs: build: name: Hello new contributor diff --git a/.github/workflows/schedule_tests.yml b/.github/workflows/schedule_tests.yml index 11c8ecce6e..4677a3ed32 100644 --- a/.github/workflows/schedule_tests.yml +++ b/.github/workflows/schedule_tests.yml @@ -7,6 +7,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +permissions: + contents: read + jobs: windows: runs-on: windows-latest diff --git a/.github/workflows/schedules.yml b/.github/workflows/schedules.yml index d58af423ff..bd9cced240 100644 --- a/.github/workflows/schedules.yml +++ b/.github/workflows/schedules.yml @@ -5,6 +5,10 @@ on: - cron: '42 2 * * *' workflow_dispatch: +permissions: + actions: write + contents: read + jobs: trigger-runs: runs-on: ubuntu-latest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6965960155..cfdc661560 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,6 +14,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +permissions: + contents: read + jobs: windows: runs-on: windows-latest