-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206675 from Homebrew/ww/ssh-signing
ci: switch to SSH signing everywhere
- Loading branch information
Showing
6 changed files
with
12 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,15 +47,15 @@ jobs: | |
- name: Set up commit signing | ||
uses: Homebrew/actions/setup-commit-signing@master | ||
with: | ||
signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }} | ||
ssh: true | ||
signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }} | ||
|
||
- name: Bump formulae | ||
env: | ||
HOMEBREW_TEST_BOT_AUTOBUMP: 1 | ||
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_CORE_REPO_WORKFLOW_TOKEN }} | ||
HOMEBREW_GIT_COMMITTER_NAME: BrewTestBot | ||
HOMEBREW_GIT_COMMITTER_EMAIL: [email protected] | ||
HOMEBREW_GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} | ||
FORMULAE: ${{ inputs.formulae }} | ||
run: | | ||
BREW_BUMP=(brew bump --no-fork --open-pr --formulae) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,14 +152,14 @@ jobs: | |
- name: Set up commit signing | ||
uses: Homebrew/actions/setup-commit-signing@master | ||
with: | ||
signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }} | ||
ssh: true | ||
signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }} | ||
|
||
- name: Pull PR | ||
id: pr-pull | ||
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }} | ||
env: | ||
BREWTESTBOT_NAME_EMAIL: "BrewTestBot <[email protected]>" | ||
HOMEBREW_GPG_PASSPHRASE: ${{ inputs.autosquash && secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} | ||
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_CORE_PUBLIC_REPO_EMAIL_TOKEN }} | ||
MESSAGE: ${{ inputs.message }} | ||
AUTOSQUASH_FLAG: ${{ inputs.autosquash && '--autosquash' || '' }} | ||
|
@@ -193,7 +193,6 @@ jobs: | |
working-directory: ${{steps.pr-pull.outputs.bottle_path}} | ||
env: | ||
BREWTESTBOT_NAME_EMAIL: "BrewTestBot <[email protected]>" | ||
HOMEBREW_GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} | ||
HOMEBREW_GITHUB_PACKAGES_USER: brewtestbot | ||
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{secrets.HOMEBREW_CORE_GITHUB_PACKAGES_TOKEN}} | ||
WARN_ON_UPLOAD_FAILURE_FLAG: ${{inputs.warn_on_upload_failure && '--warn-on-upload-failure' || ''}} | ||
|
@@ -216,7 +215,6 @@ jobs: | |
env: | ||
GIT_COMMITTER_NAME: ${{ steps.git-user-config.outputs.name }} | ||
GIT_COMMITTER_EMAIL: ${{ steps.git-user-config.outputs.email }} | ||
HOMEBREW_GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} | ||
|
||
- name: Open replacement pull request | ||
id: create-pr | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -233,7 +233,8 @@ jobs: | |
- name: Set up commit signing | ||
uses: Homebrew/actions/setup-commit-signing@master | ||
with: | ||
signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }} | ||
ssh: true | ||
signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }} | ||
|
||
- name: Generate build provenance | ||
uses: actions/attest-build-provenance@520d128f165991a6c774bcb264f323e3d70747f4 # v2.2.0 | ||
|
@@ -249,7 +250,6 @@ jobs: | |
env: | ||
HOMEBREW_GITHUB_PACKAGES_USER: brewtestbot | ||
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{secrets.HOMEBREW_CORE_GITHUB_PACKAGES_TOKEN}} | ||
HOMEBREW_GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} | ||
BREWTESTBOT_NAME_EMAIL: "BrewTestBot <[email protected]>" | ||
HOMEBREW_CORE_PATH: ${{steps.set-up-homebrew.outputs.repository-path}} | ||
working-directory: ${{ env.BOTTLES_DIR }} | ||
|
@@ -267,7 +267,6 @@ jobs: | |
env: | ||
GIT_COMMITTER_NAME: BrewTestBot | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
HOMEBREW_GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} | ||
|
||
- name: Open PR with bottle commit | ||
id: create-pr | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,7 +170,8 @@ jobs: | |
- name: Set up commit signing | ||
uses: Homebrew/actions/setup-commit-signing@master | ||
with: | ||
signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }} | ||
ssh: true | ||
signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }} | ||
|
||
- name: Generate build provenance | ||
uses: actions/attest-build-provenance@520d128f165991a6c774bcb264f323e3d70747f4 # v2.2.0 | ||
|
@@ -186,7 +187,6 @@ jobs: | |
env: | ||
HOMEBREW_GITHUB_PACKAGES_USER: brewtestbot | ||
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{secrets.HOMEBREW_CORE_GITHUB_PACKAGES_TOKEN}} | ||
HOMEBREW_GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} | ||
BREWTESTBOT_NAME_EMAIL: "BrewTestBot <[email protected]>" | ||
HOMEBREW_CORE_PATH: ${{steps.set-up-homebrew.outputs.repository-path}} | ||
working-directory: ${{ env.BOTTLES_DIR }} | ||
|
@@ -204,7 +204,6 @@ jobs: | |
env: | ||
GIT_COMMITTER_NAME: BrewTestBot | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
HOMEBREW_GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} | ||
|
||
- name: Open PR with bottle commit | ||
id: create-pr | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -299,7 +299,8 @@ jobs: | |
- name: Set up commit signing | ||
uses: Homebrew/actions/setup-commit-signing@master | ||
with: | ||
signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }} | ||
ssh: true | ||
signing_key: ${{ secrets.BREWTESTBOT_SSH_SIGNING_KEY }} | ||
|
||
- name: Checkout PR branch | ||
working-directory: ${{steps.set-up-homebrew.outputs.repository-path}} | ||
|
@@ -312,7 +313,6 @@ jobs: | |
working-directory: ${{steps.set-up-homebrew.outputs.repository-path}} | ||
env: | ||
BREWTESTBOT_NAME_EMAIL: "BrewTestBot <[email protected]>" | ||
HOMEBREW_GPG_PASSPHRASE: ${{ inputs.autosquash && secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} | ||
HOMEBREW_GITHUB_API_TOKEN: ${{secrets.HOMEBREW_CORE_PUBLIC_REPO_EMAIL_TOKEN}} | ||
EXPECTED_SHA: ${{needs.check.outputs.head_sha}} | ||
LARGE_RUNNER: ${{inputs.large_runner}} | ||
|
@@ -363,7 +363,6 @@ jobs: | |
working-directory: ${{steps.pr-pull.outputs.bottle_path}} | ||
env: | ||
BREWTESTBOT_NAME_EMAIL: "BrewTestBot <[email protected]>" | ||
HOMEBREW_GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} | ||
HOMEBREW_GITHUB_PACKAGES_USER: brewtestbot | ||
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{secrets.HOMEBREW_CORE_GITHUB_PACKAGES_TOKEN}} | ||
REPO_PATH: ${{steps.set-up-homebrew.outputs.repository-path}} | ||
|
@@ -391,7 +390,6 @@ jobs: | |
env: | ||
GIT_COMMITTER_NAME: BrewTestBot | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
HOMEBREW_GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }} | ||
|
||
- name: Add CI-published-bottle-commits label | ||
run: gh pr edit --add-label CI-published-bottle-commits "$PR" --repo "$GITHUB_REPOSITORY" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters