Skip to content

Commit

Permalink
Bump workflows to current Node.JS versions (#73)
Browse files Browse the repository at this point in the history
* Bump workflows to current Node.JS versions

* Also fix broken tests
  • Loading branch information
martin-helmich authored May 2, 2023
1 parent 04f6809 commit 664ee4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "16.x"
node-version: "18.x"
- run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
- run: yarn
- run: yarn compile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 4 additions & 0 deletions src/security.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
export function redactResponseBodyForLogging(body: any): any {
if (typeof body !== "object") {
return body;
}

if ("kind" in body && body.kind === "Secret") {
const out = structuredClone(body);

Expand Down

0 comments on commit 664ee4f

Please sign in to comment.