Skip to content

Commit 2da3c04

Browse files
committed
fix: token permissions
1 parent 5b45bed commit 2da3c04

File tree

6 files changed

+28
-5
lines changed

6 files changed

+28
-5
lines changed

.github/workflows/publish-layer-collector.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ on:
4848
required: false
4949
type: string
5050

51+
permissions:
52+
contents: read
53+
5154
jobs:
5255
prepare-build-jobs:
5356
runs-on: ubuntu-latest

.github/workflows/release-layer-collector.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ on:
88

99
permissions:
1010
id-token: write
11-
contents: write
11+
contents: read
1212

1313
jobs:
1414
create-release:
15+
permissions:
16+
contents: write
1517
runs-on: ubuntu-latest
1618
steps:
1719
- uses: actions/checkout@v4
@@ -20,6 +22,8 @@ jobs:
2022
env:
2123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2224
build-layer:
25+
permissions:
26+
contents: write
2327
runs-on: ubuntu-latest
2428
needs: create-release
2529
strategy:

.github/workflows/release-layer-java.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ on:
88

99
permissions:
1010
id-token: write
11-
contents: write
11+
contents: read
1212

1313
jobs:
1414
create-release:
15+
permissions:
16+
contents: write
1517
runs-on: ubuntu-latest
1618
steps:
1719
- uses: actions/checkout@v4
@@ -20,6 +22,8 @@ jobs:
2022
env:
2123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2224
build-layer:
25+
permissions:
26+
contents: write
2327
runs-on: ubuntu-latest
2428
needs: create-release
2529
outputs:

.github/workflows/release-layer-nodejs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ on:
88

99
permissions:
1010
id-token: write
11-
contents: write
11+
contents: read
1212

1313
jobs:
1414
create-release:
15+
permissions:
16+
contents: write
1517
runs-on: ubuntu-latest
1618
steps:
1719
- uses: actions/checkout@v4
@@ -20,6 +22,8 @@ jobs:
2022
env:
2123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2224
build-layer:
25+
permissions:
26+
contents: write
2327
runs-on: ubuntu-latest
2428
needs: create-release
2529
outputs:

.github/workflows/release-layer-python.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ on:
88

99
permissions:
1010
id-token: write
11-
contents: write
11+
contents: read
1212

1313
jobs:
1414
create-release:
15+
permissions:
16+
contents: write
1517
runs-on: ubuntu-latest
1618
steps:
1719
- uses: actions/checkout@v4
@@ -20,6 +22,8 @@ jobs:
2022
env:
2123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2224
build-layer:
25+
permissions:
26+
contents: write
2327
runs-on: ubuntu-latest
2428
needs: create-release
2529
outputs:

.github/workflows/release-layer-ruby.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ on:
88

99
permissions:
1010
id-token: write
11-
contents: write
11+
contents: read
1212

1313
jobs:
1414
create-release:
15+
permissions:
16+
contents: write
1517
runs-on: ubuntu-latest
1618
steps:
1719
- uses: actions/checkout@v4
@@ -20,6 +22,8 @@ jobs:
2022
env:
2123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2224
build-layer:
25+
permissions:
26+
contents: write
2327
runs-on: ubuntu-latest
2428
needs: create-release
2529
outputs:

0 commit comments

Comments
 (0)