diff --git a/.github/scripts/codespell.sh b/.github/scripts/codespell.sh new file mode 100644 index 0000000000..5f35f93500 --- /dev/null +++ b/.github/scripts/codespell.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +set -ex + +SCAN_RESULT=`codespell -H --quiet-level=3 --skip="*.h,*.cmake,*.c,*.hpp,*.cpp,*.sh,*.py,test/supp/*.supp,./.venv" --ignore-words-list="ASSER,Tne,ba,BA"` +echo -e "${SCAN_RESULT}" diff --git a/.github/workflows/reusable_checks.yml b/.github/workflows/reusable_checks.yml index e3e264b0db..bef636197f 100644 --- a/.github/workflows/reusable_checks.yml +++ b/.github/workflows/reusable_checks.yml @@ -29,7 +29,7 @@ jobs: python3 -m venv .venv . .venv/bin/activate echo "$PATH" >> $GITHUB_PATH - python3 -m pip install bandit + python3 -m pip install bandit codespell - name: Configure CMake run: > @@ -55,7 +55,11 @@ jobs: - name: Run a spell check uses: crate-ci/typos@b63f421581dce830bda2f597a678cb7776b41877 # v1.18.2 with: - config: ./.github/workflows/.spellcheck-conf.toml + config: ./.github/workflows/.spellcheck-conf.toml + + - name: Run codespell + run: | + bash .github/scripts/codespell.sh # Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv - name: Run Bandit diff --git "a/\357\200\215\357\200\215" "b/\357\200\215\357\200\215" new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ "b/\357\200\215\357\200\215" @@ -0,0 +1 @@ +