You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# The branches below must be a subset of the branches above
8
+
branches: [ "master", "ci" ]
9
+
schedule:
10
+
- cron: '41 12 * * 0'
11
+
12
+
jobs:
13
+
analyze:
14
+
name: Analyze
15
+
runs-on: ubuntu-latest
16
+
permissions:
17
+
actions: read
18
+
contents: read
19
+
security-events: write
20
+
21
+
strategy:
22
+
fail-fast: false
23
+
matrix:
24
+
language: [ 'cpp', 'python' ]
25
+
26
+
steps:
27
+
- name: Checkout repository
28
+
uses: actions/checkout@v3
29
+
30
+
# Initializes the CodeQL tools for scanning.
31
+
- name: Initialize CodeQL
32
+
uses: github/codeql-action/init@v2
33
+
with:
34
+
languages: ${{ matrix.language }}
35
+
# If you wish to specify custom queries, you can do so here or in a config file.
36
+
# By default, queries listed here will override any specified in a config file.
37
+
# Prefix the list here with "+" to use these queries and those in the config file.
38
+
39
+
# 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
40
+
# queries: security-extended,security-and-quality
41
+
42
+
43
+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
44
+
# If this step fails, then you should remove it and run the build manually (see below)
45
+
- name: Install dependencies
46
+
run: |
47
+
./hammer.py prepare-system -p local -w docs,netconf,perfdhcp,shell,tls,unittest
48
+
49
+
- name: Inspect system CPU
50
+
run: cat /proc/cpuinfo
51
+
52
+
# We want to enable shell, so python files are generated. And CodeQL can
- if test -n "${git_diff}"; then printf '%s\n\ngit diff should be empty here under all circumstances. CI broken?\n' "${git_diff}"; exit 1; fi
161
71
- ./tools/print-generated-files.sh -a
162
72
- git_diff=$(git diff)
163
73
- if test -n "${git_diff}"; then printf '%s\n\n.gitattributes are missing a generated file. Please run "./tools/print-generated-files.sh -a" and commit the resulting change to fix them.\n' "${git_diff}"; exit 1; fi
# If we reached this point, it means pylint passed. Run again with all warnings enabled, but ignore the return code to show a list of improvements that the developer could do, even when CI is passing.
0 commit comments