mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix(ci): robust SHA passing via artifact to bypass secret masking (#4412)
This commit is contained in:
parent
1e1b9e9a86
commit
f4db2a33c2
2 changed files with 69 additions and 11 deletions
13
.github/workflows/create-or-promote-release.yml
vendored
13
.github/workflows/create-or-promote-release.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue