Compare commits
1 Commits
vzt/test-m
...
vzt/window
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c29e37a48a |
36759
dist/index.js
vendored
36759
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,6 +2,7 @@
|
||||
"name": "load-secrets-action",
|
||||
"version": "2.0.0",
|
||||
"description": "Load Secrets from 1Password",
|
||||
"type": "commonjs",
|
||||
"main": "dist/index.js",
|
||||
"directories": {
|
||||
"test": "tests"
|
||||
@@ -39,7 +40,8 @@
|
||||
},
|
||||
"homepage": "https://github.com/1Password/load-secrets-action#readme",
|
||||
"dependencies": {
|
||||
"@1password/op-js": "^0.1.14-alpha.5",
|
||||
"@1password/install-cli-action": "github:1password/install-cli-action#vzt/export-install-function",
|
||||
"@1password/op-js": "^0.1.11",
|
||||
"@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, installCliOnGithubRunner } from "@1password/op-js";
|
||||
import { validateCli } from "@1password/op-js";
|
||||
import { loadSecrets, unsetPrevious, validateAuth } from "./utils";
|
||||
|
||||
const loadSecretsAction = async () => {
|
||||
@@ -43,7 +43,10 @@ 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 () => {
|
||||
await installCliOnGithubRunner();
|
||||
// eslint-disable-next-line
|
||||
const { install } = require("@1password/install-cli-action");
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
||||
await install();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user