Skip to content

Commit c446b99

Browse files
authored
Merge pull request #913 from containerd/revert-911-issue910
Revert "ci(all): add read-all permission to all workflows"
2 parents 412c837 + d7b26f2 commit c446b99

File tree

13 files changed

+12
-47
lines changed

13 files changed

+12
-47
lines changed

.github/workflows/action-build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ on:
3030
type: string
3131
required: false
3232

33-
permissions: read-all
34-
3533
jobs:
3634
build-sign-upload:
3735
permissions:

.github/workflows/action-check.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ on:
1212
required: true
1313
type: string
1414

15-
permissions: read-all
16-
1715
jobs:
1816
check:
1917
name: lint on ${{ inputs.os }}

.github/workflows/action-test-image.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ on:
99
type: string
1010
default: img
1111

12-
permissions: read-all
13-
1412
jobs:
1513
test-image:
1614
name: build test ${{ inputs.image }}

.github/workflows/action-test-k3s.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ on:
1212
required: true
1313
type: string
1414

15-
permissions: read-all
16-
1715
jobs:
1816
e2e-k3s:
1917
name: e2e k3s test on ${{ inputs.os }}

.github/workflows/action-test-kind.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ on:
1818
type: string
1919
required: true
2020

21-
permissions: read-all
22-
2321
jobs:
2422
e2e-kind:
2523
name: e2e kind test on ${{ inputs.os }} with ${{ inputs.image }}

.github/workflows/action-test-smoke.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ on:
1212
required: true
1313
type: string
1414

15-
permissions: read-all
16-
1715
jobs:
1816
smoke-test:
1917
name: smoke test on ${{ inputs.os }}

.github/workflows/benchmarks.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ on:
1313
- 'NOTICE'
1414
- 'art/**'
1515

16-
permissions: read-all
16+
permissions:
17+
# deployments permission to deploy GitHub pages website
18+
deployments: write
19+
# contents permission to update benchmark contents in gh-pages branch
20+
contents: write
1721

1822
jobs:
1923
benchmark:
2024
runs-on: ubuntu-latest
21-
permissions:
22-
# deployments permission to deploy GitHub pages website
23-
deployments: write
24-
# contents permission to update benchmark contents in gh-pages branch
25-
contents: write
25+
2626
steps:
2727
- uses: actions/checkout@v4
2828
- uses: actions-rust-lang/setup-rust-toolchain@v1
@@ -56,11 +56,7 @@ jobs:
5656

5757
benchmark-mem:
5858
runs-on: ubuntu-latest
59-
permissions:
60-
# deployments permission to deploy GitHub pages website
61-
deployments: write
62-
# contents permission to update benchmark contents in gh-pages branch
63-
contents: write
59+
6460
steps:
6561
- uses: actions/checkout@v4
6662
- uses: actions-rust-lang/setup-rust-toolchain@v1
@@ -97,11 +93,7 @@ jobs:
9793

9894
benchmark-http:
9995
runs-on: ubuntu-latest
100-
permissions:
101-
# deployments permission to deploy GitHub pages website
102-
deployments: write
103-
# contents permission to update benchmark contents in gh-pages branch
104-
contents: write
96+
10597
steps:
10698
- uses: actions/checkout@v4
10799
- uses: actions-rust-lang/setup-rust-toolchain@v1
@@ -134,11 +126,7 @@ jobs:
134126
135127
benchmark-stress:
136128
runs-on: ubuntu-latest
137-
permissions:
138-
# deployments permission to deploy GitHub pages website
139-
deployments: write
140-
# contents permission to update benchmark contents in gh-pages branch
141-
contents: write
129+
142130
steps:
143131
- uses: actions/checkout@v4
144132
- uses: actions-rust-lang/setup-rust-toolchain@v1

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ on:
1818
env:
1919
CARGO_TERM_COLOR: always
2020

21-
permissions: read-all
22-
2321
jobs:
2422
dependency-review:
2523
runs-on: ubuntu-latest

.github/workflows/docs.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
branches: [main]
88
workflow_dispatch:
99

10-
permissions: read-all
11-
1210
jobs:
1311
changes:
1412
runs-on: ubuntu-22.04

.github/workflows/release-wasi-demo-app.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ env:
1919
CARGO_TERM_COLOR: always
2020
IMAGES: "wasi-demo-app wasi-demo-oci wasi-demo-oci-artifact wasi-demo-http"
2121

22-
permissions: read-all
23-
2422
jobs:
2523
release-wasi-demo:
2624
permissions:

0 commit comments

Comments
 (0)