From 1b674cdfec1674f88b61e7a74fff75071b9424c3 Mon Sep 17 00:00:00 2001 From: nandahkrishna Date: Thu, 25 Mar 2021 01:30:32 +0530 Subject: [PATCH] workflows: enable commit signing for BrewTestBot --- .github/workflows/sorbet.yml | 7 +++++++ .github/workflows/spdx.yml | 6 ++++++ .github/workflows/update-manpage.yml | 6 ++++++ .github/workflows/vendor-gems.yml | 6 ++++++ 4 files changed, 25 insertions(+) diff --git a/.github/workflows/sorbet.yml b/.github/workflows/sorbet.yml index 0344c63dd1..c6b7d49d3b 100644 --- a/.github/workflows/sorbet.yml +++ b/.github/workflows/sorbet.yml @@ -24,8 +24,15 @@ jobs: with: username: BrewTestBot + - name: Set up commit signing + uses: Homebrew/actions/setup-commit-signing@master + with: + signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }} + - name: Update RBI files id: update + env: + GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} run: | git fetch origin diff --git a/.github/workflows/spdx.yml b/.github/workflows/spdx.yml index 224d13158d..3ec800e799 100644 --- a/.github/workflows/spdx.yml +++ b/.github/workflows/spdx.yml @@ -21,11 +21,17 @@ jobs: with: username: BrewTestBot + - name: Set up commit signing + uses: Homebrew/actions/setup-commit-signing@master + with: + signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }} + - name: Update SPDX license data id: update env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} run: | git fetch origin diff --git a/.github/workflows/update-manpage.yml b/.github/workflows/update-manpage.yml index 66ac852d53..d43619b7d8 100644 --- a/.github/workflows/update-manpage.yml +++ b/.github/workflows/update-manpage.yml @@ -31,6 +31,11 @@ jobs: with: username: BrewTestBot + - name: Set up commit signing + uses: Homebrew/actions/setup-commit-signing@master + with: + signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }} + - name: Update maintainers, manpage and completions id: update run: | @@ -65,6 +70,7 @@ jobs: fi env: HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} + GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} - name: Push commits if: steps.update.outputs.committed == 'true' diff --git a/.github/workflows/vendor-gems.yml b/.github/workflows/vendor-gems.yml index 46b3d454b0..6a3e475bdb 100644 --- a/.github/workflows/vendor-gems.yml +++ b/.github/workflows/vendor-gems.yml @@ -28,6 +28,10 @@ jobs: uses: Homebrew/actions/git-user-config@master with: username: BrewTestBot + - name: Set up commit signing + uses: Homebrew/actions/setup-commit-signing@master + with: + signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }} - name: Check out pull request id: checkout run: | @@ -43,6 +47,7 @@ jobs: - name: Vendor Gems env: GEM_NAME: ${{ steps.checkout.outputs.gem_name }} + GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} run: | set -u @@ -54,6 +59,7 @@ jobs: - name: Update RBI files env: GEM_NAME: ${{ steps.checkout.outputs.gem_name }} + GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} run: | set -u