mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-07-29 01:43:15 +03:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 867290158a | |||
| 790b5eac34 | |||
| 074f580c7d | |||
| 14c5ac9697 |
+15
-15
@@ -10,7 +10,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
||||||
with:
|
with:
|
||||||
node-version: '20.9.0'
|
node-version: '20.12.2'
|
||||||
|
|
||||||
- name: Setup NPM Cache
|
- name: Setup NPM Cache
|
||||||
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
||||||
with:
|
with:
|
||||||
node-version: '20.9.0'
|
node-version: '20.12.2'
|
||||||
|
|
||||||
- name: Setup NPM Cache
|
- name: Setup NPM Cache
|
||||||
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
||||||
@@ -76,7 +76,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
||||||
with:
|
with:
|
||||||
node-version: '20.9.0'
|
node-version: '20.12.2'
|
||||||
|
|
||||||
- name: Setup NPM Cache
|
- name: Setup NPM Cache
|
||||||
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
||||||
@@ -110,7 +110,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
||||||
with:
|
with:
|
||||||
node-version: '20.9.0'
|
node-version: '20.12.2'
|
||||||
|
|
||||||
- name: Setup NPM Cache
|
- name: Setup NPM Cache
|
||||||
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
||||||
@@ -133,7 +133,7 @@ jobs:
|
|||||||
VAULT_PORT: 8200
|
VAULT_PORT: 8200
|
||||||
|
|
||||||
- name: Test Vault Action (default KV V2)
|
- name: Test Vault Action (default KV V2)
|
||||||
uses: ./
|
uses: hashicorp/vault-action@main
|
||||||
id: kv-secrets
|
id: kv-secrets
|
||||||
with:
|
with:
|
||||||
url: http://localhost:8200
|
url: http://localhost:8200
|
||||||
@@ -144,7 +144,7 @@ jobs:
|
|||||||
secret/data/nested/test otherSecret ;
|
secret/data/nested/test otherSecret ;
|
||||||
|
|
||||||
- name: Test Vault Action (default KV V1)
|
- name: Test Vault Action (default KV V1)
|
||||||
uses: ./
|
uses: hashicorp/vault-action@main
|
||||||
with:
|
with:
|
||||||
url: http://localhost:8200
|
url: http://localhost:8200
|
||||||
token: testtoken
|
token: testtoken
|
||||||
@@ -154,7 +154,7 @@ jobs:
|
|||||||
my-secret/nested/test otherAltSecret ;
|
my-secret/nested/test otherAltSecret ;
|
||||||
|
|
||||||
- name: Test Vault Action (cubbyhole)
|
- name: Test Vault Action (cubbyhole)
|
||||||
uses: ./
|
uses: hashicorp/vault-action@main
|
||||||
with:
|
with:
|
||||||
url: http://localhost:8200
|
url: http://localhost:8200
|
||||||
token: testtoken
|
token: testtoken
|
||||||
@@ -165,7 +165,7 @@ jobs:
|
|||||||
# The ordering of these two Test Vault Action Overwrites Env Vars In Subsequent Action steps matters
|
# 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
|
# They should come before the Verify Vault Action Outputs step
|
||||||
- name: Test Vault Action Overwrites Env Vars In Subsequent Action (part 1/2)
|
- name: Test Vault Action Overwrites Env Vars In Subsequent Action (part 1/2)
|
||||||
uses: ./
|
uses: hashicorp/vault-action@main
|
||||||
with:
|
with:
|
||||||
url: http://localhost:8200/
|
url: http://localhost:8200/
|
||||||
token: testtoken
|
token: testtoken
|
||||||
@@ -173,7 +173,7 @@ jobs:
|
|||||||
secret/data/test secret | SUBSEQUENT_TEST_SECRET;
|
secret/data/test secret | SUBSEQUENT_TEST_SECRET;
|
||||||
|
|
||||||
- name: Test Vault Action Overwrites Env Vars In Subsequent Action (part 2/2)
|
- name: Test Vault Action Overwrites Env Vars In Subsequent Action (part 2/2)
|
||||||
uses: ./
|
uses: hashicorp/vault-action@main
|
||||||
with:
|
with:
|
||||||
url: http://localhost:8200/
|
url: http://localhost:8200/
|
||||||
token: testtoken
|
token: testtoken
|
||||||
@@ -181,7 +181,7 @@ jobs:
|
|||||||
secret/data/subsequent-test secret | SUBSEQUENT_TEST_SECRET;
|
secret/data/subsequent-test secret | SUBSEQUENT_TEST_SECRET;
|
||||||
|
|
||||||
- name: Test JSON Secrets
|
- name: Test JSON Secrets
|
||||||
uses: ./
|
uses: hashicorp/vault-action@main
|
||||||
with:
|
with:
|
||||||
url: http://localhost:8200
|
url: http://localhost:8200
|
||||||
token: testtoken
|
token: testtoken
|
||||||
@@ -207,7 +207,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
||||||
with:
|
with:
|
||||||
node-version: '20.9.0'
|
node-version: '20.12.2'
|
||||||
|
|
||||||
- name: Setup NPM Cache
|
- name: Setup NPM Cache
|
||||||
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
|
||||||
@@ -233,7 +233,7 @@ jobs:
|
|||||||
VAULT_CLIENT_KEY: ${{ secrets.VAULT_CLIENT_KEY }}
|
VAULT_CLIENT_KEY: ${{ secrets.VAULT_CLIENT_KEY }}
|
||||||
|
|
||||||
- name: Test Vault Action (default KV V2)
|
- name: Test Vault Action (default KV V2)
|
||||||
uses: ./
|
uses: hashicorp/vault-action@main
|
||||||
id: kv-secrets-tls
|
id: kv-secrets-tls
|
||||||
with:
|
with:
|
||||||
url: https://localhost:8200
|
url: https://localhost:8200
|
||||||
@@ -247,7 +247,7 @@ jobs:
|
|||||||
secret/data/nested/test otherSecret ;
|
secret/data/nested/test otherSecret ;
|
||||||
|
|
||||||
- name: Test Vault Action (tlsSkipVerify)
|
- name: Test Vault Action (tlsSkipVerify)
|
||||||
uses: ./
|
uses: hashicorp/vault-action@main
|
||||||
with:
|
with:
|
||||||
url: https://localhost:8200
|
url: https://localhost:8200
|
||||||
token: ${{ env.VAULT_TOKEN }}
|
token: ${{ env.VAULT_TOKEN }}
|
||||||
@@ -258,7 +258,7 @@ jobs:
|
|||||||
secret/data/tlsSkipVerify skip ;
|
secret/data/tlsSkipVerify skip ;
|
||||||
|
|
||||||
- name: Test Vault Action (default KV V1)
|
- name: Test Vault Action (default KV V1)
|
||||||
uses: ./
|
uses: hashicorp/vault-action@main
|
||||||
with:
|
with:
|
||||||
url: https://localhost:8200
|
url: https://localhost:8200
|
||||||
token: ${{ env.VAULT_TOKEN }}
|
token: ${{ env.VAULT_TOKEN }}
|
||||||
@@ -271,7 +271,7 @@ jobs:
|
|||||||
my-secret/nested/test otherAltSecret ;
|
my-secret/nested/test otherAltSecret ;
|
||||||
|
|
||||||
- name: Test Vault Action (cubbyhole)
|
- name: Test Vault Action (cubbyhole)
|
||||||
uses: ./
|
uses: hashicorp/vault-action@main
|
||||||
with:
|
with:
|
||||||
url: https://localhost:8200
|
url: https://localhost:8200
|
||||||
token: ${{ env.VAULT_TOKEN }}
|
token: ${{ env.VAULT_TOKEN }}
|
||||||
|
|||||||
Vendored
+7
-5
@@ -14249,16 +14249,18 @@ async function getClientToken(client, method, path, payload) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: external "module"
|
;// CONCATENATED MODULE: external "node:module"
|
||||||
const external_module_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("module");
|
const external_node_module_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:module");
|
||||||
;// CONCATENATED MODULE: ./src/cjs-require.js
|
;// CONCATENATED MODULE: ./src/cjs-require.js
|
||||||
// This allows us to use `require` in our ECMAScript module
|
// This allows us to use `require` in our ECMAScript module
|
||||||
// See: https://github.com/vercel/ncc/issues/791
|
// 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
|
;// CONCATENATED MODULE: ./src/secrets.js
|
||||||
|
|
||||||
|
|||||||
+5
-3
@@ -1,7 +1,9 @@
|
|||||||
// This allows us to use `require` in our ECMAScript module
|
// This allows us to use `require` in our ECMAScript module
|
||||||
// See: https://github.com/vercel/ncc/issues/791
|
// See: https://github.com/vercel/ncc/issues/791
|
||||||
// https://nodejs.org/api/module.html#modulecreaterequirefilename
|
import { createRequire } from 'node:module';
|
||||||
import { createRequire } from "module";
|
import url from 'node:url';
|
||||||
const require = createRequire(import.meta.url);
|
|
||||||
|
const __filename = url.fileURLToPath(import.meta.url);
|
||||||
|
globalThis.require = createRequire(__filename);
|
||||||
|
|
||||||
export default require;
|
export default require;
|
||||||
|
|||||||
Reference in New Issue
Block a user