Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
contents: read
strategy:
matrix:
node-version: [18, 20, 22, 24, latest]
node-version: [20, 22, 24, latest]
steps:
- uses: actions/checkout@v6
- uses: webfactory/ssh-agent@v0.10.0
Expand All @@ -28,7 +28,7 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm ci
- run: npm run lint
- run: npm run coverage
- run: node ./dist/src/cli.js --help
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
node-version: 24
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm publish --provenance --access public
1 change: 1 addition & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"require": ["tsx"],
"extension": ["js", "ts"],
"reporter": "spec"
}
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ A seed is used to generate the secret, it's recommended you don't use the same s
- 📦 Safe to store encrypted secrets in Git
- `node:stream` compatible
- `sign` message / `verify` signature
- 👥 Works with existing SSH agent workflows like [1Password](https://developer.1password.com/docs/ssh/agent/) or [Bitwarden](https://bitwarden.com/help/ssh-agent/)
- 👥 Works with existing SSH agent workflows like [1Password](https://developer.1password.com/docs/ssh/agent/), [ProtonPass](https://protonpass.github.io/pass-cli/commands/ssh-agent/) or [Bitwarden](https://bitwarden.com/help/ssh-agent/)

## ⚠️ Limitations

Expand Down Expand Up @@ -98,8 +98,11 @@ console.log('Decrypted data:', decrypted.toString('utf8'))

### Local test

Tests need a running `ssh-agent` with the test keys from [`test/ssh_keys`](/test/ssh_keys) loaded:

```bash
ssh-agent -D
SSH_AUTH_SOCK="[...]" ssh-add test/ssh_keys/*
SSH_AUTH_SOCK="[...]" npm run test
eval "$(ssh-agent -s)"
ssh-add test/ssh_keys/*
npm run test
ssh-agent -k
```
Loading