Skip to content

Commit c824c28

Browse files
committed
ci: add permissions
1 parent 18ca7af commit c824c28

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/pull-request.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ on:
44
pull_request:
55
workflow_dispatch:
66

7+
permissions:
8+
contents: read
9+
710
concurrency:
8-
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
912
cancel-in-progress: true
1013

1114
jobs:

.github/workflows/version.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ on:
66
- "main"
77
workflow_dispatch:
88

9-
# TODO: RE-ENABLE VERSION WHEN PERMISSIONS ARE FIXED
10-
# permissions:
11-
# contents: write
12-
# pull-requests: write
9+
permissions:
10+
contents: write
11+
pull-requests: write
1312

1413
concurrency:
1514
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)