|
| 1 | +# For most projects, this workflow file will not need changing; you simply need |
| 2 | +# to commit it to your repository. |
| 3 | +# |
| 4 | +# You may wish to alter this file to override the set of languages analyzed, |
| 5 | +# or to provide custom queries or build logic. |
| 6 | +# |
| 7 | +# ******** NOTE ******** |
| 8 | +# We have attempted to detect the languages in your repository. Please check |
| 9 | +# the `language` matrix defined below to confirm you have the correct set of |
| 10 | +# supported CodeQL languages. |
| 11 | +# |
| 12 | +name: "CodeQL" |
| 13 | + |
| 14 | +on: |
| 15 | + push: |
| 16 | + branches: [ "develop", master ] |
| 17 | + pull_request: |
| 18 | + branches: [ "develop" ] |
| 19 | + schedule: |
| 20 | + - cron: '0 5 * * 4' |
| 21 | + |
| 22 | +jobs: |
| 23 | + analyze: |
| 24 | + name: Analyze |
| 25 | + runs-on: ubuntu-latest |
| 26 | + permissions: |
| 27 | + actions: read |
| 28 | + contents: read |
| 29 | + security-events: write |
| 30 | + |
| 31 | + strategy: |
| 32 | + fail-fast: false |
| 33 | + matrix: |
| 34 | + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support |
| 35 | + language: [ 'javascript' ] |
| 36 | + |
| 37 | + steps: |
| 38 | + - name: Checkout repository |
| 39 | + uses: actions/checkout@v3 |
| 40 | + |
| 41 | + # Initializes the CodeQL tools for scanning. |
| 42 | + - name: Initialize CodeQL |
| 43 | + uses: github/codeql-action/init@v2 |
| 44 | + with: |
| 45 | + languages: ${{ matrix.language }} |
| 46 | + # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs |
| 47 | + # queries: security-extended,security-and-quality |
| 48 | + |
| 49 | + - uses: actions/setup-node@v3 |
| 50 | + with: |
| 51 | + node-version: 16.x |
| 52 | + cache: yarn |
| 53 | + - run: yarn --immutable |
| 54 | + - run: yarn build |
| 55 | + |
| 56 | + - name: Perform CodeQL Analysis |
| 57 | + uses: github/codeql-action/analyze@v2 |
| 58 | + with: |
| 59 | + category: "/language:${{matrix.language}}" |
0 commit comments