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