summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-11-08 11:34:32 +1000
committerPauli <pauli@openssl.org>2021-11-09 16:50:23 +1000
commit7267769c28fb90d990a9d789093e83699bf4c5a0 (patch)
tree1bf0f0bdf403608ab0e40e12eb52d251a308f10b /.github
parent2d49519210ed60ed16778b4b1097b4c6880541e5 (diff)
downloadopenssl-new-7267769c28fb90d990a9d789093e83699bf4c5a0.tar.gz
coverity: add a daily coverity build
The weekly build got lost when we stopped using Travis. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16988)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/static-analysis.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml
new file mode 100644
index 0000000000..6c69436c17
--- /dev/null
+++ b/.github/workflows/static-analysis.yml
@@ -0,0 +1,42 @@
+# Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
+#
+# Licensed under the Apache License 2.0 (the "License"). You may not use
+# this file except in compliance with the License. You can obtain a copy
+# in the file LICENSE in the source distribution or at
+# https://www.openssl.org/source/license.html
+
+name: Static Analysis
+
+#Run once a day
+on:
+ schedule:
+ - cron: '20 0 * * *'
+
+jobs:
+ coverity:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: tool download
+ run: |
+ wget https://scan.coverity.com/download/linux64 \
+ --post-data "token=${{ secrets.COVERITY_TOKEN }}&project=openssl%2Fopenssl" \
+ --progress=dot:giga -O coverity_tool.tgz
+ - name: config
+ run: CC=gcc ./config --banner=Configured --debug enable-fips enable-rc5 enable-md2 enable-ssl3 enable-nextprotoneg enable-ssl3-method enable-weak-ssl-ciphers enable-zlib enable-ec_nistp_64_gcc_128 no-shared enable-buildtest-c++ enable-external-tests -DPEDANTIC -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
+ - name: config dump
+ run: ./configdata.pm --dump
+ - name: tool install
+ run: tar xzf coverity_tool.tgz
+ - name: make
+ run: ./cov-analysis*/bin/cov-build --dir cov-int make -s -j4
+ - name: archive
+ run: tar czvf openssl.tgz cov-int
+ - name: Coverity upload
+ run: |
+ curl --form token="${{ secrets.COVERITY_TOKEN }}" \
+ --form email=openssl-commits@openssl.org \
+ --form file=@openssl.tgz \
+ --form version="`date -u -I` `git rev-parse --short HEAD`" \
+ --form description="analysis of `git branch --show-current`" \
+ https://scan.coverity.com/builds?project=openssl%2Fopenssl