Skip to content

v2.4.0

Compare
Choose a tag to compare
@cloudposse-releaser cloudposse-releaser released this 11 Sep 21:19
· 9 commits to refs/heads/main since this release
2ec4218
fix: update commit signing method @RoseSecurity (#41) ## what
  • The prior release included support for GPG signing of commits. This fails with the following error:
Traceback (most recent call last):
  File "/github/action/src/main.py", line 134, in <module>
    cli_main()
  File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/github/action/src/main.py", line 129, in cli_main
    main(github_api_token, config)
  File "/github/action/src/main.py", line 15, in main
    component_updater.update()
  File "/github/action/src/component_updater.py", line 65, in update
    responses.extend(self.__update_terraform_dir(infra_terraform_dir))
  File "/github/action/src/component_updater.py", line 84, in __update_terraform_dir
    response = self.__update_component(infra_terraform_dir, component_file)
  File "/github/action/src/component_updater.py", line 217, in __update_component
    pull_request_creation_response: PullRequestCreationResponse = self.__create_branch_and_pr(updated_component.infra_repo_dir,
  File "/github/action/src/component_updater.py", line 278, in __create_branch_and_pr
    self.__github_provider.create_branch_and_push_all_changes(repo_dir,
  File "/github/action/src/github_provider.py", line 94, in create_branch_and_push_all_changes
    repo.index.commit(commit_message, gpg_sign=True, gpg_signing_key=self.__config.gpg_key_id)
TypeError: IndexFile.commit() got an unexpected keyword argument 'gpg_sign'
  • This change incorporates a fix for the error

why

  • Fixes commit signing for Component Updater

references