From 96fe5bf7a765c7421ea8b46b0914a660bec4f0a2 Mon Sep 17 00:00:00 2001 From: Tamir Kamara <26870601+tamirkamara@users.noreply.github.com> Date: Tue, 18 Oct 2022 11:15:20 +0300 Subject: [PATCH] CodeQL for Java and Javascript (#2691) * CodeQL for Java and Javascript * fix spaces * fix log security * remove log line Co-authored-by: Marcus Robinson --- .github/workflows/codeql-analysis.yml | 9 ++++++++- ui/app/src/components/workspaces/WorkspaceProvider.tsx | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 54b91719ae..053484ce05 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,7 +38,7 @@ jobs: strategy: fail-fast: false matrix: - language: ['python'] + language: ['python', 'java', 'javascript'] steps: - name: Checkout repository @@ -51,5 +51,12 @@ jobs: with: languages: ${{ matrix.language }} + - if: matrix.language == 'java' + name: Build Java + working-directory: templates/workspace_services/guacamole/guacamole-server/guacamole-auth-azure + run: mvn package + - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}" diff --git a/ui/app/src/components/workspaces/WorkspaceProvider.tsx b/ui/app/src/components/workspaces/WorkspaceProvider.tsx index 01e487e499..cb3e5a335f 100644 --- a/ui/app/src/components/workspaces/WorkspaceProvider.tsx +++ b/ui/app/src/components/workspaces/WorkspaceProvider.tsx @@ -49,7 +49,6 @@ export const WorkspaceProvider: React.FunctionComponent = () => { let wsRoles: Array = []; console.log('Getting workspace'); await apiCall(`${ApiEndpoint.Workspaces}/${workspaceId}`, HttpMethod.Get, ws_application_id_uri, undefined, ResultType.JSON, (roles: Array) => { - config.debug && console.log(`Workspace roles for ${workspaceId}`, roles); workspaceCtx.current.setRoles(roles); wsRoles = roles; }, true);