From 3d13c825c0750f1ee6f91f2e6f16c1cabd823b09 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 19 Jun 2020 14:40:58 +0200 Subject: [PATCH] ci: run coverity check every night Add a github workflow that will trigger the run of coverity every night at 05:00 UTC. Uses the new Makefile coverity targets. --- .github/workflows/coverity.yml | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 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 00000000..0f85428e --- /dev/null +++ b/.github/workflows/coverity.yml @@ -0,0 +1,39 @@ +name: Coverity +on: + schedule: + - cron: '0 5 * * *' # Daily at 05:00 UTC + +jobs: + coverity: + name: "Test Suite" + runs-on: ubuntu-latest + defaults: + run: + working-directory: osbuild + steps: + + - name: Clone repository + uses: actions/checkout@v2 + with: + path: osbuild + + - name: Install Dependencies + run: | + sudo apt-get install python3-setuptools + + - name: Download Coverity Tool + run: | + make coverity-download + env: + COVERITY_TOKEN: ${{ secrets.COVERITY_TOKEN }} + + - name: Coverity check + run: | + make coverity-check + + - name: Upload analysis results + run: | + make coverity-submit + env: + COVERITY_TOKEN: ${{ secrets.COVERITY_TOKEN }} + COVERITY_EMAIL: ${{ secrets.COVERITY_EMAIL }}