github-advanced-security[bot] commented on code in PR #41432:
URL: https://github.com/apache/beam/pull/41432#discussion_r4603461580


##########
.github/workflows/build_wheels.yml:
##########
@@ -302,34 +285,18 @@
     - 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 }}*
+      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,46 @@
           --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)



##########
.github/workflows/build_wheels.yml:
##########
@@ -258,41 +263,19 @@
     - 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 }}*
+      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)



-- 
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]

Reply via email to