From 732ba0d4f699b811c5de5e8e970fb018784cd3fb Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Tue, 8 Aug 2023 21:30:32 +0200 Subject: [PATCH 1/2] CI: add scheduled Coverity scan Signed-off-by: Ilya Shipitsin --- .github/workflows/coverity.yml | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/coverity.yml diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml new file mode 100644 index 000000000..00d775729 --- /dev/null +++ b/.github/workflows/coverity.yml @@ -0,0 +1,47 @@ +name: Coverity + +on: + schedule: + - cron: "0 0 * * *" + +permissions: + contents: read + +jobs: + scan: + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'ppp-project' }} + steps: + - uses: actions/checkout@v3 + - name: Download Coverity build tool + run: | + wget -c -N https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=pppd" -O coverity_tool.tar.gz + mkdir coverity_tool + tar xzf coverity_tool.tar.gz --strip 1 -C coverity_tool + + - name: install required packages + run: | + sudo DEBIAN_FRONTEND=noninteractive apt-get -y -qq update + sudo DEBIAN_FRONTEND=noninteractive apt-get -y -qq install \ + build-essential autoconf automake pkg-config libtool m4 autoconf-archive \ + libssl-dev libatm1-dev libpcap-dev libsystemd-dev libpam0g-dev + + - name: Configure + run: | + ./autogen.sh --enable-multilink --enable-systemd --enable-cbcp + + - name: Build with Coverity build tool + run: | + export PATH=`pwd`/coverity_tool/bin:$PATH + cov-build --dir cov-int make + + - name: Submit build result to Coverity Scan + run: | + tar czvf cov.tar.gz cov-int + curl --form token=${{ secrets.COVERITY_SCAN_TOKEN }} \ + --form email=chipitsine@gmail.com \ + --form file=@cov.tar.gz \ + --form version="Commit $GITHUB_SHA" \ + --form description="Build submitted via CI" \ + https://scan.coverity.com/builds?project=pppd + From 5bbdb27257d6e81c423b0562197467f412df0fb3 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sat, 17 Aug 2024 09:41:29 +0200 Subject: [PATCH 2/2] Update coverity.yml --- .github/workflows/coverity.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 00d775729..c5e5eae00 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -3,6 +3,7 @@ name: Coverity on: schedule: - cron: "0 0 * * *" + workflow_dispatch: permissions: contents: read