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: "CodeQL" 13 14on: 15 push: 16 branches: [ master ] 17 pull_request: 18 # The branches below must be a subset of the branches above 19 branches: [ master ] 20 schedule: 21 - cron: '35 12 * * 4' 22 23jobs: 24 analyze: 25 name: Analyze 26 runs-on: ubuntu-latest 27 container: registry.fedoraproject.org/fedora:latest 28 29 strategy: 30 fail-fast: false 31 matrix: 32 language: [ 'cpp', 'python' ] 33 # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] 34 # Learn more: 35 # 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 36 37 steps: 38 - name: Checkout repository 39 uses: actions/checkout@v2 40 41 - name: get envinronment info 42 run: uname -a 43 44 - name: print fedora version 45 run: cat /etc/fedora-release 46 47 - name: install dependencies 48 run: dnf -y install autoconf automake libtool gcc libattr-devel kernel-headers swig python3-devel python3 python-unversioned-command which git 49 50 51 # Initializes the CodeQL tools for scanning. 52 - name: Initialize CodeQL 53 uses: github/codeql-action/init@v1 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 # queries: ./path/to/local/query, your-org/your-repo/queries@main 60 61 # ℹ️ Command-line programs to run using the OS shell. 62 # https://git.io/JvXDl 63 64 # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines 65 # and modify them (or add more) to build your code if your project 66 # uses a compiled language 67 68 - run: | 69 ./autogen.sh 70 ./configure --with-python=no --with-python3 71 make 72 73 - name: Perform CodeQL Analysis 74 uses: github/codeql-action/analyze@v1 75