Revise security guidelines for XSS and CSR #267
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check Spelling | ||
| on: | ||
| push: | ||
| branches: | ||
| - "**" | ||
| paths: | ||
| - "**/routes/**" | ||
| - "**.mdx" | ||
| pull_request_target: | ||
| branches: | ||
| - "**" | ||
| paths: | ||
| - "**/routes/**" | ||
| - "**.mdx" | ||
| types: | ||
| - "opened" | ||
| - "reopened" | ||
| - "synchronize" | ||
| issue_comment: | ||
| types: | ||
| - "created" | ||
| schedule: | ||
| - cron: "0 12 * * *" | ||
| jobs: | ||
| spelling: | ||
| - name: Check Spelling | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| actions: read | ||
| security-events: write | ||
| outputs: | ||
| followup: ${{ steps.spelling.outputs.followup }} | ||
| if: ${{ github.event_name == 'pull_request' || github.event_name == 'push'}} | ||
| concurrency: | ||
| group: spelling-${{ github.event.pull_request.number || github.ref }} | ||
| steps: | ||
| - name: check-spelling | ||
| id: spelling | ||
| uses: check-spelling/check-spelling@main | ||
| with: | ||
| suppress_push_for_open_pull_request: ${{ github.actor != 'dependabot[bot]' && 1 }} | ||
| checkout: true | ||
| check_file_names: 0 | ||
| spell_check_this: check-spelling/spell-check-this@main | ||
| use_magic_file: 1 | ||
| report-timing: 1 | ||
| 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 | ||
| output: sarif | ||
| use_sarif: ${{ (!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository)) && 1 }} | ||
| extra_dictionary_limit: 20 | ||
| extra_dictionaries: cspell:software-terms/dict/softwareTerms.txt | ||
| sarif_file: results.sarif | ||
| - name: Upload SARIF to GitHub Code Scanning | ||
| uses: github/codeql-action/upload-sarif@v3 | ||
| with: | ||
| sarif_file: results.sarif | ||
| comment-push: | ||
| name: Report (Push) | ||
| runs-on: ubuntu-latest | ||
| needs: spelling | ||
| permissions: | ||
| contents: write | ||
| if: (success() || failure()) && needs.spelling.outputs.followup && github.event_name == 'push' | ||
| steps: | ||
| - name: comment | ||
| uses: check-spelling/check-spelling@main | ||
| with: | ||
| checkout: true | ||
| spell_check_this: check-spelling/spell-check-this@main | ||
| task: ${{ needs.spelling.outputs.followup }} | ||
| update: | ||
| name: Update PR | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| runs-on: ubuntu-latest | ||
| if: ${{ | ||
| github.event_name == 'issue_comment' && | ||
| github.event.issue.pull_request && | ||
| contains(github.event.comment.body, '@check-spelling-bot apply') | ||
| }} | ||
| concurrency: | ||
| group: spelling-update-${{ github.event.issue.number }} | ||
| cancel-in-progress: false | ||
| steps: | ||
| - name: apply spelling updates | ||
| uses: check-spelling/check-spelling@main | ||
| with: | ||
| checkout: true | ||
| spell_check_this: check-spelling/spell-check-this@main | ||
| task: ${{ needs.spelling.outputs.followup }} | ||