Skip to content

Commit b8d0890

Browse files
authored
Merge pull request #2221 from IntelPython/add-token-permissions-to-pre-commit-autoupdate-workflow
Define token permissions in "Autoupdate pre-commit" workflow
2 parents c5c82b4 + 9ef4498 commit b8d0890

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
@@ -10,13 +10,20 @@ on:
1010
- cron: '28 2 * * 6' # Saturday at 02:28 UTC
1111
workflow_dispatch:
1212

13+
permissions: read-all
14+
1315
jobs:
1416
autoupdate:
1517
name: Autoupdate
1618

1719
runs-on: ubuntu-latest
1820
timeout-minutes: 10
1921

22+
permissions:
23+
# Needed to create a PR with autoupdate changes
24+
contents: write
25+
pull-requests: write
26+
2027
steps:
2128
- name: Checkout DPNP repo
2229
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4.2.2

0 commit comments

Comments
 (0)