fix(ci): robust SHA passing via artifact to bypass secret masking (#4412)

This commit is contained in:
James Rich 2026-02-02 13:21:54 -06:00 committed by GitHub
parent 1e1b9e9a86
commit f4db2a33c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 69 additions and 11 deletions

View file

@ -271,9 +271,20 @@ jobs:
exit 1
fi
echo "release_commit_sha=$SHA" >> $GITHUB_OUTPUT
# Save SHA to file for artifact upload (bypassing secret masking in outputs)
echo "$SHA" > release_sha.txt
# We don't output release_commit_sha to GITHUB_OUTPUT anymore to avoid it being dropped if masked.
# Downstream workflows will read the artifact.
shell: bash
- name: Upload Release SHA Artifact
uses: actions/upload-artifact@v4
with:
name: release_sha
path: release_sha.txt
retention-days: 1
call-release-workflow:
if: ${{ !inputs.dry_run && inputs.channel == 'internal' }}
needs: determine-tags