Skip to content

Remove the resolve cinc auditor path function - #7560

Merged
Amndeep7 merged 8 commits into
mainfrom
remove_resolve_cincauditorpath
Jun 15, 2026
Merged

Amndeep7 merged 8 commits into
mainfrom
remove_resolve_cincauditorpath

Conversation

@Amndeep7

@Amndeep7 Amndeep7 commented May 13, 2026 •

Copy link
Copy Markdown
Contributor
  1. remove the resolve cinc auditor path function which does not actually properly resolve the security hotspot described by SonarQube's javascript:S4036. what it did was grab the first version of the cinc-auditor binary off of the path and use that the entire time. the security hotspot says that leveraging the path at all is what is the security concern.

  2. instead we tell the user to supply us a path to an inspec or cinc auditor binary.

  3. added some tests to validate that everything still works

  4. fixed some bugs that we found along the way

Amndeep7 added 3 commits May 13, 2026 00:28
…lly properly resolve the security hotspot described by SonarQube's javascript:S4036. what it did was grab the first version of the cinc-auditor binary off of the path and use that the entire time. the security hotspot says that leveraging the path at all is what is the security concern. 2) instead we tell the user to supply us a path to an inspec or cinc auditor binary. 3) added some tests to validate that everything still works

Signed-off-by: Amndeep Singh Mann <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
21.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Amndeep7 added 2 commits June 15, 2026 14:26
…e actual binary is probably cinc-auditor.bat or some such. the shell does the resolution properly but execfilesync does not so fall back to shell resolution here

Signed-off-by: Amndeep Singh Mann <[email protected]>
@Amndeep7
Amndeep7 marked this pull request as ready for review June 15, 2026 19:15
@Amndeep7

Copy link
Copy Markdown
Contributor Author

The SQ failure is cause of 'code duplication' which is in this case not preventable.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
7.5% Duplication on New Code (required ≤ 3%)
D Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

…ot have the inspec path set

Signed-off-by: Amndeep Singh Mann <[email protected]>
@sonarqubecloud

sonarqubecloud Bot commented Jun 15, 2026 •

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
7.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@Amndeep7
Amndeep7 merged commit f9ecbc9 into main Jun 15, 2026
17 of 18 checks passed
@Amndeep7
Amndeep7 deleted the remove_resolve_cincauditorpath branch June 15, 2026 20:07
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