Skip to content

Commit 8efb327

Browse files
committed
chore: update spelling bot to v0.0.26 and refine GitHub Actions permissions
1 parent 7ae1993 commit 8efb327

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/spelling.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ on:
7373
types:
7474
- 'created'
7575

76+
permissions: {}
77+
7678
jobs:
7779
spelling:
7880
name: Check Spelling
@@ -92,7 +94,7 @@ jobs:
9294
steps:
9395
- name: check-spelling
9496
id: spelling
95-
uses: check-spelling/check-spelling@v0.0.24
97+
uses: check-spelling/check-spelling@v0.0.26
9698
with:
9799
suppress_push_for_open_pull_request: ${{ github.actor != 'dependabot[bot]' && 1 }}
98100
checkout: true
@@ -127,11 +129,12 @@ jobs:
127129
runs-on: ubuntu-latest
128130
needs: spelling
129131
permissions:
132+
actions: read
130133
contents: write
131134
if: (success() || failure()) && needs.spelling.outputs.followup && github.event_name == 'push'
132135
steps:
133136
- name: comment
134-
uses: check-spelling/check-spelling@v0.0.24
137+
uses: check-spelling/check-spelling@v0.0.26
135138
with:
136139
checkout: true
137140
spell_check_this: check-spelling/spell-check-this@prerelease
@@ -143,12 +146,13 @@ jobs:
143146
runs-on: ubuntu-latest
144147
needs: spelling
145148
permissions:
149+
actions: read
146150
contents: read
147151
pull-requests: write
148152
if: (success() || failure()) && needs.spelling.outputs.followup && contains(github.event_name, 'pull_request')
149153
steps:
150154
- name: comment
151-
uses: check-spelling/check-spelling@v0.0.24
155+
uses: check-spelling/check-spelling@v0.0.26
152156
with:
153157
checkout: true
154158
spell_check_this: check-spelling/spell-check-this@prerelease
@@ -175,8 +179,8 @@ jobs:
175179
cancel-in-progress: false
176180
steps:
177181
- name: apply spelling updates
178-
uses: check-spelling/check-spelling@v0.0.24
182+
uses: check-spelling/check-spelling@v0.0.26
179183
with:
180184
experimental_apply_changes_via_bot: 1
181185
checkout: true
182-
ssh_key: "${{ secrets.CHECK_SPELLING }}"
186+
ssh_key: "${{ secrets.CHECK_SPELLING }}"

0 commit comments

Comments
 (0)