Skip to content

Commit 90bf877

Browse files
committed
Move write permissions to the specific job, rather than globally
Signed-off-by: Justin Abrahms <[email protected]>
1 parent 01b98dc commit 90bf877

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/merge.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ on:
1212
branches: [ master, main ]
1313

1414
permissions:
15-
packages: write
1615
contents: read
1716

1817
jobs:
1918
build:
2019

2120
runs-on: ubuntu-latest
21+
permissions:
22+
packages: write
2223

2324
steps:
2425
- uses: actions/checkout@v3

.github/workflows/pullrequest.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
pull_request:
44
branches: [ master, main ]
55
permissions:
6-
packages: write
76
contents: read
87

98
jobs:
@@ -15,6 +14,8 @@ jobs:
1514
ports:
1615
- 8013:8013
1716

17+
permissions:
18+
packages: write
1819
steps:
1920
- name: Check out the code
2021
uses: actions/checkout@v3

0 commit comments

Comments
 (0)