ci: add minimum workflow permissions

This commit is contained in:
John Kennedy
2026-03-25 22:51:06 +00:00
parent ca58e1753d
commit 73a932506e
2 changed files with 8 additions and 2 deletions
+3
View File
@@ -7,6 +7,9 @@ on:
- cron: "37 14 * * *" # Run at 7:37 AM Pacific Time (14:37 UTC) every day
workflow_dispatch: # Allows triggering the workflow manually in GitHub UI
permissions:
contents: read
# If another scheduled run starts while this workflow is still running,
# cancel the earlier run in favor of the next run.
concurrency:
+5 -2
View File
@@ -8,6 +8,9 @@ on:
pull_request:
workflow_dispatch: # Allows triggering the workflow manually in GitHub UI
permissions:
contents: read
# If another push to the same PR or branch happens while this workflow is still running,
# cancel the earlier run in favor of the next run.
concurrency:
@@ -38,13 +41,13 @@ jobs:
run: yarn lint:all
- name: Check README spelling
uses: codespell-project/actions-codespell@v2
uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 # v2
with:
ignore_words_file: .codespellignore
path: README.md
- name: Check code spelling
uses: codespell-project/actions-codespell@v2
uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 # v2
with:
ignore_words_file: .codespellignore
path: src/