Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
sonarqube-gate-check
Advanced tools
Launch SonarQube analysis and add a verification on the status of the Quality Gate after the report has ended
Launch SonarQube analysis using the sonarqube-scanner npm module by @bellingard : https://github.com/bellingard/sonar-scanner-npm then it check the Quality Gate status after report has ended.
Tested with SonarQube 6.5
npm install -D sonarqube-gate-check
Insert a script into your package.json :
"scripts" : {
"verify": "sonarqube-gate-check"
}
You can use a sonar-project.properties file at your root folder.
Look at Analysis Parameters for available values.
Best practices are to not set critical settings in your repository.
For example committing the login token into your sonar-project.properties sould absolutely be avoided.
This module allows you to use the following environment variables to provide runtime parameters :
SONAR_URL
: Url of your SonarQube server. Defaults to http://localhost:9000SONAR_LOGIN
: token or login (in latter case you must not set a password)SONAR_PASSWORD
: (in case you are not using authentication token but you should)SONAR_SKIP
: to disable the sonar analysisSONAR_GATE_SKIP
: in case you would like to disable the quality check.sonar.sources=src
sonar.sourceEncoding=UTF-8
sonar.exclusions=**/node_modules/**
Then run the verify :
export SONAR_URL=http://myhost.com/sonar
export SONAR_LOGIN=01234567890123456
npm run verify
You can activate debug logs with the DEBUG environment variable (using the debug package) :
DEBUG=* npm run verify
or more accurately :
DEBUG=sonarqube-gate-check:* npm run verify
FAQs
Launch SonarQube analysis and add a verification on the status of the Quality Gate after the report has ended
The npm package sonarqube-gate-check receives a total of 365 weekly downloads. As such, sonarqube-gate-check popularity was classified as not popular.
We found that sonarqube-gate-check demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.