Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .cspell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# cSpell:ignore textlintrc
# For settings, see
# https://www.streetsidesoftware.com/vscode-spell-checker/docs/configuration/
version: '0.2'
caseSensitive: false
patterns:
- name: CodeBlock
pattern: |
/
^(\s*[~`]{3,}) # code-block start
.* # all languages and options, e.g. shell {hl_lines=[12]}
[\s\S]*? # content
\1 # code-block end
/igmx
languageSettings:
- languageId: markdown
ignoreRegExpList:
- CodeBlock
words:
- AWSX
- Azuma
- backports
- behaviour
- callables
- circleci
- Clientcontext
- codeowners
- dalli
- datadog
- enqueuers
- ethon
- excon
- faas
- fanout
- faraday
- gettime
- gemfile
- gruf
- HTTPX
- httpx
- instrumenter
- linux
- lmdb
- microbenchmarks
- myapp
- namespacing
- opentelemetry
- otelcol
- ottrace
- postgres
- postgresql
- racecar
- rabbitmq
- Railtie
- Rakefile
- rdkafka
- resque
- restclient
- rubocop
- rubydocs
- ruboproof
- rubygems
- semconv
- sidekiq
- sinatra
- spanid
- toolset
- traceid
- traceresponse
- Untrace
- vitess
- webmocks
- yardoc
- traceparent
18 changes: 18 additions & 0 deletions .github/workflows/spell_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Check Spelling

on:
pull_request:

jobs:
spelling-check:
name: SPELLING check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: streetsidesoftware/cspell-action@v6
with:
# Files should be consistent with check:spelling files
files: |
**/*.md
config: .cspell.yml

Comment on lines +8 to +18

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 5 months ago

The best way to fix this issue is to explicitly specify the permissions required by the workflow or job. In this case, the job is only checking out code and running a spelling check on markdown files, so only minimal permissions are needed—specifically, read access to repository contents. No write access is required. The permissions block can be placed either at the top/root of the workflow (to apply to all jobs) or at the job level. Since there is a single job in this workflow, either placement is fine; placing it at the root is conventional and applies strict defaults if other jobs are ever added.
To fix:

  • Add a permissions: block immediately after the workflow name:, with at minimum contents: read.

Suggested changeset 1
.github/workflows/spell_check.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/spell_check.yml b/.github/workflows/spell_check.yml
--- a/.github/workflows/spell_check.yml
+++ b/.github/workflows/spell_check.yml
@@ -1,4 +1,6 @@
 name: Check Spelling
+permissions:
+  contents: read
 
 on:
   pull_request:
EOF
@@ -1,4 +1,6 @@
name: Check Spelling
permissions:
contents: read

on:
pull_request:
Copilot is powered by AI and may make mistakes. Always verify output.
Loading