Skip to content

Commit 06f2697

Browse files
committed
upload sarif
1 parent 7d6d3e8 commit 06f2697

1 file changed

Lines changed: 33 additions & 29 deletions

File tree

.github/workflows/spelling.yml

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,39 @@ on:
2525

2626
jobs:
2727
spelling:
28-
name: Check Spelling
29-
runs-on: ubuntu-latest
30-
permissions:
31-
contents: read
32-
pull-requests: read
33-
actions: read
34-
security-events: write
35-
outputs:
36-
followup: ${{ steps.spelling.outputs.followup }}
37-
if: ${{ github.event_name == 'pull_request' || github.event_name == 'push'}}
38-
concurrency:
39-
group: spelling-${{ github.event.pull_request.number || github.ref }}
40-
steps:
41-
- name: check-spelling
42-
id: spelling
43-
uses: check-spelling/check-spelling@main
44-
with:
45-
suppress_push_for_open_pull_request: ${{ github.actor != 'dependabot[bot]' && 1 }}
46-
checkout: true
47-
check_file_names: 0
48-
spell_check_this: check-spelling/spell-check-this@main
49-
use_magic_file: 1
50-
report-timing: 1
51-
warnings: bad-regex,deprecated-feature,large-file,limited-references,noisy-file,non-alpha-in-dictionary,token-is-substring,whitespace-in-dictionary,unsupported-configuration,no-files-to-check
52-
output: sarif
53-
use_sarif: ${{ (!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository)) && 1 }}
54-
extra_dictionary_limit: 20
55-
extra_dictionaries: cspell:software-terms/dict/softwareTerms.txt
56-
sarif_file: results.sarif
28+
- name: Check Spelling
29+
runs-on: ubuntu-latest
30+
permissions:
31+
contents: read
32+
pull-requests: read
33+
actions: read
34+
security-events: write
35+
outputs:
36+
followup: ${{ steps.spelling.outputs.followup }}
37+
if: ${{ github.event_name == 'pull_request' || github.event_name == 'push'}}
38+
concurrency:
39+
group: spelling-${{ github.event.pull_request.number || github.ref }}
40+
steps:
41+
- name: check-spelling
42+
id: spelling
43+
uses: check-spelling/check-spelling@main
44+
with:
45+
suppress_push_for_open_pull_request: ${{ github.actor != 'dependabot[bot]' && 1 }}
46+
checkout: true
47+
check_file_names: 0
48+
spell_check_this: check-spelling/spell-check-this@main
49+
use_magic_file: 1
50+
report-timing: 1
51+
warnings: bad-regex,deprecated-feature,large-file,limited-references,noisy-file,non-alpha-in-dictionary,token-is-substring,whitespace-in-dictionary,unsupported-configuration,no-files-to-check
52+
output: sarif
53+
use_sarif: ${{ (!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository)) && 1 }}
54+
extra_dictionary_limit: 20
55+
extra_dictionaries: cspell:software-terms/dict/softwareTerms.txt
56+
sarif_file: results.sarif
57+
- name: Upload SARIF to GitHub Code Scanning
58+
uses: github/codeql-action/upload-sarif@v3
59+
with:
60+
sarif_file: results.sarif
5761

5862
comment-push:
5963
name: Report (Push)

0 commit comments

Comments
 (0)