Compare commits

...

4 Commits

Author SHA1 Message Date
JM Faircloth 867290158a use lts node 2024-04-15 12:57:33 -05:00
JM Faircloth 790b5eac34 try to test against main 2024-04-15 12:39:23 -05:00
JM Faircloth 074f580c7d export default 2024-04-15 12:27:27 -05:00
JM Faircloth 14c5ac9697 use node:module ref on import 2024-04-15 12:15:05 -05:00
3 changed files with 27 additions and 23 deletions
+15 -15
View File
@@ -10,7 +10,7 @@ jobs:
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: '20.9.0'
node-version: '20.12.2'
- name: Setup NPM Cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
@@ -40,7 +40,7 @@ jobs:
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: '20.9.0'
node-version: '20.12.2'
- name: Setup NPM Cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
@@ -76,7 +76,7 @@ jobs:
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: '20.9.0'
node-version: '20.12.2'
- name: Setup NPM Cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
@@ -110,7 +110,7 @@ jobs:
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: '20.9.0'
node-version: '20.12.2'
- name: Setup NPM Cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
@@ -133,7 +133,7 @@ jobs:
VAULT_PORT: 8200
- name: Test Vault Action (default KV V2)
uses: ./
uses: hashicorp/vault-action@main
id: kv-secrets
with:
url: http://localhost:8200
@@ -144,7 +144,7 @@ jobs:
secret/data/nested/test otherSecret ;
- name: Test Vault Action (default KV V1)
uses: ./
uses: hashicorp/vault-action@main
with:
url: http://localhost:8200
token: testtoken
@@ -154,7 +154,7 @@ jobs:
my-secret/nested/test otherAltSecret ;
- name: Test Vault Action (cubbyhole)
uses: ./
uses: hashicorp/vault-action@main
with:
url: http://localhost:8200
token: testtoken
@@ -165,7 +165,7 @@ jobs:
# The ordering of these two Test Vault Action Overwrites Env Vars In Subsequent Action steps matters
# They should come before the Verify Vault Action Outputs step
- name: Test Vault Action Overwrites Env Vars In Subsequent Action (part 1/2)
uses: ./
uses: hashicorp/vault-action@main
with:
url: http://localhost:8200/
token: testtoken
@@ -173,7 +173,7 @@ jobs:
secret/data/test secret | SUBSEQUENT_TEST_SECRET;
- name: Test Vault Action Overwrites Env Vars In Subsequent Action (part 2/2)
uses: ./
uses: hashicorp/vault-action@main
with:
url: http://localhost:8200/
token: testtoken
@@ -181,7 +181,7 @@ jobs:
secret/data/subsequent-test secret | SUBSEQUENT_TEST_SECRET;
- name: Test JSON Secrets
uses: ./
uses: hashicorp/vault-action@main
with:
url: http://localhost:8200
token: testtoken
@@ -207,7 +207,7 @@ jobs:
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: '20.9.0'
node-version: '20.12.2'
- name: Setup NPM Cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
@@ -233,7 +233,7 @@ jobs:
VAULT_CLIENT_KEY: ${{ secrets.VAULT_CLIENT_KEY }}
- name: Test Vault Action (default KV V2)
uses: ./
uses: hashicorp/vault-action@main
id: kv-secrets-tls
with:
url: https://localhost:8200
@@ -247,7 +247,7 @@ jobs:
secret/data/nested/test otherSecret ;
- name: Test Vault Action (tlsSkipVerify)
uses: ./
uses: hashicorp/vault-action@main
with:
url: https://localhost:8200
token: ${{ env.VAULT_TOKEN }}
@@ -258,7 +258,7 @@ jobs:
secret/data/tlsSkipVerify skip ;
- name: Test Vault Action (default KV V1)
uses: ./
uses: hashicorp/vault-action@main
with:
url: https://localhost:8200
token: ${{ env.VAULT_TOKEN }}
@@ -271,7 +271,7 @@ jobs:
my-secret/nested/test otherAltSecret ;
- name: Test Vault Action (cubbyhole)
uses: ./
uses: hashicorp/vault-action@main
with:
url: https://localhost:8200
token: ${{ env.VAULT_TOKEN }}
+7 -5
View File
@@ -14249,16 +14249,18 @@ async function getClientToken(client, method, path, payload) {
;// CONCATENATED MODULE: external "module"
const external_module_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("module");
;// CONCATENATED MODULE: external "node:module"
const external_node_module_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:module");
;// CONCATENATED MODULE: ./src/cjs-require.js
// This allows us to use `require` in our ECMAScript module
// See: https://github.com/vercel/ncc/issues/791
// https://nodejs.org/api/module.html#modulecreaterequirefilename
const cjs_require_require = (0,external_module_namespaceObject.createRequire)(import.meta.url);
/* harmony default export */ const cjs_require = (cjs_require_require);
const cjs_require_filename = external_node_url_namespaceObject.fileURLToPath(import.meta.url);
globalThis.require = (0,external_node_module_namespaceObject.createRequire)(cjs_require_filename);
/* harmony default export */ const cjs_require = (require);
;// CONCATENATED MODULE: ./src/secrets.js
+5 -3
View File
@@ -1,7 +1,9 @@
// This allows us to use `require` in our ECMAScript module
// See: https://github.com/vercel/ncc/issues/791
// https://nodejs.org/api/module.html#modulecreaterequirefilename
import { createRequire } from "module";
const require = createRequire(import.meta.url);
import { createRequire } from 'node:module';
import url from 'node:url';
const __filename = url.fileURLToPath(import.meta.url);
globalThis.require = createRequire(__filename);
export default require;