pull_request:
branches:
- "**"
- tags-ignore:
- - "**"
types:
- - 'opened'
- - 'reopened'
- - 'synchronize'
+ - "opened"
+ - "reopened"
+ - "synchronize"
jobs:
spelling:
permissions:
# contents-read is needed to checkout in private repositories
contents: read
+ # pull-requests-read is needed for suppress_push_for_open_pull_request in private repositories
+ pull-requests: read
# actions-read is needed (possibly only for private repositories)
# to identify the workflow's filename until
# https://github.com/actions/runner/issues/853 is fixed
outputs:
followup: ${{ steps.spelling.outputs.followup }}
runs-on: ubuntu-latest
- if: "contains(github.event_name, 'pull_request') || github.event_name == 'push'"
+ if: ${{ contains(github.event_name, 'pull_request') || github.event_name == 'push' }}
concurrency:
group: spelling-${{ github.event.pull_request.number || github.ref }}
# note: If you use only_check_changed_files, you do not want cancel-in-progress
cancel-in-progress: true
steps:
- - name: check-spelling
- id: spelling
- uses: check-spelling/check-spelling@v0.0.21
- with:
- config: .github/actions/spell-check
- checkout: true
- spell_check_this: check-spelling/spell-check-this@prerelease
- post_comment: 0
- use_sarif: ${{ (!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository)) && 1 }}
- extra_dictionaries:
- cspell:software-terms/src/software-terms.txt
- cspell:python/src/python/python-lib.txt
- cspell:node/node.txt
- cspell:python/src/common/extra.txt
- cspell:fullstack/fullstack.txt
- cspell:html/html.txt
- cspell:aws/aws.txt
- cspell:npm/npm.txt
- cspell:cpp/src/stdlib-cpp.txt
- cspell:python/src/python/python.txt
- cspell:django/django.txt
- check_extra_dictionaries: ''
+ - name: check-spelling
+ id: spelling
+ uses: check-spelling/check-spelling@v0.0.24
+ with:
+ config: .github/actions/spell-check
+ suppress_push_for_open_pull_request: ${{ github.actor != 'dependabot[bot]' && 1 }}
+ checkout: true
+ check_file_names: 1
+ spell_check_this: powerdns/pdns@master
+ post_comment: 0
+ use_magic_file: 1
+ warnings: bad-regex,binary-file,deprecated-feature,ignored-expect-variant,large-file,limited-references,no-newline-at-eof,noisy-file,non-alpha-in-dictionary,token-is-substring,unexpected-line-ending,whitespace-in-dictionary,minified-file,unsupported-configuration,no-files-to-check,unclosed-block-ignore-begin,unclosed-block-ignore-end
+ use_sarif: ${{ (!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository)) && 1 }}
+ extra_dictionaries: |
+ cspell:software-terms/dict/softwareTerms.txt
+ cspell:python/src/common/extra.txt
+ cspell:node/dict/node.txt
+ cspell:php/dict/php.txt
+ cspell:python/src/python/python-lib.txt
+ cspell:python/src/python/python.txt
+ cspell:fullstack/dict/fullstack.txt
+ cspell:golang/dict/go.txt
+ cspell:aws/aws.txt
+ cspell:k8s/dict/k8s.txt
+ cspell:cpp/src/stdlib-cpp.txt
+ cspell:filetypes/filetypes.txt
+ cspell:typescript/dict/typescript.txt
+ cspell:html/dict/html.txt
+ cspell:django/dict/django.txt
+ cspell:java/src/java.txt
+ cspell:dotnet/dict/dotnet.txt
+ cspell:r/src/r.txt
+ cspell:npm/dict/npm.txt
+ cspell:lisp/lisp.txt
+ cspell:cpp/src/lang-jargon.txt
+ cspell:rust/dict/rust.txt
+ cspell:cpp/src/lang-keywords.txt
+ cspell:latex/dict/latex.txt
+ cspell:cpp/src/stdlib-c.txt
+ cspell:cpp/src/ecosystem.txt
+ cspell:lua/dict/lua.txt
+ cspell:java/src/java-terms.txt
+ check_extra_dictionaries: ''