We are using sonar community edition 9.9.1 version installed through the zip file.
Below is our code in user_service.ts:
public accessToken() {
const payload = new HttpParams()
.set("username", "xxxx")
.set("password", "xxxx");
Quality profile for this project is show as:
TypeScript Instance default [208] active rules and Hard-coded credentials are security-sensitive is present in this 208 rules under security hotspot.
But during the scan - hardcoded credentials is not getting caught. It says 0 security hotspot.
Am I missing anything here, pls help
Thanks,
Champa
This is an open community with people volunteering their free time to provide assistance. We’re eager to contribute to the community, but you are not guaranteed a fast response.
Can you please explain what is the HttpParams class? Is it part of your project or an API of some library? As a general rule, S2068 supports some APIs, but it can not detect arbitrary calls.