Skip to content

Commit dc9982b

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 230066d commit dc9982b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,11 +704,13 @@ jobs:
704704
runs-on: ubuntu-latest
705705
permissions:
706706
contents: write
707+
id-token: write # required for Azure login via OIDC
707708
needs:
708709
- create-linux-artifacts
709710
- create-macos-artifacts
710711
- windows_artifacts
711712
- prereqs
713+
environment: release
712714
if: |
713715
success() ||
714716
(needs.create-linux-artifacts.result == 'skipped' &&
@@ -751,6 +753,25 @@ jobs:
751753
name: linux-artifacts
752754
path: deb-package
753755

756+
- name: Log into Azure
757+
uses: azure/login@v2
758+
with:
759+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
760+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
761+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
762+
763+
- name: Check out repository (for akv-secret Action)
764+
uses: actions/checkout@v4
765+
with:
766+
path: git
767+
768+
- name: Download Linux GPG public key signature file
769+
uses: ./git/.github/actions/akv-secret
770+
with:
771+
vault: ${{ secrets.AZURE_VAULT }}
772+
secrets: |
773+
${{ secrets.LINUX_GPG_PUBLIC_SECRET_NAME }} base64> deb-package/msft-git-public.asc
774+
754775
- uses: actions/github-script@v6
755776
with:
756777
script: |

0 commit comments

Comments
 (0)