Debian Codegraph @

.github/workflows/codeql-analysis.yml

raw
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: [ master ]
17 pull_request:
18 # The branches below must be a subset of the branches above
19 branches: [ master ]
20 workflow_dispatch:
21 schedule:
22 - cron: '23 7 * * 5'
23
24 jobs:
25 analyze:
26 name: Analyze
27 runs-on: ubuntu-latest
28 env:
29 FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
30 permissions:
31 actions: read
32 contents: read
33 security-events: write
34
35 strategy:
36 fail-fast: false
37 matrix:
38 language: [ 'cpp' ]
39 # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
40 # Learn more:
41 # 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
42
43 steps:
44 - name: Checkout repository
45 env:
46 FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
47 uses: actions/checkout@v4
48
49 # Initializes the CodeQL tools for scanning.
50 - name: Initialize CodeQL
51 uses: github/codeql-action/init@v4
52 with:
53 languages: ${{ matrix.language }}
54 queries: +security-and-quality
55 # If you wish to specify custom queries, you can do so here or in a config file.
56 # By default, queries listed here will override any specified in a config file.
57 # Prefix the list here with "+" to use these queries and those in the config file.
58 # queries: ./path/to/local/query, your-org/your-repo/queries@main
59
60 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
61 # If this step fails, then you should remove it and run the build manually (see below)
62 #- name: Autobuild
63 # uses: github/codeql-action/autobuild@v1
64
65 # â„šī¸ Command-line programs to run using the OS shell.
66 # 📚 https://git.io/JvXDl
67
68 # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines
69 # and modify them (or add more) to build your code if your project
70 # uses a compiled language
71
72 - name: Install deps
73 run: |
74 sudo apt-get update
75 sudo apt-get install make gcc libcap-dev libreadline-dev libacl1-dev libmagic-dev
76
77 - name: Compile Clifm
78 run: |
79 make
80
81 - name: Perform CodeQL Analysis
82 uses: github/codeql-action/analyze@v4