Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.

Commit e809c67

Browse files
Move permissions to job definition for update
1 parent bd4b1c1 commit e809c67

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/update.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ on:
1212
schedule:
1313
- cron: "0 0 * * *"
1414
workflow_dispatch:
15-
permissions: read-all
15+
permissions:
16+
contents: write # for technote-space/create-pr-action to push code
17+
pull-requests: write # for technote-space/create-pr-action to create a PR
1618
jobs:
1719
check-versions:
18-
permissions:
19-
contents: write # for technote-space/create-pr-action to push code
20-
pull-requests: write # for technote-space/create-pr-action to create a PR
2120
runs-on: vm-self-hosted
2221
steps:
2322
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
@@ -57,9 +56,6 @@ jobs:
5756
PR_TITLE: "chore: update dictionary"
5857
check-github-actions:
5958
runs-on: ubuntu-latest
60-
permissions:
61-
contents: write # for technote-space/create-pr-action to push code
62-
pull-requests: write # for technote-space/create-pr-action to create a PR
6359
steps:
6460
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
6561
- uses: technote-space/create-pr-action@91114507cf92349bec0a9a501c2edf1635427bc5 # 2.1.4

0 commit comments

Comments
 (0)