https://dev.kronoz.win/r/marzneshin.git
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#
12name: "Dashboard CodeQL"
13
14on:
15 push:
16 branches: [ "master" ]
17 paths:
18 - 'dashboard/**'
19 pull_request:
20 branches: [ "master" ]
21 paths:
22 - 'dashboard/**'
23 schedule:
24 - cron: '40 13 * * 2'
25
26jobs:
27 analyze:
28 name: Analyze
29 # Runner size impacts CodeQL analysis time. To learn more, please see:
30 # - https://gh.io/recommended-hardware-resources-for-running-codeql
31 # - https://gh.io/supported-runners-and-hardware-resources
32 # - https://gh.io/using-larger-runners
33 # Consider using larger runners for possible analysis time improvements.
34 runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
35 timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
36 permissions:
37 # required for all workflows
38 security-events: write
39
40 # only required for workflows in private repositories
41 actions: read
42 contents: read
43
44 strategy:
45 fail-fast: false
46 matrix:
47 language: [ 'javascript-typescript' ]
48
49 steps:
50 - name: Checkout repository
51 uses: actions/checkout@v4
52
53 # Initializes the CodeQL tools for scanning.
54 - name: Initialize CodeQL
55 uses: github/codeql-action/init@v3
56 with:
57 languages: ${{ matrix.language }}
58
59 - name: Autobuild
60 uses: github/codeql-action/autobuild@v3
61
62 - name: Perform CodeQL Analysis
63 uses: github/codeql-action/analyze@v3
64 with:
65 category: "/language:${{matrix.language}}"