| 
1 |  | -name: Spellcheck PR Diff  | 
 | 1 | +name: Check Spelling  | 
 | 2 | + | 
 | 3 | +# Comment management is handled through a secondary job, for details see:  | 
 | 4 | +# https://github.com/check-spelling/check-spelling/wiki/Feature%3A-Restricted-Permissions  | 
 | 5 | +#  | 
 | 6 | +# `jobs.comment-push` runs when a push is made to a repository and the `jobs.spelling` job needs to make a comment  | 
 | 7 | +#   (in odd cases, it might actually run just to collapse a comment, but that's fairly rare)  | 
 | 8 | +#   it needs `contents: write` in order to add a comment.  | 
 | 9 | +#  | 
 | 10 | +# `jobs.comment-pr` runs when a pull_request is made to a repository and the `jobs.spelling` job needs to make a comment  | 
 | 11 | +#   or collapse a comment (in the case where it had previously made a comment and now no longer needs to show a comment)  | 
 | 12 | +#   it needs `pull-requests: write` in order to manipulate those comments.  | 
 | 13 | + | 
 | 14 | +# Updating pull request branches is managed via comment handling.  | 
 | 15 | +# For details, see: https://github.com/check-spelling/check-spelling/wiki/Feature:-Update-expect-list  | 
 | 16 | +#  | 
 | 17 | +# These elements work together to make it happen:  | 
 | 18 | +#  | 
 | 19 | +# `on.issue_comment`  | 
 | 20 | +#   This event listens to comments by users asking to update the metadata.  | 
 | 21 | +#  | 
 | 22 | +# `jobs.update`  | 
 | 23 | +#   This job runs in response to an issue_comment and will push a new commit  | 
 | 24 | +#   to update the spelling metadata.  | 
 | 25 | +#  | 
 | 26 | +# `with.experimental_apply_changes_via_bot`  | 
 | 27 | +#   Tells the action to support and generate messages that enable it  | 
 | 28 | +#   to make a commit to update the spelling metadata.  | 
 | 29 | +#  | 
 | 30 | +# `with.ssh_key`  | 
 | 31 | +#   In order to trigger workflows when the commit is made, you can provide a  | 
 | 32 | +#   secret (typically, a write-enabled github deploy key).  | 
 | 33 | +#  | 
 | 34 | +#   For background, see: https://github.com/check-spelling/check-spelling/wiki/Feature:-Update-with-deploy-key  | 
 | 35 | + | 
 | 36 | +# Sarif reporting  | 
 | 37 | +#  | 
 | 38 | +# Access to Sarif reports is generally restricted (by GitHub) to members of the repository.  | 
 | 39 | +#  | 
 | 40 | +# Requires enabling `security-events: write`  | 
 | 41 | +# and configuring the action with `use_sarif: 1`  | 
 | 42 | +#  | 
 | 43 | +#   For information on the feature, see: https://github.com/check-spelling/check-spelling/wiki/Feature:-Sarif-output  | 
 | 44 | + | 
 | 45 | +# Minimal workflow structure:  | 
 | 46 | +#  | 
 | 47 | +# on:  | 
 | 48 | +#   push:  | 
 | 49 | +#     ...  | 
 | 50 | +#   pull_request_target:  | 
 | 51 | +#     ...  | 
 | 52 | +# jobs:  | 
 | 53 | +#   # you only want the spelling job, all others should be omitted  | 
 | 54 | +#   spelling:  | 
 | 55 | +#     # remove `security-events: write` and `use_sarif: 1`  | 
 | 56 | +#     # remove `experimental_apply_changes_via_bot: 1`  | 
 | 57 | +#     ... otherwise adjust the `with:` as you wish  | 
2 | 58 | 
 
  | 
3 | 59 | on:  | 
4 | 60 |   pull_request:  | 
5 | 61 |     branches:  | 
6 |  | -      - master  | 
 | 62 | +      - "**"  | 
7 | 63 | 
 
  | 
8 | 64 | jobs:  | 
9 |  | -  spellcheck:  | 
10 |  | -    name: Spellcheck PR Diff  | 
 | 65 | +  spelling:  | 
 | 66 | +    name: Check Spelling  | 
 | 67 | +    permissions:  | 
 | 68 | +      contents: read  | 
 | 69 | +      actions: read  | 
 | 70 | +      security-events: write  | 
 | 71 | +    outputs:  | 
 | 72 | +      followup: ${{ steps.spelling.outputs.followup }}  | 
11 | 73 |     runs-on: ubuntu-latest  | 
 | 74 | +    # if on repo to avoid failing runs on forks  | 
 | 75 | +    if: |  | 
 | 76 | +      github.repository == 'compiler-research/compiler-research.github.io'  | 
 | 77 | +        && (contains(github.event_name, 'pull_request'))  | 
 | 78 | +    concurrency:  | 
 | 79 | +      group: spelling-${{ github.event.pull_request.number || github.ref }}  | 
 | 80 | +      # note: If you use only_check_changed_files, you do not want cancel-in-progress  | 
 | 81 | +      cancel-in-progress: false  | 
12 | 82 |     steps:  | 
13 |  | -      - uses: actions/checkout@v4  | 
14 |  | -      - name: Install aspell  | 
15 |  | -        run: |  | 
16 |  | -          sudo apt-get install -y aspell aspell-en  | 
17 |  | -      - name: Set up Python  | 
18 |  | -        uses: actions/setup-python@v5  | 
19 |  | -        with:  | 
20 |  | -          python-version: 3.11  | 
21 |  | -      - uses: compiler-research/git-spell-check@master  | 
 | 83 | +      - name: check-spelling  | 
 | 84 | +        id: spelling  | 
 | 85 | +        uses: check-spelling/check-spelling@main  | 
22 | 86 |         with:  | 
23 |  | -          debug: 1  | 
24 |  | -      - name: Setup tmate session  | 
25 |  | -        if: ${{ !cancelled() && runner.debug }}  | 
26 |  | -        uses: mxschmitt/action-tmate@v3  | 
27 |  | -        # When debugging increase to a suitable value!  | 
28 |  | -        timeout-minutes: 30  | 
 | 87 | +          suppress_push_for_open_pull_request: ${{ github.actor != 'dependabot[bot]' && 1 }}  | 
 | 88 | +          checkout: true  | 
 | 89 | +          check_file_names: 1  | 
 | 90 | +          spell_check_this: check-spelling/spell-check-this@main  | 
 | 91 | +          post_comment: 0  | 
 | 92 | +          use_magic_file: 1  | 
 | 93 | +          report-timing: 1  | 
 | 94 | +          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  | 
 | 95 | +          experimental_apply_changes_via_bot: 1  | 
 | 96 | +          only_check_changed_files: true  | 
 | 97 | +          check_extra_dictionaries: ''  | 
 | 98 | +          dictionary_source_prefixes: '{"cspell": "https://raw.githubusercontent.com/streetsidesoftware/cspell-dicts/main/dictionaries/"}'  | 
 | 99 | +          extra_dictionaries: |  | 
 | 100 | +            cspell:aws/dict/aws.txt  | 
 | 101 | +            cspell:bash/samples/bash-words.txt  | 
 | 102 | +            cspell:companies/dict/companies.txt  | 
 | 103 | +            cspell:css/dict/css.txt  | 
 | 104 | +            cspell:data-science/dict/data-science-models.txt  | 
 | 105 | +            cspell:data-science/dict/data-science.txt  | 
 | 106 | +            cspell:data-science/dict/data-science-tools.txt  | 
 | 107 | +            cspell:en_shared/dict/acronyms.txt  | 
 | 108 | +            cspell:en_shared/dict/shared-additional-words.txt  | 
 | 109 | +            cspell:en_GB/en_GB.trie  | 
 | 110 | +            cspell:en_US/en_US.trie  | 
 | 111 | +            cspell:filetypes/src/filetypes.txt  | 
 | 112 | +            cspell:fonts/dict/fonts.txt  | 
 | 113 | +            cspell:fullstack/dict/fullstack.txt  | 
 | 114 | +            cspell:golang/dict/go.txt  | 
 | 115 | +            cspell:google/dict/google.txt  | 
 | 116 | +            cspell:html/dict/html.txt  | 
 | 117 | +            cspell:java/src/java.txt  | 
 | 118 | +            cspell:k8s/dict/k8s.txt  | 
 | 119 | +            cspell:mnemonics/dict/mnemonics.txt  | 
 | 120 | +            cspell:monkeyc/src/monkeyc_keywords.txt  | 
 | 121 | +            cspell:node/dict/node.txt  | 
 | 122 | +            cspell:npm/dict/npm.txt  | 
 | 123 | +            cspell:people-names/dict/people-names.txt  | 
 | 124 | +            cspell:python/dict/python.txt  | 
 | 125 | +            cspell:python/dict/python-common.txt  | 
 | 126 | +            cspell:shell/dict/shell-all-words.txt  | 
 | 127 | +            cspell:software-terms/dict/softwareTerms.txt  | 
 | 128 | +            cspell:software-terms/dict/webServices.txt  | 
 | 129 | +            cspell:sql/src/common-terms.txt  | 
 | 130 | +            cspell:sql/src/sql.txt  | 
 | 131 | +            cspell:sql/src/tsql.txt  | 
 | 132 | +            cspell:terraform/dict/terraform.txt  | 
 | 133 | +            cspell:typescript/dict/typescript.txt  | 
0 commit comments