Skip to content

Commit 7053426

Browse files
committed
feat(codespell): Added codespell ci job
1 parent 41322e3 commit 7053426

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/codespell.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Codespell
2+
3+
on:
4+
push:
5+
paths:
6+
- '**/*' # Run on all files
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
codespell:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Harden the runner (Audit all outbound calls)
17+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
18+
with:
19+
egress-policy: audit
20+
21+
- name: Checkout
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
24+
- name: Run codespell
25+
uses: codespell-project/[email protected]
26+
with:
27+
check_filenames: true
28+
check_hidden: true
29+
skip: '*.ipynb,*.js,*.css,*.html,*.json,*.lock,*.min.js,*.min.css,*.csv,*.svg,*.xml,*.yml,*.yaml,*.toml,*.ini,*.cfg,*.param,*.pdef.xml' # Add file types/paths to skip
30+
# Optional: specify a custom dictionary
31+
# dictionary: .codespell/dictionary.txt
32+
# Optional: specify a codespell configuration file
33+
# codespell_args: --config .codespellrc
34+
# Optional: specify a list of words to ignore
35+
# ignore_words_list: word1,word2

0 commit comments

Comments
 (0)