2020-08-10 17:19:57 -04:00
|
|
|
|
name: "CodeQL"
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches: [master, ]
|
|
|
|
|
pull_request:
|
|
|
|
|
# The branches below must be a subset of the branches above
|
|
|
|
|
branches: [master]
|
|
|
|
|
schedule:
|
|
|
|
|
- cron: '0 19 * * 6'
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
analyse:
|
|
|
|
|
name: Analyse
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout repository
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
|
|
|
- name: Initialize CodeQL
|
|
|
|
|
uses: github/codeql-action/init@v1
|
2020-11-21 07:04:21 -05:00
|
|
|
|
with:
|
|
|
|
|
config-file: ./.github/codeql/codeql-config.yml
|
2020-08-10 17:19:57 -04:00
|
|
|
|
# Override language selection by uncommenting this and choosing your languages
|
|
|
|
|
# with:
|
|
|
|
|
# languages: go, javascript, csharp, python, cpp, java
|
|
|
|
|
|
|
|
|
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
|
|
|
|
# If this step fails, then you should remove it and run the build manually (see below)
|
2020-08-11 15:34:38 -04:00
|
|
|
|
#- name: Autobuild
|
|
|
|
|
# uses: github/codeql-action/autobuild@v1
|
2020-08-10 17:19:57 -04:00
|
|
|
|
|
|
|
|
|
# ℹ️ Command-line programs to run using the OS shell.
|
|
|
|
|
# 📚 https://git.io/JvXDl
|
|
|
|
|
|
|
|
|
|
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
|
|
|
|
# and modify them (or add more) to build your code if your project
|
|
|
|
|
# uses a compiled language
|
2020-08-11 15:34:38 -04:00
|
|
|
|
- run: |
|
|
|
|
|
sudo apt-get update
|
|
|
|
|
sudo apt-get install -yq build-essential clang clang-tools git autotools-dev autoconf libtool gettext gawk gperf antlr3 libantlr3c-dev libconfuse-dev libunistring-dev libsqlite3-dev libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavutil-dev libasound2-dev libmxml-dev libgcrypt20-dev libavahi-client-dev zlib1g-dev libevent-dev libplist-dev libsodium-dev libcurl4-openssl-dev libjson-c-dev libprotobuf-c-dev libpulse-dev libwebsockets-dev libgnutls28-dev
|
|
|
|
|
autoreconf -vi
|
2021-03-20 02:47:31 -04:00
|
|
|
|
./configure --enable-lastfm --enable-chromecast
|
|
|
|
|
scan-build --status-bugs -disable-checker deadcode.DeadStores make
|
2020-08-10 17:19:57 -04:00
|
|
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
|
|
|
|
uses: github/codeql-action/analyze@v1
|