41
41
-d "token=${{ secrets.COVERITY_TOKEN }}&project=${{ github.repository }}" \
42
42
-o coverity_tool.tgz
43
43
md5sum -c coverity_tool.tgz.md5
44
+ tar -xzf coverity_tool.tgz # Extract the tools
44
45
elif [[ "${{ runner.os }}" == "macOS" ]]; then
45
46
curl -X POST "https://scan.coverity.com/download/other/macOS" \
46
47
-d "token=${{ secrets.COVERITY_TOKEN }}&project=${{ github.repository }}&md5=1" \
50
51
-o coverity_tool.dmg
51
52
md5 -r coverity_tool.dmg | awk '{print $1}' > coverity_tool.dmg.md5
52
53
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
+
53
61
elif [[ "${{ runner.os }}" == "Windows" ]]; then
54
62
curl -X POST "https://scan.coverity.com/download/other/windows" \
55
63
-d "token=${{ secrets.COVERITY_TOKEN }}&project=${{ github.repository }}&md5=1" \
@@ -58,13 +66,15 @@ jobs:
58
66
-d "token=${{ secrets.COVERITY_TOKEN }}&project=${{ github.repository }}" \
59
67
-o coverity_tool.zip
60
68
certutil -hashfile coverity_tool.zip MD5
69
+ unzip coverity_tool.zip # Extract the tools
61
70
fi
71
+ ls -lap ./
62
72
63
73
- name : Build and Scan Python Repository
64
74
run : |
65
75
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
68
78
69
79
- name : Create Metadata and Archive Results
70
80
run : |
0 commit comments