Compare commits

...

9 Commits

Author SHA1 Message Date
Volodymyr Zotov
2a576880a1 Use alpha 5 version 2025-07-31 13:47:06 -05:00
Volodymyr Zotov
18a55c6803 Use alpha 4 version 2025-07-31 13:23:40 -05:00
Volodymyr Zotov
b19207bf93 Use alpha 3 version 2025-07-31 13:14:35 -05:00
Volodymyr Zotov
b9c01e3e92 Use alpha 2 version 2025-07-31 13:06:24 -05:00
Volodymyr Zotov
e991f39528 Re-build 2025-07-31 12:45:36 -05:00
Volodymyr Zotov
986101e2bf Remove type module from package.json 2025-07-31 12:43:03 -05:00
Volodymyr Zotov
1cdbe7be4c Use install-cli-action from other op-js@v0.1.14-alpha.1 2025-07-31 12:39:46 -05:00
Volodymyr Zotov
dfb0f006ee Import install-cli-action from op-js 2025-07-31 12:24:30 -05:00
Volodymyr Zotov
a10e284f10 Use install-cli-action from other branch 2025-07-31 12:01:35 -05:00
4 changed files with 3816 additions and 33533 deletions

36806
dist/index.js vendored

File diff suppressed because one or more lines are too long

532
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -2,7 +2,6 @@
"name": "load-secrets-action", "name": "load-secrets-action",
"version": "2.0.0", "version": "2.0.0",
"description": "Load Secrets from 1Password", "description": "Load Secrets from 1Password",
"type": "commonjs",
"main": "dist/index.js", "main": "dist/index.js",
"directories": { "directories": {
"test": "tests" "test": "tests"
@@ -40,8 +39,7 @@
}, },
"homepage": "https://github.com/1Password/load-secrets-action#readme", "homepage": "https://github.com/1Password/load-secrets-action#readme",
"dependencies": { "dependencies": {
"@1password/install-cli-action": "github:1password/install-cli-action#vzt/export-install-function", "@1password/op-js": "^0.1.14-alpha.5",
"@1password/op-js": "^0.1.11",
"@actions/core": "^1.11.1", "@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1", "@actions/exec": "^1.1.1",
"@actions/tool-cache": "^2.0.2" "@actions/tool-cache": "^2.0.2"

View File

@@ -1,5 +1,5 @@
import * as core from "@actions/core"; 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"; import { loadSecrets, unsetPrevious, validateAuth } from "./utils";
const loadSecretsAction = async () => { 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 // 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. // as an indicator that we need to execute the installation script.
await validateCli().catch(async () => { await validateCli().catch(async () => {
// eslint-disable-next-line await installCliOnGithubRunner();
const { install } = require("@1password/install-cli-action");
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
await install();
}); });
}; };