4141                 -d "token=${{ secrets.COVERITY_TOKEN }}&project=${{ github.repository }}" \ 
4242                 -o coverity_tool.tgz 
4343            md5sum -c coverity_tool.tgz.md5 
44+             tar -xzf coverity_tool.tgz  # Extract the tools 
4445          elif [[ "${{ runner.os }}" == "macOS" ]]; then 
4546            curl -X POST "https://scan.coverity.com/download/other/macOS" \ 
4647                 -d "token=${{ secrets.COVERITY_TOKEN }}&project=${{ github.repository }}&md5=1" \ 
5051                 -o coverity_tool.dmg 
5152            md5 -r coverity_tool.dmg | awk '{print $1}' > coverity_tool.dmg.md5 
5253            diff coverity_tool.dmg.md5 coverity_tool.dmg.md5 
54+ 
55+             # Attach the dmg and extract the script 
56+             hdiutil attach coverity_tool.dmg 
57+             cp /Volumes/Coverity/cov-analysis-macosx-*.sh ./cov-analysis-macos.sh 
58+             chmod +x ./cov-analysis-macos.sh 
59+             ./cov-analysis-macos.sh  # Run the self-extracting script 
60+ 
5361          elif [[ "${{ runner.os }}" == "Windows" ]]; then 
5462            curl -X POST "https://scan.coverity.com/download/other/windows" \ 
5563                 -d "token=${{ secrets.COVERITY_TOKEN }}&project=${{ github.repository }}&md5=1" \ 
@@ -58,13 +66,15 @@ jobs:
5866                 -d "token=${{ secrets.COVERITY_TOKEN }}&project=${{ github.repository }}" \ 
5967                 -o coverity_tool.zip 
6068            certutil -hashfile coverity_tool.zip MD5 
69+             unzip coverity_tool.zip  # Extract the tools 
6170          fi 
71+           ls -lap ./ 
6272
6373name : Build and Scan Python Repository 
6474        run : | 
6575          cd path/to/python/repo 
66-           /path/to/cov-build --dir cov-int -- python setup.py  build 
67-           coverity capture --dir cov-int --scm-branch ${{ github.ref }} --scm-revision ${{ github.sha }} --scm-url ${{ github.repository }} --project-dir ${{ github.workspace }} -- python setup.py  build 
76+           /path/to/cov-build --dir cov-int -- make  build 
77+           coverity capture --dir cov-int --scm-branch ${{ github.ref }} --scm-revision ${{ github.sha }} --scm-url ${{ github.repository }} --project-dir ${{ github.workspace }} -- make  build 
6878
6979name : Create Metadata and Archive Results 
7080        run : | 
0 commit comments