Skip to content

Commit 9569ed9

Browse files
committed
Add token permissions to workflow with Autoupdate pre-commit
1 parent bea5156 commit 9569ed9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/pre-commit-autoupdate.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,20 @@ on:
88
schedule:
99
- cron: '28 2 * * 6' # Saturday at 02:28 UTC
1010

11+
permissions: read-all
12+
1113
jobs:
1214
autoupdate:
1315
name: Autoupdate
1416

1517
runs-on: ubuntu-latest
1618
timeout-minutes: 10
1719

20+
permissions:
21+
# Needed to create a PR with autoupdate changes
22+
contents: write
23+
pull-requests: write
24+
1825
steps:
1926
- name: Checkout DPNP repo
2027
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

0 commit comments

Comments
 (0)