[refactor]: use strings.Builder to improve performance #16623
  
    
      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: CIT Crossdock | |
| on: | |
| merge_group: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }} | |
| cancel-in-progress: true | |
| # See https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions | |
| permissions: | |
| contents: read | |
| jobs: | |
| crossdock: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 | |
| with: | |
| egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| submodules: true | |
| - name: Fetch git tags | |
| run: | | |
| git fetch --prune --unshallow --tags | |
| - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | |
| with: | |
| go-version: 1.25.x | |
| - uses: ./.github/actions/setup-branch | |
| - run: make install-ci | |
| - uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0 | |
| - name: Build, test, and publish crossdock image | |
| run: bash scripts/build/build-crossdock.sh | |
| env: | |
| DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | |
| QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }} | |
| - name: Output crossdock logs | |
| run: make crossdock-logs | |
| if: ${{ failure() }} |