Skip to content

Commit 191b4e2

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 69ebf5f commit 191b4e2

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
@@ -604,11 +604,16 @@ jobs:
604604
runs-on: ubuntu-latest
605605
permissions:
606606
contents: write
607+
id-token: write # required for Azure login via OIDC
607608
needs:
608609
- create-linux-artifacts
609610
- create-macos-artifacts
610611
- windows_artifacts
611612
- prereqs
613+
env:
614+
AZURE_VAULT: ${{ secrets.AZURE_VAULT }}
615+
GPG_PUBLIC_KEY_SECRET_NAME: ${{ secrets.GPG_PUBLIC_KEY_SECRET_NAME }}
616+
environment: release
612617
if: |
613618
success() ||
614619
(needs.create-linux-artifacts.result == 'skipped' &&
@@ -651,6 +656,20 @@ jobs:
651656
name: linux-artifacts
652657
path: deb-package
653658

659+
- name: Log into Azure
660+
uses: azure/login@v2
661+
with:
662+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
663+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
664+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
665+
666+
- name: Download GPG public key signature file
667+
run: |
668+
az keyvault secret show --name "$GPG_PUBLIC_KEY_SECRET_NAME" \
669+
--vault-name "$AZURE_VAULT" --query "value" \
670+
| sed -e 's/^"//' -e 's/"$//' | base64 -d >msft-git-public.asc
671+
mv msft-git-public.asc deb-package
672+
654673
- uses: actions/github-script@v6
655674
with:
656675
script: |

0 commit comments

Comments
 (0)