name: CodeQL on: push: branches: [ develop, main ] pull_request: branches: [ develop, main ] concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.sha }} cancel-in-progress: true jobs: analyze: strategy: fail-fast: false matrix: language: [ csharp ] permissions: security-events: write runs-on: ubuntu-22.04 steps: - name: Checkout Repository uses: actions/checkout@v3 - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} - name: Autobuild uses: github/codeql-action/autobuild@v2 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2