Skip to content

Bump rojopolis/spellcheck-github-actions from 0.50.0 to 0.51.0 (#2658) #361

Bump rojopolis/spellcheck-github-actions from 0.50.0 to 0.51.0 (#2658)

Bump rojopolis/spellcheck-github-actions from 0.50.0 to 0.51.0 (#2658) #361

Workflow file for this run

name: code-ql
on:
push:
branches:
- main
- release/*
pull_request:
branches:
- main
- release/*
- dotnet-vnext
schedule:
- cron: '0 8 * * MON'
workflow_dispatch:
permissions: {}
jobs:
analysis:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'actions', 'csharp' ]
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
filter: 'tree:0'
show-progress: false
- name: Initialize CodeQL
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
with:
build-mode: none
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
with:
category: '/language:${{ matrix.language }}'
code-ql:
if: ${{ !cancelled() }}
needs: [ analysis ]
runs-on: ubuntu-latest
steps:
- name: Report status
shell: bash
env:
SCAN_SUCCESS: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
run: |
if [ "${SCAN_SUCCESS}" == "true" ]
then
echo 'CodeQL analysis successful ✅'
else
echo '::error title=CodeQL::CodeQL analysis failed ❌'
exit 1
fi