fix(ping): correct inverted strncasecmp in get_namebyhost #182
Workflow file for this run
This file contains hidden or 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
| name: CI | |
| on: | |
| push: | |
| branches: [develop] | |
| pull_request: | |
| branches: [develop] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| compiler: [gcc, clang] | |
| env: | |
| CC: ${{ matrix.compiler }} | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| mysql-server libmysqlclient-dev \ | |
| libsnmp-dev libssl-dev build-essential \ | |
| help2man autoconf automake libtool dos2unix | |
| - name: Prepare for Spine Build | |
| run: | | |
| ./bootstrap | |
| ./configure --enable-warnings | |
| - name: Build Spine | |
| run: | | |
| make -j | |
| # cppcheck: | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| # | |
| # - name: Install cppcheck | |
| # run: | | |
| # sudo apt-get update | |
| # sudo apt-get install -y cppcheck build-essential | |
| # | |
| # - name: Run cppcheck | |
| # run: | | |
| # cppcheck \ | |
| # --enable=all \ | |
| # --std=c11 \ | |
| # --error-exitcode=1 \ | |
| # --suppress=missingIncludeSystem \ | |
| # --suppress=unusedFunction \ | |
| # --suppress=checkersReport \ | |
| # --suppress=variableScope \ | |
| # --suppress=unreadVariable \ | |
| # --suppress=shadowVariable \ | |
| # --suppress=constVariablePointer \ | |
| # --suppress=redundantAssignment \ | |
| # --suppress=toomanyconfigs \ | |
| # *.c *.h | |
| flawfinder: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 | |
| with: | |
| python-version: "3.x" | |
| - name: Install flawfinder | |
| run: pip install flawfinder==2.0.19 | |
| # Note: flawfinder will light up like a christmas tree on this codebase. | |
| # error-level=5 means only critical hits fail the build — the rest is | |
| # informational so we have a baseline to chip away at. | |
| - name: Run flawfinder | |
| run: | | |
| flawfinder \ | |
| --minlevel=3 \ | |
| --error-level=5 \ | |
| --columns \ | |
| --context \ | |
| . | tee flawfinder-report.txt | |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 | |
| if: always() | |
| with: | |
| name: flawfinder-report | |
| path: flawfinder-report.txt |