Revert "Improve GitHub Actions specs (#15965)"
This reverts commit 6c16143c3a68c99f6e4c99974c44cf3abf867103.
diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml
index 3f4ea5e..e728d74 100644
--- a/.github/workflows/build_wheels.yml
+++ b/.github/workflows/build_wheels.yml
@@ -5,9 +5,6 @@
branches: [main, master, 'release*']
tags: ['*']
-permissions:
- contents: write
-
jobs:
build-wheels:
if: github.repository == 'python/mypy'
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 9f3a612..5dc86a1 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -14,13 +14,6 @@
- CREDITS
- LICENSE
-permissions:
- contents: read
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
- cancel-in-progress: true
-
jobs:
docs:
runs-on: ubuntu-latest
diff --git a/.github/workflows/mypy_primer.yml b/.github/workflows/mypy_primer.yml
index 2958b8f..e7e4af1 100644
--- a/.github/workflows/mypy_primer.yml
+++ b/.github/workflows/mypy_primer.yml
@@ -15,9 +15,6 @@
- 'mypy/test/**'
- 'test-data/**'
-permissions:
- contents: read
-
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 0e335a5..f594353 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -15,9 +15,6 @@
- CREDITS
- LICENSE
-permissions:
- contents: read
-
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
diff --git a/.github/workflows/test_stubgenc.yml b/.github/workflows/test_stubgenc.yml
index 33466b9..db9bf41 100644
--- a/.github/workflows/test_stubgenc.yml
+++ b/.github/workflows/test_stubgenc.yml
@@ -12,13 +12,6 @@
- 'mypy/stubdoc.py'
- 'test-data/stubgen/**'
-permissions:
- contents: read
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
- cancel-in-progress: true
-
jobs:
stubgenc:
# Check stub file generation for a small pybind11 project