This is an automated email from the ASF dual-hosted git repository.

vterentev pushed a commit to branch add-mask
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 726c96e8a8b5f400af5298242b9962dd5d590063
Author: Vitaly Terentyev <[email protected]>
AuthorDate: Thu Aug 14 10:37:13 2025 +0400

    Add mask for PyPI API token
---
 .github/workflows/finalize_release.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/finalize_release.yml 
b/.github/workflows/finalize_release.yml
index 5180fa9a481..01daab24db9 100644
--- a/.github/workflows/finalize_release.yml
+++ b/.github/workflows/finalize_release.yml
@@ -93,8 +93,10 @@ jobs:
         echo "::add-mask::$PYPI_PASSWORD"
     - name: Validate PyPi id/password
       run: |
-        echo "::add-mask::${{ github.event.inputs.PYPI_API_TOKEN }}"
-        if [ "${{ github.event.inputs.PYPI_API_TOKEN }}" == "" ]
+        # Workaround for Actions bug - 
https://github.com/actions/runner/issues/643
+        PYPI_API_TOKEN=$(jq -r '.inputs.PYPI_API_TOKEN' $GITHUB_EVENT_PATH)
+        echo "::add-mask::$PYPI_API_TOKEN"
+        if [ "$PYPI_API_TOKEN" == "" ]
         then
           echo "Must provide a PyPi password to publish artifacts to PyPi"
           exit 1

Reply via email to