Bump rojopolis/spellcheck-github-actions from 0.53.0 to 0.54.0 #711
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: lint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release/* | |
| paths-ignore: | |
| - '**/*.gitattributes' | |
| - '**/*.gitignore' | |
| - '**/*.md' | |
| pull_request: | |
| branches: | |
| - main | |
| - release/* | |
| - dotnet-vnext | |
| workflow_dispatch: | |
| permissions: {} | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_COLOR: 3 | |
| POWERSHELL_YAML_VERSION: '0.4.12' | |
| PSSCRIPTANALYZER_VERSION: '1.24.0' | |
| TERM: xterm | |
| ZIZMOR_VERSION: '1.13.0' | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| filter: 'tree:0' | |
| persist-credentials: false | |
| show-progress: false | |
| - name: Add actionlint problem matcher | |
| run: echo "::add-matcher::.github/actionlint-matcher.json" | |
| - name: Lint workflows with actionlint | |
| uses: docker://rhysd/actionlint:1.7.7@sha256:887a259a5a534f3c4f36cb02dca341673c6089431057242cdc931e9f133147e9 | |
| with: | |
| args: -color | |
| - name: Lint workflows with zizmor | |
| uses: zizmorcore/zizmor-action@e673c3917a1aef3c65c972347ed84ccd013ecda4 # v0.2.0 | |
| with: | |
| persona: pedantic | |
| version: ${{ env.ZIZMOR_VERSION }} | |
| - name: Lint PowerShell in workflows | |
| uses: martincostello/lint-actions-powershell@5942e3350ee5bd8f8933cec4e1185d13f0ea688f # v1.0.0 | |
| with: | |
| powershell-yaml-version: ${{ env.POWERSHELL_YAML_VERSION }} | |
| psscriptanalyzer-version: ${{ env.PSSCRIPTANALYZER_VERSION }} | |
| treat-warnings-as-errors: true | |
| - name: Lint PowerShell scripts | |
| shell: pwsh | |
| run: | | |
| $settings = @{ | |
| IncludeDefaultRules = $true | |
| Severity = @("Error", "Warning") | |
| } | |
| $issues = Invoke-ScriptAnalyzer -Path ${env:GITHUB_WORKSPACE} -Recurse -ReportSummary -Settings $settings | |
| foreach ($issue in $issues) { | |
| $severity = $issue.Severity.ToString() | |
| $level = $severity.Contains("Error") ? "error" : $severity.Contains("Warning") ? "warning" : "notice" | |
| Write-Output "::${level} file=$($issue.ScriptName),line=$($issue.Line),title=PSScriptAnalyzer::$($issue.Message)" | |
| } | |
| if ($issues.Count -gt 0) { | |
| exit 1 | |
| } |