Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bot commit signing #133

Merged
merged 1 commit into from
Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/_buildpacks-prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ jobs:
# that can be used to make signed commits that are attributed to the GH application user
token: ${{ steps.generate-token.outputs.app_token }}

# This will ensure commits made from this workflow are attributed to the GH application user
- name: Configure git
run: |
git config --global user.name ${{ inputs.app_username }}
git config --global user.email ${{ inputs.app_email }}

- name: Install Languages CLI
uses: heroku/languages-github-actions/.github/actions/install-languages-cli@main

Expand Down Expand Up @@ -93,6 +87,9 @@ jobs:
${{ steps.generate-changelog.outputs.changelog }}
branch: prepare-release
delete-branch: true
# This will ensure commits made from this workflow are attributed to the GH application user
committer: ${{ inputs.app_username }} <${{ inputs.app_email }}>
author: ${{ inputs.app_username }} <${{ inputs.app_email }}>

- name: Configure pull request
if: steps.pr.outputs.pull-request-operation == 'created'
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/_buildpacks-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,6 @@ jobs:
# that can be used to make signed commits that are attributed to the GH application user
token: ${{ steps.generate-token.outputs.app_token }}

# This will ensure commits made from this workflow are attributed to the GH application user
- name: Configure git
run: |
git config --global user.name ${{ inputs.app_username }}
git config --global user.email ${{ inputs.app_email }}

- name: Install crane
uses: buildpacks/github-actions/[email protected]

Expand Down Expand Up @@ -317,6 +311,9 @@ jobs:
path: ./builder
branch: update/${{ github.repository }}
delete-branch: true
# This will ensure commits made from this workflow are attributed to the GH application user
committer: ${{ inputs.app_username }} <${{ inputs.app_email }}>
author: ${{ inputs.app_username }} <${{ inputs.app_email }}>

- name: Configure PR
if: steps.pr.outputs.pull-request-operation == 'created'
Expand Down