Skip to content

Commit 361b147

Browse files
committed
Updated workflow permissions
Added `contents: read` and `pull-requests: write` permissions.
1 parent 6fcbae0 commit 361b147

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build
22
on: [ pull_request, push ]
33
jobs:
44
build:
5+
permissions:
6+
contents: read
7+
pull-requests: write
58
runs-on: ubuntu-latest
69
steps:
710
- name: Checkout sources

.github/workflows/hangar-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
types: [ prereleased, released ]
55
jobs:
66
build:
7+
permissions:
8+
contents: read
9+
pull-requests: write
710
env:
811
REPOSITORY_USER: ${{ secrets.REPOSITORY_USER }}
912
REPOSITORY_TOKEN: ${{ secrets.REPOSITORY_TOKEN }}

0 commit comments

Comments
 (0)