env-secrets 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-main.yml +3 -3
- package/.github/workflows/deploy-docs.yml +3 -3
- package/.github/workflows/e2e-tests.yaml +4 -4
- package/.github/workflows/lint.yaml +3 -3
- package/.github/workflows/release.yml +9 -9
- package/.github/workflows/snyk.yaml +2 -2
- package/.github/workflows/unittests.yaml +2 -2
- package/.nvmrc +1 -1
- package/.release-it.json +1 -1
- package/README.md +1 -1
- package/package.json +14 -10
|
@@ -14,14 +14,14 @@ jobs:
|
|
|
14
14
|
build:
|
|
15
15
|
runs-on: ubuntu-latest
|
|
16
16
|
steps:
|
|
17
|
-
- uses: actions/checkout@
|
|
17
|
+
- uses: actions/checkout@v6
|
|
18
18
|
with:
|
|
19
19
|
fetch-depth: 0
|
|
20
20
|
|
|
21
21
|
- name: Set up Node.js
|
|
22
|
-
uses: actions/setup-node@
|
|
22
|
+
uses: actions/setup-node@v6
|
|
23
23
|
with:
|
|
24
|
-
node-version:
|
|
24
|
+
node-version: 24
|
|
25
25
|
|
|
26
26
|
- name: Install Node.js dependencies
|
|
27
27
|
run: yarn
|
|
@@ -21,10 +21,10 @@ jobs:
|
|
|
21
21
|
build:
|
|
22
22
|
runs-on: ubuntu-latest
|
|
23
23
|
steps:
|
|
24
|
-
- uses: actions/checkout@
|
|
25
|
-
- uses: actions/setup-node@
|
|
24
|
+
- uses: actions/checkout@v6
|
|
25
|
+
- uses: actions/setup-node@v6
|
|
26
26
|
with:
|
|
27
|
-
node-version:
|
|
27
|
+
node-version: 24
|
|
28
28
|
cache: 'yarn'
|
|
29
29
|
cache-dependency-path: website/package.json
|
|
30
30
|
- name: Install deps
|
|
@@ -18,15 +18,15 @@ jobs:
|
|
|
18
18
|
|
|
19
19
|
steps:
|
|
20
20
|
- name: Checkout repository
|
|
21
|
-
uses: actions/checkout@
|
|
21
|
+
uses: actions/checkout@v6
|
|
22
22
|
|
|
23
23
|
- name: Set up Node.js
|
|
24
|
-
uses: actions/setup-node@
|
|
24
|
+
uses: actions/setup-node@v6
|
|
25
25
|
with:
|
|
26
|
-
node-version: 24
|
|
26
|
+
node-version: 24
|
|
27
27
|
|
|
28
28
|
- name: Set up Python
|
|
29
|
-
uses: actions/setup-python@
|
|
29
|
+
uses: actions/setup-python@v6
|
|
30
30
|
with:
|
|
31
31
|
python-version: '3.12'
|
|
32
32
|
|
|
@@ -16,12 +16,12 @@ jobs:
|
|
|
16
16
|
|
|
17
17
|
steps:
|
|
18
18
|
- name: Check out Git repository
|
|
19
|
-
uses: actions/checkout@
|
|
19
|
+
uses: actions/checkout@v6
|
|
20
20
|
|
|
21
21
|
- name: Set up Node.js
|
|
22
|
-
uses: actions/setup-node@
|
|
22
|
+
uses: actions/setup-node@v6
|
|
23
23
|
with:
|
|
24
|
-
node-version:
|
|
24
|
+
node-version: 24
|
|
25
25
|
|
|
26
26
|
# ESLint and Prettier must be in `package.json`
|
|
27
27
|
- name: Install Node.js dependencies
|
|
@@ -14,18 +14,19 @@ on:
|
|
|
14
14
|
default: 'patch'
|
|
15
15
|
required: true
|
|
16
16
|
|
|
17
|
-
permissions:
|
|
18
|
-
contents: write
|
|
19
|
-
packages: read
|
|
20
|
-
|
|
21
17
|
jobs:
|
|
22
18
|
release:
|
|
23
19
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
24
20
|
name: Create Github Release
|
|
25
21
|
runs-on: ubuntu-latest
|
|
22
|
+
permissions:
|
|
23
|
+
id-token: write # Required for OIDC authentication
|
|
24
|
+
contents: write
|
|
25
|
+
packages: read
|
|
26
|
+
|
|
26
27
|
steps:
|
|
27
28
|
- name: Clone Repository
|
|
28
|
-
uses: actions/checkout@
|
|
29
|
+
uses: actions/checkout@v6
|
|
29
30
|
with:
|
|
30
31
|
fetch-depth: 0
|
|
31
32
|
|
|
@@ -35,9 +36,9 @@ jobs:
|
|
|
35
36
|
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
|
36
37
|
|
|
37
38
|
- name: Set up Node.js
|
|
38
|
-
uses: actions/setup-node@
|
|
39
|
+
uses: actions/setup-node@v6
|
|
39
40
|
with:
|
|
40
|
-
node-version:
|
|
41
|
+
node-version: 24
|
|
41
42
|
registry-url: 'https://registry.npmjs.org'
|
|
42
43
|
|
|
43
44
|
- name: Install Node.js dependencies
|
|
@@ -47,9 +48,8 @@ jobs:
|
|
|
47
48
|
run: yarn build
|
|
48
49
|
|
|
49
50
|
- name: Github release
|
|
50
|
-
run:
|
|
51
|
+
run: npx release-it ${{ inputs.release_type }} --ci
|
|
51
52
|
env:
|
|
52
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
53
53
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
54
54
|
|
|
55
55
|
- name: Notify failures
|
|
@@ -14,7 +14,7 @@ jobs:
|
|
|
14
14
|
security:
|
|
15
15
|
runs-on: ubuntu-latest
|
|
16
16
|
steps:
|
|
17
|
-
- uses: actions/checkout@
|
|
17
|
+
- uses: actions/checkout@v6
|
|
18
18
|
- name: Run Snyk to check for vulnerabilities
|
|
19
19
|
uses: snyk/actions/node@master
|
|
20
20
|
continue-on-error: true # To make sure that SARIF upload gets called
|
|
@@ -23,6 +23,6 @@ jobs:
|
|
|
23
23
|
with:
|
|
24
24
|
args: --sarif-file-output=snyk.sarif
|
|
25
25
|
- name: Upload result to GitHub Code Scanning
|
|
26
|
-
uses: github/codeql-action/upload-sarif@
|
|
26
|
+
uses: github/codeql-action/upload-sarif@v4
|
|
27
27
|
with:
|
|
28
28
|
sarif_file: snyk.sarif
|
|
@@ -22,10 +22,10 @@ jobs:
|
|
|
22
22
|
|
|
23
23
|
steps:
|
|
24
24
|
- name: Checkout repository
|
|
25
|
-
uses: actions/checkout@
|
|
25
|
+
uses: actions/checkout@v6
|
|
26
26
|
|
|
27
27
|
- name: Set up Node.js ${{ matrix.node-version }}
|
|
28
|
-
uses: actions/setup-node@
|
|
28
|
+
uses: actions/setup-node@v6
|
|
29
29
|
with:
|
|
30
30
|
node-version: ${{ matrix.node-version }}
|
|
31
31
|
|
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v24.12
|
package/.release-it.json
CHANGED
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "env-secrets",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "get secrets from a secrets vault and inject them into the running environment",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Mark C Allen (@markcallen)",
|
|
7
|
-
"repository":
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/markcallen/env-secrets.git"
|
|
10
|
+
},
|
|
8
11
|
"homepage": "https://github.com/markcallen/env-secrets",
|
|
9
12
|
"license": "MIT",
|
|
10
13
|
"private": false,
|
|
@@ -26,7 +29,7 @@
|
|
|
26
29
|
"devDependencies": {
|
|
27
30
|
"@types/debug": "^4.1.12",
|
|
28
31
|
"@types/jest": "^29.5.14",
|
|
29
|
-
"@types/node": "^18.19.
|
|
32
|
+
"@types/node": "^18.19.130",
|
|
30
33
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
31
34
|
"@typescript-eslint/parser": "^5.62.0",
|
|
32
35
|
"aws-sdk-client-mock": "^3.0.0",
|
|
@@ -39,16 +42,16 @@
|
|
|
39
42
|
"prettier": "^2.8.8",
|
|
40
43
|
"release-it": "^15.11.0",
|
|
41
44
|
"rimraf": "^3.0.2",
|
|
42
|
-
"ts-jest": "^29.4.
|
|
45
|
+
"ts-jest": "^29.4.6",
|
|
43
46
|
"ts-node": "^10.9.2",
|
|
44
47
|
"typescript": "^4.9.5"
|
|
45
48
|
},
|
|
46
49
|
"dependencies": {
|
|
47
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
|
48
|
-
"@aws-sdk/client-sts": "^3.
|
|
49
|
-
"@aws-sdk/credential-providers": "^3.
|
|
50
|
+
"@aws-sdk/client-secrets-manager": "^3.899.0",
|
|
51
|
+
"@aws-sdk/client-sts": "^3.899.0",
|
|
52
|
+
"@aws-sdk/credential-providers": "^3.899.0",
|
|
50
53
|
"commander": "^9.5.0",
|
|
51
|
-
"debug": "^4.4.
|
|
54
|
+
"debug": "^4.4.3"
|
|
52
55
|
},
|
|
53
56
|
"lint-staged": {
|
|
54
57
|
"*.{ts,js}": [
|
|
@@ -60,10 +63,11 @@
|
|
|
60
63
|
]
|
|
61
64
|
},
|
|
62
65
|
"publishConfig": {
|
|
63
|
-
"registry": "https://registry.npmjs.org/"
|
|
66
|
+
"registry": "https://registry.npmjs.org/",
|
|
67
|
+
"provenance": true
|
|
64
68
|
},
|
|
65
69
|
"bin": {
|
|
66
|
-
"env-secrets": "
|
|
70
|
+
"env-secrets": "dist/index.js"
|
|
67
71
|
},
|
|
68
72
|
"engines": {
|
|
69
73
|
"node": ">=18.0.0"
|