Skip to content

Commit

Permalink
👷 Sign release commits with Jack's token
Browse files Browse the repository at this point in the history
We have a requirement that all repository commits be signed. This
means that automations should also sign commits.

We are setting up commit signing in the repository, but there is no
way (that I know of) to currently pass that git config into the
container in which covector is running its action.

This checks which action covector ran and then if it is `version`,
re-commits HEAD which is configured to use Jack's credentials and
config.
  • Loading branch information
cowboyd committed Sep 17, 2024
1 parent 291ef21 commit 85fb1ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/covector-version-or-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
token: ${{ secrets.FRONTSIDEJACK_GITHUB_TOKEN }}
command: "version-or-publish"
recognizeContributors: true

# recommit with the signature setup in the beginning of this action
- name: Sign Commits
if: steps.covector.outputs.commandRan == 'version'
run: git commit --amend --no-edit --reset-author

- name: Create Pull Request With Versions Bumped
uses: peter-evans/create-pull-request@v6
if: steps.covector.outputs.commandRan == 'version'
Expand Down

0 comments on commit 85fb1ff

Please sign in to comment.