Skip to content

Commit

Permalink
build-git-installers: publish gpg public key
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ldennington authored and dscho committed Nov 14, 2023
1 parent e1002c3 commit 04e8f54
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build-git-installers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,10 @@ jobs:
create-github-release:
runs-on: ubuntu-latest
needs: [validate-installers]
env:
AZURE_VAULT: ${{ secrets.AZURE_VAULT }}
GPG_PUBLIC_KEY_SECRET_NAME: ${{ secrets.GPG_PUBLIC_KEY_SECRET_NAME }}
environment: release
if: |
success() ||
(needs.create-linux-artifacts.result == 'skipped' &&
Expand Down Expand Up @@ -611,6 +615,19 @@ jobs:
with:
name: linux-artifacts
path: deb-package

- name: Log into Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Download GPG public key signature file
run: |
az keyvault secret show --name "$GPG_PUBLIC_KEY_SECRET_NAME" \
--vault-name "$AZURE_VAULT" --query "value" \
| sed -e 's/^"//' -e 's/"$//' | base64 -d >msft-git-public.asc
mv msft-git-public.asc deb-package
- uses: actions/github-script@v6
with:
script: |
Expand Down

0 comments on commit 04e8f54

Please sign in to comment.