From 49139740f846586480ed5ea96624099fcac42cfd Mon Sep 17 00:00:00 2001 From: Gordon Leigh Date: Fri, 4 Oct 2024 21:39:39 +0200 Subject: [PATCH] Build: set up CI commit signing --- .github/workflows/release.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a8a9a87..f8e8c17 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -43,12 +43,24 @@ jobs: - name: Configure Git shell: bash run: | + git config gpg.format ssh + git config user.signingkey "${SSH_SIGNING_KEY_PUB}" + git config commit.gpgsign true git config user.name "${{ github.actor }}" git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" + - name: Add signing key + shell: bash + run: | + ssh-agent -a /tmp/ssh-agent-sock + ssh-add - <<< "${SSH_SIGNING_KEY}" + env: + SSH_SIGNING_KEY: ${{ secrets.SSH_SIGNING_KEY }} + - name: Release run: npm run release env: + SSH_AUTH_SOCK: /tmp/ssh-agent-sock GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_CONFIG_PROVENANCE: true