* feat: add git-commit-signing module * feat(git-commit-signing): check for git and jq * fix(git-commit-signing): only use icon once * fix(git-commit-signing): fix typo in README Co-authored-by: Muhammad Atif Ali <matifali@live.com> * bun fmt * chore: clarify readme SSH key paragraph * fix: add `curl` as dependency * feat: download keys to ~/.ssh/git-commit-signing * feat: add conflict disclaimer --------- Co-authored-by: Muhammad Atif Ali <matifali@live.com> Co-authored-by: Atif Ali <atif@coder.com>
25 lines
957 B
Markdown
25 lines
957 B
Markdown
---
|
|
display_name: Git commit signing
|
|
description: Configures Git to sign commits using your Coder SSH key
|
|
icon: ../.icons/git.svg
|
|
maintainer_github: phorcys420
|
|
verified: false
|
|
tags: [helper, git]
|
|
---
|
|
|
|
# git-commit-signing
|
|
|
|
This module downloads your SSH key from Coder and uses it to sign commits with Git.
|
|
It requires `curl` and `jq` to be installed inside your workspace.
|
|
|
|
Please observe that using the SSH key that's part of your Coder account for commit signing, means that in the event of a breach of your Coder account, or a malicious admin, someone could perform commit signing pretending to be you.
|
|
|
|
This module has a chance of conflicting with the user's dotfiles / the personalize module if one of those has configuration directives that overwrite this module's / each other's git configuration.
|
|
|
|
```hcl
|
|
module "git-commit-signing" {
|
|
source = "https://registry.coder.com/modules/git-commit-signing"
|
|
agent_id = coder_agent.example.id
|
|
}
|
|
```
|