github-advanced-security[bot] commented on code in PR #41432:
URL: https://github.com/apache/beam/pull/41432#discussion_r4604907106
##########
.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
+ with:
+ package-dir: sdks/python/apache-beam-source
+ output-dir: wheelhouse
+ build-identifiers: ${{
steps.check_published.outputs.build_identifiers }}
+ archs-linux: x86_64
+ - name: Publish wheels to GCS
+ if: steps.check_published.outputs.already_published != 'true'
+ run: bash scripts/ci/run_snapshot_publish.sh postrelease-publish
wheelhouse
Review Comment:
## CodeQL / Workflow does not contain permissions
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN.
Consider setting an explicit permissions block, using the following as a
minimal starting point: {{contents: read}}
[Show more
details](https://github.com/apache/beam/security/code-scanning/3535)
--
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]