Skip to content

Commit

Permalink
Initial CI flow (#14)
Browse files Browse the repository at this point in the history
* Initial CI flow

* Update false_positive file to current line numbers
  • Loading branch information
AaronAtDuo authored Jun 1, 2023
1 parent 2ed35df commit f12f640
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .false_positive.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
*:duo.c:449
*:duo.c:457
*:duo.c:497
*:duo.c:232
// Suppress "Memory leak" error in `return (duo_auth_free(auth));`
*:duo.c:479
// Suppress "Memory leak" error in `return (duo_auth_free(auth));`
*:duo.c:487
// Suppress "Memory leak" error in `return (auth);`
*:duo.c:527
26 changes: 26 additions & 0 deletions .github/workflows/libduo-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: libduo CI
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
ci:
name: libduo CI - test
runs-on: ubuntu-latest

steps:
- name: Install packages
run: sudo apt-get install -y gcc make libssl-dev cppcheck

- name: Checkout
uses: actions/checkout@v3

- name: Build
run: ./configure && make

- name: Static analysis
run: cppcheck --quiet --force --suppressions-list=.false_positive.txt --error-exitcode=1 .

0 comments on commit f12f640

Please sign in to comment.