Bump docker/setup-buildx-action from 4.1.0 to 4.2.0 (#4207) #11477
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| # The branches below must be a subset of the branches above | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| CodeQL-Build: | |
| permissions: | |
| actions: read # for github/codeql-action/init to get workflow details | |
| contents: read # for actions/checkout to fetch code | |
| security-events: write # for github/codeql-action/autobuild to send a status report | |
| runs-on: ubuntu-latest | |
| env: | |
| CC: /usr/bin/gcc-14 | |
| CXX: /usr/bin/g++-14 | |
| CXX_STANDARD: '17' | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| submodules: 'recursive' | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install -y --no-install-recommends --no-install-suggests \ | |
| build-essential \ | |
| cmake \ | |
| ninja-build \ | |
| gcc-14 \ | |
| g++-14 \ | |
| zlib1g-dev \ | |
| libssl-dev \ | |
| libcurl4-openssl-dev \ | |
| nlohmann-json3-dev \ | |
| libabsl-dev \ | |
| libprotobuf-dev \ | |
| libgrpc++-dev \ | |
| protobuf-compiler \ | |
| protobuf-compiler-grpc \ | |
| libgmock-dev \ | |
| libgtest-dev \ | |
| libbenchmark-dev | |
| - name: Install rapidyaml | |
| run: | | |
| sudo -E ./ci/install_thirdparty.sh --install-dir /usr/local --tags-file third_party_release --packages "ryml" | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 | |
| with: | |
| languages: cpp | |
| config: | | |
| paths-ignore: | |
| - third_party | |
| - name: Build (abiv2) | |
| run: | | |
| mkdir -p $HOME/build && cd $HOME/build | |
| cmake -G Ninja \ | |
| -C ${GITHUB_WORKSPACE}/test_common/cmake/all-options-abiv2-preview.cmake \ | |
| -DWITH_OPENTRACING=OFF \ | |
| "${GITHUB_WORKSPACE}" | |
| cmake --build . --parallel | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 |