feat(core): Prefer deferred log events to better track failure #4608
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: "CodeQL" | |
| on: | |
| pull_request: | |
| branches: | |
| - "main" | |
| - "release/**" | |
| - "feature/*" | |
| permissions: {} | |
| jobs: | |
| analyze: | |
| name: Analyze | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: ["go", "actions"] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Go | |
| uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
| with: | |
| go-version-file: go.work | |
| if: ${{ matrix.language == 'go' }} | |
| - name: Initialize the CodeQL tools for scanning | |
| uses: github/codeql-action/init@16140ae1a102900babc80a33c44059580f687047 # v4.30.9 | |
| with: | |
| languages: ${{ matrix.language }} | |
| timeout-minutes: 5 | |
| - name: Autobuild | |
| uses: github/codeql-action/autobuild@16140ae1a102900babc80a33c44059580f687047 # v4.30.9 | |
| timeout-minutes: 10 | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@16140ae1a102900babc80a33c44059580f687047 # v4.30.9 | |
| with: | |
| category: "/language:${{matrix.language}}" | |
| timeout-minutes: 10 |