Skip to content

Commit 372d8f7

Browse files
SashaMITdaywalker90
authored andcommitted
ci: bind GPG keyid via env before shell in release-publish
Per review: keyid comes from crazy-max/ghaction-import-gpg parsing a repo-owned secret, so practical risk is low; bind it anyway so every run: block in the release path follows the same env-first pattern and the invariant does not depend on that action's output staying trusted. Made-with: Cursor Signed-off-by: SashaMIT <sash.t.mitchell@gmail.com>
1 parent aa39561 commit 372d8f7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release-publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ jobs:
3535
trust_level: 5
3636

3737
- name: Set default GPG key
38-
run: echo "default-key ${{ steps.gpg.outputs.keyid }}" >> ~/.gnupg/gpg.conf
38+
env:
39+
GPG_KEYID: ${{ steps.gpg.outputs.keyid }}
40+
run: echo "default-key $GPG_KEYID" >> ~/.gnupg/gpg.conf
3941

4042
- name: Sign release
4143
run: tools/build-release.sh --without-zip sign

0 commit comments

Comments
 (0)