fix: use repo secrets for generating package-lock.json path in GitHub… #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | |
on: | |
push: | |
branches: [ main, development ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ development ] | |
schedule: | |
- cron: '0 23 * * 6' | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ['javascript'] | |
# CodeQL supports ['cpp', 'csharp', 'go', 'java', 'javascript', 'python'] | |
# Learn more about CodeQL language support at the following link: | |
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v1 | |
with: | |
languages: ${{ matrix.language }} | |
# If you wish to specify custom queries, you can do so here or in a config file | |
# By default, queries listed here will override any specified in a config file. | |
# queries: ./path/to/local/query,github.com/org/repo/queries@main | |
- name: Install dependencies (server) | |
run: | | |
cd server | |
npm install | |
- name: Install dependencies and build (client) | |
run: | | |
cd tenant_frontend | |
npm ci | |
npm run build | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v1 |