Skip to content

Commit

Permalink
CodeQL for Java and Javascript (#2691)
Browse files Browse the repository at this point in the history
* CodeQL for Java and Javascript

* fix spaces

* fix log security

* remove log line

Co-authored-by: Marcus Robinson <[email protected]>
  • Loading branch information
tamirkamara and marrobi authored Oct 18, 2022
1 parent c036af7 commit 96fe5bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ['python']
language: ['python', 'java', 'javascript']

steps:
- name: Checkout repository
Expand All @@ -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}}"
1 change: 0 additions & 1 deletion ui/app/src/components/workspaces/WorkspaceProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export const WorkspaceProvider: React.FunctionComponent = () => {
let wsRoles: Array<string> = [];
console.log('Getting workspace');
await apiCall(`${ApiEndpoint.Workspaces}/${workspaceId}`, HttpMethod.Get, ws_application_id_uri, undefined, ResultType.JSON, (roles: Array<string>) => {
config.debug && console.log(`Workspace roles for ${workspaceId}`, roles);
workspaceCtx.current.setRoles(roles);
wsRoles = roles;
}, true);
Expand Down

0 comments on commit 96fe5bf

Please sign in to comment.