Skip to content

Commit

Permalink
Move write permissions to the specific job, rather than globally
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Abrahms <justin@abrah.ms>
  • Loading branch information
justinabrahms committed Oct 3, 2022
1 parent 01b98dc commit 90bf877
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ on:
branches: [ master, main ]

permissions:
packages: write
contents: read

jobs:
build:

runs-on: ubuntu-latest
permissions:
packages: write

steps:
- uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
pull_request:
branches: [ master, main ]
permissions:
packages: write
contents: read

jobs:
Expand All @@ -15,6 +14,8 @@ jobs:
ports:
- 8013:8013

permissions:
packages: write
steps:
- name: Check out the code
uses: actions/checkout@v3
Expand Down

0 comments on commit 90bf877

Please sign in to comment.