Subversion Repositories tpanel

Rev

Rev 363 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
363 andreas 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: [ "main" ]
17
  pull_request:
18
    # The branches below must be a subset of the branches above
19
    branches: [ "main" ]
20
  schedule:
21
    - cron: '37 18 * * 6'
22
 
23
jobs:
24
  analyze:
25
    name: Analyze
26
    # Runner size impacts CodeQL analysis time. To learn more, please see:
27
    #   - https://gh.io/recommended-hardware-resources-for-running-codeql
28
    #   - https://gh.io/supported-runners-and-hardware-resources
29
    #   - https://gh.io/using-larger-runners
30
    # Consider using larger runners for possible analysis time improvements.
31
    runs-on: self-hosted
32
    timeout-minutes: ${{ 360 }}
33
    permissions:
34
      actions: read
35
      contents: read
36
      security-events: write
37
 
38
    strategy:
39
      fail-fast: false
40
      matrix:
41
        language: [ 'cpp' ]
42
        # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
43
        # Use only 'java' to analyze code written in Java, Kotlin or both
44
        # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
45
        # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
46
 
47
    steps:
48
    - name: Checkout repository
49
      uses: actions/checkout@v3
50
 
51
    # Initializes the CodeQL tools for scanning.
52
    - name: Initialize CodeQL
469 andreas 53
      uses: github/codeql-action/init@v3
363 andreas 54
      with:
55
        languages: ${{ matrix.language }}
56
        # If you wish to specify custom queries, you can do so here or in a config file.
57
        # By default, queries listed here will override any specified in a config file.
58
        # Prefix the list here with "+" to use these queries and those in the config file.
59
 
60
        # For more 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
61
        # queries: security-extended,security-and-quality
62
 
63
 
64
    # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
65
    # If this step fails, then you should remove it and run the build manually (see below)
66
    #- name: Autobuild
469 andreas 67
    #  uses: github/codeql-action/autobuild@v3
363 andreas 68
 
69
    # â„šī¸ Command-line programs to run using the OS shell.
70
    # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
71
 
72
    #   If the Autobuild fails above, remove it and uncomment the following three lines.
73
    #   modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
74
 
75
    - run: |
76
        echo "Run, Build Application using script"
77
        ./tbuild/compile_build.sh
78
 
79
    - name: Perform CodeQL Analysis
469 andreas 80
      uses: github/codeql-action/analyze@v3
363 andreas 81
      with:
82
        category: "/language:${{matrix.language}}"