Skip to content

Commit

Permalink
Merge pull request #275 from ONLYOFFICE/fix/codeql-fix
Browse files Browse the repository at this point in the history
Fix the build of backend (nodejs) in codeql action
  • Loading branch information
pavelbannov authored Mar 12, 2024
2 parents f51d98b + 60137c8 commit b51d332
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down Expand Up @@ -90,15 +90,19 @@ jobs:
- name: update yarn
if: matrix.language == 'javascript-typescript'
run: |
yarn set version 3.2.4
YARN_VER=$(cat ./common/ASC.SsoAuth/package.json | jq -r '.packageManager' | egrep -i -o '[0-9].[0-9].[0-9]')
yarn set version ${YARN_VER}
- name: build js
if: matrix.language == 'javascript-typescript'
run: |
currentDir=$(pwd)
services=("ASC.Socket.IO" "ASC.SsoAuth")
for i in ${services[@]}; do
cd ./common/${i}
echo "==== build ${i} ===="
yarn install --cwd ./common/${i} --frozen-lockfile
yarn install --frozen-lockfile
cd ${currentDir}
done
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Expand Down

0 comments on commit b51d332

Please sign in to comment.