Skip to content

Commit 07f6052

Browse files
ldenningtondscho
authored andcommitted
build-git-installers: publish gpg public key
Update build-git-installers workflow to publish `microsoft/git`'s GPG public key as part of each release. Add explanation for how to use this key to verify the Debian package's signature to the README.
1 parent 1f99600 commit 07f6052

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/build-git-installers.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,11 +630,16 @@ jobs:
630630
runs-on: ubuntu-latest
631631
permissions:
632632
contents: write
633+
id-token: write # required for Azure login via OIDC
633634
needs:
634635
- create-linux-artifacts
635636
- create-macos-artifacts
636637
- windows_artifacts
637638
- prereqs
639+
env:
640+
AZURE_VAULT: ${{ secrets.AZURE_VAULT }}
641+
GPG_PUBLIC_KEY_SECRET_NAME: ${{ secrets.GPG_PUBLIC_KEY_SECRET_NAME }}
642+
environment: release
638643
if: |
639644
success() ||
640645
(needs.create-linux-artifacts.result == 'skipped' &&
@@ -677,6 +682,20 @@ jobs:
677682
name: linux-artifacts
678683
path: deb-package
679684

685+
- name: Log into Azure
686+
uses: azure/login@v2
687+
with:
688+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
689+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
690+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
691+
692+
- name: Download GPG public key signature file
693+
run: |
694+
az keyvault secret show --name "$GPG_PUBLIC_KEY_SECRET_NAME" \
695+
--vault-name "$AZURE_VAULT" --query "value" \
696+
| sed -e 's/^"//' -e 's/"$//' | base64 -d >msft-git-public.asc
697+
mv msft-git-public.asc deb-package
698+
680699
- uses: actions/github-script@v6
681700
with:
682701
script: |

0 commit comments

Comments
 (0)