Skip to content

Commit 4d09afc

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 139b0fe commit 4d09afc

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,11 +764,13 @@ jobs:
764764
runs-on: ubuntu-latest
765765
permissions:
766766
contents: write
767+
id-token: write # required for Azure login via OIDC
767768
needs:
768769
- create-linux-artifacts
769770
- create-macos-artifacts
770771
- windows_artifacts
771772
- prereqs
773+
environment: release
772774
if: |
773775
success() ||
774776
(needs.create-linux-artifacts.result == 'skipped' &&
@@ -817,6 +819,25 @@ jobs:
817819
name: linux-arm64
818820
path: deb-package
819821

822+
- name: Log into Azure
823+
uses: azure/login@v3
824+
with:
825+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
826+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
827+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
828+
829+
- name: Check out repository (for akv-secret Action)
830+
uses: actions/checkout@v6
831+
with:
832+
path: git
833+
834+
- name: Download Linux GPG public key signature file
835+
uses: ./git/.github/actions/akv-secret
836+
with:
837+
vault: ${{ secrets.AZURE_VAULT }}
838+
secrets: |
839+
${{ secrets.LINUX_GPG_PUBLIC_SECRET_NAME }} base64> deb-package/msft-git-public.asc
840+
820841
- uses: actions/github-script@v9
821842
with:
822843
script: |

0 commit comments

Comments
 (0)