diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 08:06:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 08:06:26 +0000 |
commit | 1660d4b7a65d9ad2ce0deaa19d35579ca4084ac5 (patch) | |
tree | 6cf8220b628ebd2ccfc1375dd6516c6996e9abcc /.github/workflows/coverity.yml | |
parent | Initial commit. (diff) | |
download | cryptsetup-1660d4b7a65d9ad2ce0deaa19d35579ca4084ac5.tar.xz cryptsetup-1660d4b7a65d9ad2ce0deaa19d35579ca4084ac5.zip |
Adding upstream version 2:2.6.1.upstream/2%2.6.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows/coverity.yml')
-rw-r--r-- | .github/workflows/coverity.yml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml new file mode 100644 index 0000000..edc88e8 --- /dev/null +++ b/.github/workflows/coverity.yml @@ -0,0 +1,48 @@ +name: Coverity test +on: + push: + branches: + - 'coverity_scan' + paths-ignore: + - 'docs/**' + +jobs: + latest: + runs-on: ubuntu-latest + if: github.repository == 'mbroz/cryptsetup' + steps: + - name: Repository checkout + uses: actions/checkout@v1 + - name: Ubuntu setup + run: sudo -E .github/workflows/cibuild-setup-ubuntu.sh + env: + COMPILER: "gcc" + COMPILER_VERSION: "11" + - name: Install Coverity + run: | + wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=mbroz/cryptsetup" -O cov-analysis-linux64.tar.gz + mkdir cov-analysis-linux64 + tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64 + env: + TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} + - name: Run autoconf & configure + run: | + ./autogen.sh + ./configure + - name: Run cov-build + run: | + export PATH=`pwd`/cov-analysis-linux64/bin:$PATH + cov-build --dir cov-int make + - name: Submit to Coverity Scan + run: | + tar czvf cryptsetup.tgz cov-int + curl \ + --form project=mbroz/cryptsetup \ + --form token=$TOKEN \ + --form email=gmazyland@gmail.com \ + --form file=@cryptsetup.tgz \ + --form version=trunk \ + --form description="`./cryptsetup --version`" \ + https://scan.coverity.com/builds?project=mbroz/cryptsetup + env: + TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} |