forked from LibreSprite/LibreSprite
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (61 loc) · 2.23 KB
/
codeql-analysis.yml
File metadata and controls
62 lines (61 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: [ trunk ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ trunk ]
schedule:
- cron: '30 21 * * 0'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'NO_SW_CHANGE') && !contains(github.event.pull_request.body, 'NO_SW_CHANGE') }}
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp', 'javascript', 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# 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
steps:
- name: Checkout repository
uses: actions/checkout@v3
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- uses: actions/checkout@v3
# install dependencies
- name: update
run: sudo apt-get update
- name: boost
run: |
sudo apt-get install g++ libcurl4-gnutls-dev libfreetype6-dev libgif-dev libgtest-dev libjpeg-dev libpixman-1-dev libpng-dev libsdl2-dev libsdl2-image-dev libtinyxml2-dev libarchive-dev libx11-dev libxcursor-dev ninja-build libnode-dev zlib1g-dev
pip install cmake
# build project
- name: git
run: git submodule update --init --recursive
- name: mkdir
run: mkdir build
- name: cmake
run: cd build && cmake -G Ninja .. && ninja besprited
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4