github-advanced-security[bot] commented on code in PR #41442:
URL: https://github.com/apache/beam/pull/41442#discussion_r4605888713
##########
.github/workflows/build_wheels.yml:
##########
@@ -258,31 +263,15 @@
- uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1
if: ${{matrix.os_python.arch == 'aarch64'}}
name: Set up QEMU
- - name: Install cibuildwheel
- # note: sync cibuildwheel version with gradle task sdks:python:bdistPy*
steps
- run: pip install cibuildwheel==3.4.0 setuptools
- - name: Build wheel
+ - name: Build wheels
# Only build wheel if it is one of the target versions for this
platform, otherwise no-op
if: ${{ contains(matrix.os_python.python, matrix.py_version) }}
- working-directory: apache-beam-source
- env:
- CIBW_BUILD: ${{ matrix.py_version }}*
- # TODO: https://github.com/apache/beam/issues/23048
- CIBW_SKIP: "*-musllinux_*"
- CIBW_BEFORE_BUILD: pip install cython==0.29.36 numpy
--config-settings=setup-args="-Dallow-noblas=true" && pip install --upgrade
setuptools
- run: cibuildwheel --print-build-identifiers && cibuildwheel --output-dir
wheelhouse
- shell: bash
- - name: install sha512sum on MacOS
- if: startsWith(matrix.os_python.os, 'macos')
- run: brew install coreutils
- - name: Add checksums
- if: ${{ contains(matrix.os_python.python, matrix.py_version) }}
- working-directory: apache-beam-source/wheelhouse/
- run: |
- for file in *.whl; do
- sha512sum $file > ${file}.sha512
- done
- shell: bash
+ uses: ./.github/actions/build-python-wheels
Review Comment:
## zizmor /
use GitHub's dedicated self-repository syntax: use '$/...' instead of './...'
[Show more
details](https://github.com/apache/beam/security/code-scanning/3529)
##########
.github/workflows/build_wheels.yml:
##########
@@ -292,24 +281,14 @@
- name: Build RC wheels
# Only build wheel if it is one of the target versions for this
platform, otherwise no-op
if: ${{ needs.build_source.outputs.is_rc == 1 &&
contains(matrix.os_python.python, matrix.py_version) }}
- working-directory: apache-beam-source-rc
- env:
- CIBW_BUILD: ${{ matrix.py_version }}*
- # TODO: https://github.com/apache/beam/issues/23048
- CIBW_SKIP: "*-musllinux_*"
- CIBW_BEFORE_BUILD: pip install cython==0.29.36 numpy
--config-settings=setup-args="-Dallow-noblas=true" && pip install --upgrade
setuptools
- run: cibuildwheel --print-build-identifiers && cibuildwheel --output-dir
wheelhouse
- shell: bash
- - name: Add RC checksums
- if: ${{ needs.build_source.outputs.is_rc == 1 }}
- working-directory: apache-beam-source-rc/wheelhouse/
- run: |
- for file in *.whl; do
- sha512sum $file > ${file}.sha512
- done
- shell: bash
+ uses: ./.github/actions/build-python-wheels
Review Comment:
## zizmor /
use GitHub's dedicated self-repository syntax: use '$/...' instead of './...'
[Show more
details](https://github.com/apache/beam/security/code-scanning/3530)
##########
.github/workflows/republish_released_docker_containers.yml:
##########
@@ -104,3 +104,45 @@
--no-daemon \
--no-parallel
+ publish_python_wheels:
+ runs-on: [self-hosted, ubuntu-24.04, main]
+ timeout-minutes: 120
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v7
+ with:
+ ref: "release-${{ env.release }}-postrelease"
+ repository: apache/beam
+ persist-credentials: false
+ - name: Authenticate on GCP
+ uses:
google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093
+ with:
+ service_account: ${{ secrets.GCP_SA_EMAIL }}
+ credentials_json: ${{ secrets.GCP_SA_KEY }}
+ - name: Set up Cloud SDK
+ uses:
google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db
+ - name: Check if wheels are already published for commit
+ id: check_published
+ run: bash scripts/ci/run_snapshot_publish.sh postrelease-check
+ - name: Free Disk Space (Ubuntu)
+ if: steps.check_published.outputs.already_published != 'true'
+ uses: jlumbroso/[email protected]
+ - name: Install Python 3.11
+ if: steps.check_published.outputs.already_published != 'true'
+ uses: actions/setup-python@v7
+ with:
+ python-version: '3.11'
+ - name: Prepare Python source distribution
+ if: steps.check_published.outputs.already_published != 'true'
+ run: bash scripts/ci/run_snapshot_publish.sh postrelease-prepare-sdist
sdks/python/apache-beam-source
+ - name: Build Linux amd64 wheels
+ if: steps.check_published.outputs.already_published != 'true'
+ uses: ./.github/actions/build-python-wheels
Review Comment:
## zizmor /
use GitHub's dedicated self-repository syntax: use '$/...' instead of './...'
[Show more
details](https://github.com/apache/beam/security/code-scanning/3534)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]