Compare commits
9 Commits
vzt/window
...
2a576880a1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a576880a1 | ||
|
|
18a55c6803 | ||
|
|
b19207bf93 | ||
|
|
b9c01e3e92 | ||
|
|
e991f39528 | ||
|
|
986101e2bf | ||
|
|
1cdbe7be4c | ||
|
|
dfb0f006ee | ||
|
|
a10e284f10 |
36806
dist/index.js
vendored
36806
dist/index.js
vendored
File diff suppressed because one or more lines are too long
532
package-lock.json
generated
532
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,6 @@
|
||||
"name": "load-secrets-action",
|
||||
"version": "2.0.0",
|
||||
"description": "Load Secrets from 1Password",
|
||||
"type": "commonjs",
|
||||
"main": "dist/index.js",
|
||||
"directories": {
|
||||
"test": "tests"
|
||||
@@ -40,8 +39,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/1Password/load-secrets-action#readme",
|
||||
"dependencies": {
|
||||
"@1password/install-cli-action": "github:1password/install-cli-action#vzt/export-install-function",
|
||||
"@1password/op-js": "^0.1.11",
|
||||
"@1password/op-js": "^0.1.14-alpha.5",
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/tool-cache": "^2.0.2"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as core from "@actions/core";
|
||||
import { validateCli } from "@1password/op-js";
|
||||
import { validateCli, installCliOnGithubRunner } from "@1password/op-js";
|
||||
import { loadSecrets, unsetPrevious, validateAuth } from "./utils";
|
||||
|
||||
const loadSecretsAction = async () => {
|
||||
@@ -43,10 +43,7 @@ const installCLI = async (): Promise<void> => {
|
||||
// If there's no CLI installed, then validateCli will throw an error, which we will use
|
||||
// as an indicator that we need to execute the installation script.
|
||||
await validateCli().catch(async () => {
|
||||
// eslint-disable-next-line
|
||||
const { install } = require("@1password/install-cli-action");
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
||||
await install();
|
||||
await installCliOnGithubRunner();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user