Skip to content

upgrade inso pkgs#7592

Merged
jackkav merged 16 commits intoKong:developfrom
jackkav:inso-fourth-pass
Jun 27, 2024
Merged

upgrade inso pkgs#7592
jackkav merged 16 commits intoKong:developfrom
jackkav:inso-fourth-pass

Conversation

@jackkav
Copy link
Contributor

@jackkav jackkav commented Jun 26, 2024

  • cosmiconfig
  • consola
  • enquirer
  • commander

ref INS-4021

workingDir?: string,
): Promise<string> {
const outputPath = path.isAbsolute(output) ? output : path.join(workingDir || process.cwd(), output);
const outputPath = path.isAbsolute(output) ? output : path.resolve(workingDir || process.cwd(), output);

Check warning

Code scanning / Semgrep OSS

Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal

Detected possible user input going into a `path.join` or `path.resolve` function. This could possibly lead to a path traversal vulnerability, where the attacker can access arbitrary files stored in the file system. Instead, be sure to sanitize or validate user input first.
workingDir?: string,
): Promise<string> {
const outputPath = path.isAbsolute(output) ? output : path.join(workingDir || process.cwd(), output);
const outputPath = path.isAbsolute(output) ? output : path.resolve(workingDir || process.cwd(), output);

Check warning

Code scanning / Semgrep OSS

Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal

Detected possible user input going into a `path.join` or `path.resolve` function. This could possibly lead to a path traversal vulnerability, where the attacker can access arbitrary files stored in the file system. Instead, be sure to sanitize or validate user input first.
@jackkav jackkav force-pushed the inso-fourth-pass branch from 4abcf96 to beb6472 Compare June 27, 2024 10:49
@jackkav jackkav force-pushed the inso-fourth-pass branch from beb6472 to a9bd89a Compare June 27, 2024 10:50
@jackkav jackkav marked this pull request as ready for review June 27, 2024 10:50
@jackkav jackkav merged commit c21698d into Kong:develop Jun 27, 2024
@jackkav jackkav deleted the inso-fourth-pass branch June 27, 2024 10:53
@jackkav jackkav restored the inso-fourth-pass branch June 27, 2024 10:53
@jackkav jackkav deleted the inso-fourth-pass branch June 27, 2024 10:53
stefancruz pushed a commit to stefancruz/insomnia that referenced this pull request Jun 30, 2024
* upgrade cosmiconfig

* remove one layer of indirection

* more indirection

* upgrade commander

* fix tests

* remove unusedExitoverride

* flatten

* inline

* flatten config

* fix test

* docs

* flatten logging

* dont default to script

* fix test docs and config search

* refactor exportSpec

* fixed test
CurryYangxx pushed a commit that referenced this pull request Jul 5, 2024
* upgrade cosmiconfig

* remove one layer of indirection

* more indirection

* upgrade commander

* fix tests

* remove unusedExitoverride

* flatten

* inline

* flatten config

* fix test

* docs

* flatten logging

* dont default to script

* fix test docs and config search

* refactor exportSpec

* fixed test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants