File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1919 - name : Authenticate with GitHub package registry
2020 run : echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
2121 - name : Install dependencies
22+ run : npm cache clean --force
2223 run : npm install
2324 - name : Run e2e tests
2425 if : runner.os == 'Linux'
5960 - name : Authenticate with GitHub package registry
6061 run : echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
6162 - name : Install dependencies
63+ run : npm cache clean --force
6264 run : npm install
6365 - name : Run unit tests with coverage
6466 run : npm run unit-coverage
7981 - name : Authenticate with GitHub package registry
8082 run : echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
8183 - name : Install dependencies
84+ run : npm cache clean --force
8285 run : npm install
8386 - name : Run tests
8487 if : runner.os != 'Linux'
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { messages } from "../../utils/common/messages";
1010import { orderResults } from "../../utils/utils" ;
1111import { ResultsProvider } from "../resultsProviders" ;
1212import CxScaRealTimeErrors from "@checkmarxdev/ast-cli-javascript-wrapper/dist/main/scaRealtime/CxScaRealTimeErrors" ;
13+ import { cx } from "../../cx" ;
1314
1415export class SCAResultsProvider extends ResultsProvider {
1516 public process ;
@@ -40,11 +41,17 @@ export class SCAResultsProvider extends ResultsProvider {
4041 }
4142
4243 async refreshData ( message ?: string ) : Promise < void > {
43- this . showStatusBarItem ( constants . scaScanRunningLog ) ;
44- this . message = message ? message : messages . scaStartScan ;
45- this . data = this . generateTree ( ) . children ;
46- this . _onDidChangeTreeData . fire ( undefined ) ;
47- this . hideStatusBarItem ( ) ;
44+ if ( ! await cx . isStandaloneEnabled ( this . logs ) ) {
45+ this . showStatusBarItem ( constants . scaScanRunningLog ) ;
46+ this . message = message ? message : messages . scaStartScan ;
47+ this . data = this . generateTree ( ) . children ;
48+ this . _onDidChangeTreeData . fire ( undefined ) ;
49+ this . hideStatusBarItem ( ) ;
50+ }
51+ else {
52+ this . data = [ ] ;
53+ this . _onDidChangeTreeData . fire ( undefined ) ;
54+ }
4855 }
4956
5057
You can’t perform that action at this time.
0 commit comments