Skip to content

Commit b31748f

Browse files
authored
fix: fixing vulnerability: server-side request forgery in axios (#135)
* fix: minor tweak Signed-off-by: jkalanda <[email protected]>
1 parent 9c1bc79 commit b31748f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3921
-5860
lines changed

package-lock.json

Lines changed: 3873 additions & 5806 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,22 @@
3232
},
3333
"license": "Apache-2.0",
3434
"engines": {
35-
"node": ">=14.0.0"
35+
"node": ">=18.0.0"
3636
},
3737
"dependencies": {
3838
"@types/extend": "^3.0.4",
3939
"@types/node": "^20.11.28",
4040
"extend": "^3.0.2",
41-
"ibm-cloud-sdk-core": "^4.2.4"
41+
"ibm-cloud-sdk-core": "^5.0.1"
4242
},
4343
"devDependencies": {
44+
"@ibm-cloud/sdk-test-utilities": "^1.0.0",
4445
"@semantic-release/changelog": "^6.0.3",
4546
"@semantic-release/git": "^10.0.1",
4647
"@typescript-eslint/eslint-plugin": "^7.2.0",
4748
"@typescript-eslint/parser": "^7.2.0",
4849
"ansi-regex": "^6.0.1",
49-
"axios": "^1.6.7",
50+
"axios": "^1.7.4",
5051
"dotenv": "^16.4.5",
5152
"eslint": "^8.57.0",
5253
"eslint-config-google": "^0.14.0",

test/unit/cis/alerts.v1.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
// need to import the whole package to mock getAuthenticatorFromEnvironment
1818
const core = require('ibm-cloud-sdk-core');
19-
2019
const { NoAuthAuthenticator, unitTestUtils } = core;
2120

2221
const AlertsV1 = require('../../../dist/cis/alertsv1/v1');
@@ -27,7 +26,8 @@ const {
2726
checkMediaHeaders,
2827
expectToBePromise,
2928
checkForSuccessfulExecution,
30-
} = unitTestUtils;
29+
} = require('@ibm-cloud/sdk-test-utilities');
30+
3131

3232
const alertsServiceOptions = {
3333
authenticator: new NoAuthAuthenticator(),

test/unit/cis/authenticated-origin-pull-api.v1.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
// need to import the whole package to mock getAuthenticatorFromEnvironment
1818
const core = require('ibm-cloud-sdk-core');
19-
2019
const { NoAuthAuthenticator, unitTestUtils } = core;
2120

2221
const AuthenticatedOriginPullApiV1 = require('../../../dist/cis/authenticated-origin-pull-apiv1/v1');
@@ -28,7 +27,7 @@ const {
2827
expectToBePromise,
2928
checkUserHeader,
3029
checkForSuccessfulExecution,
31-
} = unitTestUtils;
30+
} = require('@ibm-cloud/sdk-test-utilities');
3231

3332
const authenticatedOriginPullApiServiceOptions = {
3433
authenticator: new NoAuthAuthenticator(),

test/unit/cis/caching-api.v1.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const {
2727
checkMediaHeaders,
2828
expectToBePromise,
2929
checkForSuccessfulExecution,
30-
} = unitTestUtils;
30+
} = require('@ibm-cloud/sdk-test-utilities');
3131

3232
const service = {
3333
authenticator: new NoAuthAuthenticator(),

test/unit/cis/cis-ip-api.v1.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const {
2727
checkMediaHeaders,
2828
expectToBePromise,
2929
checkForSuccessfulExecution,
30-
} = unitTestUtils;
30+
} = require('@ibm-cloud/sdk-test-utilities');
3131

3232
const service = {
3333
authenticator: new NoAuthAuthenticator(),

test/unit/cis/custom-pages.v1.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const {
2727
checkMediaHeaders,
2828
expectToBePromise,
2929
checkForSuccessfulExecution,
30-
} = unitTestUtils;
30+
} = require('@ibm-cloud/sdk-test-utilities');
3131

3232
const service = {
3333
authenticator: new NoAuthAuthenticator(),

test/unit/cis/dns-record-bulk.v1.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const {
2727
checkMediaHeaders,
2828
expectToBePromise,
2929
checkForSuccessfulExecution,
30-
} = unitTestUtils;
30+
} = require('@ibm-cloud/sdk-test-utilities');
3131

3232
const service = {
3333
authenticator: new NoAuthAuthenticator(),

test/unit/cis/dns-records.v1.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const {
2727
checkMediaHeaders,
2828
expectToBePromise,
2929
checkForSuccessfulExecution,
30-
} = unitTestUtils;
30+
} = require('@ibm-cloud/sdk-test-utilities');
3131

3232
const service = {
3333
authenticator: new NoAuthAuthenticator(),

test/unit/cis/edge-functions-api.v1.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const {
2828
expectToBePromise,
2929
checkUserHeader,
3030
checkForSuccessfulExecution,
31-
} = unitTestUtils;
31+
} = require('@ibm-cloud/sdk-test-utilities');
3232

3333
const service = {
3434
authenticator: new NoAuthAuthenticator(),

0 commit comments

Comments
 (0)