-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable the CodeQL analysis on the master branch for push, pull-request and nightly. Signed-off-by: Iker Pedrosa <[email protected]> Reviewed-by: Alexey Tikhonov <[email protected]> Reviewed-by: Pavel Březina <[email protected]>
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: 'Install dependencies' | ||
description: 'Install dependencies to build sssd' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- shell: bash | ||
run: | | ||
cd contrib/ci/ | ||
. deps.sh | ||
deps_install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: "Static code analysis" | ||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
schedule: | ||
# Everyday at midnight | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
codeql: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
security-events: write | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
id: dependencies | ||
uses: ./.github/actions/install-dependencies | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
queries: +security-and-quality | ||
|
||
- name: Compile sssd | ||
run: | | ||
source contrib/fedora/bashrc_sssd | ||
cd contrib/ci/ | ||
. configure.sh | ||
cd ../.. | ||
reconfig "${CONFIGURE_ARG_LIST[@]}" | ||
PROCESSORS=$(/usr/bin/getconf _NPROCESSORS_ONLN) | ||
make -j$PROCESSORS | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 | ||
with: | ||
languages: cpp, python |