ci(cpp): ctest until-pass:3——容错 CI runner glibc 2.39 tpp.c 断言回归 #1737
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 (SAST) | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| - cron: "0 3 * * 1" # weekly at 03:00 UTC (Mon) | |
| workflow_dispatch: | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| permissions: | |
| contents: read | |
| security-events: write | |
| jobs: | |
| analyze: | |
| name: Analyze (go) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - name: Checkout | |
| timeout-minutes: 3 | |
| uses: actions/checkout@v7 | |
| with: | |
| submodules: false | |
| - name: Setup Go | |
| timeout-minutes: 5 | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version-file: "go.mod" | |
| - name: Normalize Go toolchain env | |
| timeout-minutes: 2 | |
| shell: bash | |
| run: | | |
| go env -u GOROOT || true | |
| go env -u GOTOOLDIR || true | |
| go env -u GOTOOLCHAIN || true | |
| echo "GOCACHE=$RUNNER_TEMP/go-build-${{ github.run_id }}-${{ github.run_attempt }}" >> "$GITHUB_ENV" | |
| echo "GOMODCACHE=$RUNNER_TEMP/go-mod-${{ github.run_id }}" >> "$GITHUB_ENV" | |
| go version | |
| go env GOROOT GOTOOLDIR GOVERSION GOOS GOARCH | |
| - name: Initialize CodeQL | |
| timeout-minutes: 5 | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: go | |
| - name: Build (for Go extractor) | |
| timeout-minutes: 15 | |
| run: go build ./... | |
| - name: Perform CodeQL Analysis | |
| timeout-minutes: 10 | |
| uses: github/codeql-action/analyze@v4 |