Skip to content

Commit ab6c761

Browse files
authored
Hotfix/op io (#125)
* Use ioworkspace 1password for sendgrid * update versions
1 parent 2b3b621 commit ab6c761

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.20.3 (2026-01-23)
2+
### Fixes
3+
🛠 Fix faulty item id for Sendgrid after changing 1Password organisation.
4+
15
## 2.20.2 (2025-10-06)
26
### Fixes
37
🛠 Bug fix checking of correct ip before accessing the Sendgrid api

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { checkLisaVersion } from "./lib/versions.js"
2727
import { generateVaultPass } from "./tasks/trellis.js"
2828

2929
export const program = new Command()
30-
export const LISA_VERSION = "2.20.2"
30+
export const LISA_VERSION = "2.20.3"
3131

3232
resetConf()
3333
checkNodeVersion()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@triggerfishab/lisa-cli",
3-
"version": "2.20.2",
3+
"version": "2.20.3",
44
"description": "CLI commands to generate a new project based on Lisa",
55
"main": "./index.js",
66
"bin": {

tasks/services/sendgrid.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ import {
1212
} from "../../lib/write.js"
1313

1414
async function setupSendgridAccount() {
15-
let projectName = await getProjectName()
15+
const projectName = await getProjectName()
1616
let apiKey = ""
1717

1818
writeStep("Creating Sendgrid subuser")
1919
try {
2020
apiKey = await exec(
21-
`op item get uhfxs25bmpaqk24fay4wz7qsie --fields label="sendgrid.api key"`,
21+
"op read \"op://STO TF Shared/LISA CLI/SENDGRID/api key\"",
2222
).then((res) => res.stdout.trim())
2323
} catch (error) {
2424
writeError(`Failed accessing 1Password. \n ${error}`)
@@ -47,7 +47,7 @@ async function setupSendgridAccount() {
4747
}
4848
*/
4949

50-
let body = {
50+
const body = {
5151
username: projectName,
5252
email: `${projectName}@sendgrid.triggerfish.se`,
5353
password: passwordGenerator.generate({
@@ -57,14 +57,13 @@ async function setupSendgridAccount() {
5757
}),
5858
ips: [ip],
5959
}
60-
6160
const [, subuser] = await client.request({
6261
method: "POST",
6362
url: "/v3/subusers",
6463
body,
6564
})
6665

67-
writeSuccess(`Sendgrid subuser created`)
66+
writeSuccess("Sendgrid subuser created")
6867

6968
writeStep("Creating Sendgrid subuser api key")
7069

0 commit comments

Comments
 (0)