Skip to content

Commit 45998dc

Browse files
committed
Set github actions workflow permissions
1 parent 39bbc40 commit 45998dc

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Build
2+
permissions:
3+
contents: read
4+
pull-requests: write
25

36
on:
47
workflow_dispatch:
@@ -346,6 +349,8 @@ jobs:
346349
runs-on: ubuntu-latest
347350
if: "startsWith(github.ref, 'refs/tags/')"
348351
needs: [test-wheels]
352+
permissions:
353+
contents: write
349354
steps:
350355
- uses: actions/download-artifact@v8
351356
with:

.github/workflows/release-drafter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# draft release notes with https://github.com/release-drafter/release-drafter
22
name: Release Drafter
3+
permissions:
4+
contents: read
5+
pull-requests: write
36

47
on:
58
push:

.github/workflows/update_python_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Update Python Test Versions
2+
permissions:
3+
contents: write
4+
pull-requests: write
25
on:
36
workflow_dispatch:
47
schedule:

0 commit comments

Comments
 (0)