Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jon77p committed Dec 30, 2023
1 parent 44dbc62 commit f57d7e3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cdktf/secrets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,18 @@ export class Secrets extends Construct {
// Setup 1Password
const setup = Setup1Password(this)

Check notice on line 40 in cdktf/secrets.ts

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

cdktf/secrets.ts#L40

Insert `;`

new cdktf.TerraformOutput(this, "op-path", {
value: setup.path,
});

return;

// Initialize 1Password provider
const opProvider = new onepassword.provider.OnepasswordProvider(this, "onepassword", {
new onepassword.provider.OnepasswordProvider(this, "onepassword", {
serviceAccountToken: process.env.OP_SERVICE_ACCOUNT_TOKEN,
opCliPath: cdktf.Fn.join("/", [setup.install.cwd, "op"]),

Check warning on line 51 in cdktf/secrets.ts

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

cdktf/secrets.ts#L51

The key 'opCliPath' is not sorted alphabetically
});

// Make sure opProvider depends on the install
opProvider.node.addDependency(setup.install);

// Fetch the 1Password Infrastructure vault
const vault = new onepassword.dataOnepasswordVault.DataOnepasswordVault(this, "vault", {

Check notice on line 55 in cdktf/secrets.ts

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

cdktf/secrets.ts#L55

Replace `this,·"vault",` with `⏎······this,⏎······"vault",⏎·····`
name: "Infrastructure",

Check notice on line 56 in cdktf/secrets.ts

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

cdktf/secrets.ts#L56

Insert `··`
Expand Down

0 comments on commit f57d7e3

Please sign in to comment.