Skip to content

Commit 0cd32ab

Browse files
authored
Use separate Coverity project for Windows scan (#1886)
1 parent f5d9aa9 commit 0cd32ab

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/coverity.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright (c) 2024-2025 Intel Corporation
2+
# Copyright (c) 2025 UXL Foundation Contributors
23
#
34
# Licensed under the Apache License, Version 2.0 (the "License");
45
# you may not use this file except in compliance with the License.
@@ -24,7 +25,8 @@ permissions: read-all
2425

2526
env:
2627
BUILD_CONCURRENCY: 4
27-
COVERITY_PROJECT: oneapi-src%2FoneTBB
28+
COVERITY_PROJECT_LIN: oneapi-src%2FoneTBB
29+
COVERITY_PROJECT_WIN: uxlfoundation%2FoneTBB
2830

2931
jobs:
3032
coverity_linux:
@@ -41,7 +43,7 @@ jobs:
4143
- name: Download Linux 64 Coverity Tool
4244
run: |
4345
curl https://scan.coverity.com/download/cxx/linux64 --output ${GITHUB_WORKSPACE}/cov-linux64-tool.tar.gz \
44-
--data "token=${{secrets.COVERITY_TOKEN}}&project=${{env.COVERITY_PROJECT}}"
46+
--data "token=${{secrets.COVERITY_TOKEN}}&project=${{env.COVERITY_PROJECT_LIN}}"
4547
mkdir cov-linux64-tool
4648
tar -xzf cov-linux64-tool.tar.gz --strip 1 -C cov-linux64-tool
4749
- name: Build with cov-build
@@ -64,7 +66,7 @@ jobs:
6466
6567
--form version="${GITHUB_SHA}" \
6668
--form description="" \
67-
"https://scan.coverity.com/builds?project=${{env.COVERITY_PROJECT}}"
69+
"https://scan.coverity.com/builds?project=${{env.COVERITY_PROJECT_LIN}}"
6870
coverity_windows:
6971
name: Coverity Windows
7072
if: github.repository == 'uxlfoundation/oneTBB'
@@ -78,7 +80,7 @@ jobs:
7880
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
7981
- name: Download Windows 64 Coverity Tool
8082
run: |
81-
curl https://scan.coverity.com/download/cxx/win64 -o cov-win64-tool.zip -d "token=${{secrets.COVERITY_TOKEN}}&project=${{env.COVERITY_PROJECT}}"
83+
curl https://scan.coverity.com/download/cxx/win64 -o cov-win64-tool.zip -d "token=${{secrets.COVERITY_TOKEN_WIN}}&project=${{env.COVERITY_PROJECT_WIN}}"
8284
7z x cov-win64-tool.zip
8385
del cov-win64-tool.zip
8486
move cov-analysis-win64* cov-win64-tool
@@ -97,4 +99,4 @@ jobs:
9799
7z a -r cov-int.zip cov-int
98100
- name: Submit Coverity results for analysis
99101
run: |
100-
curl --form token="${{ secrets.COVERITY_TOKEN }}" --form email="${{ secrets.COVERITY_EMAIL }}" --form [email protected] --form version="${GITHUB_SHA}" --form description="" "https://scan.coverity.com/builds?project=${{env.COVERITY_PROJECT}}"
102+
curl --form token="${{ secrets.COVERITY_TOKEN_WIN }}" --form email="${{ secrets.COVERITY_EMAIL }}" --form [email protected] --form version="${GITHUB_SHA}" --form description="" "https://scan.coverity.com/builds?project=${{env.COVERITY_PROJECT_WIN}}"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/9125/badge)](https://www.bestpractices.dev/projects/9125)
55
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/uxlfoundation/oneTBB/badge)](https://securityscorecards.dev/viewer/?uri=github.com/uxlfoundation/oneTBB)
66
[![Gurubase](https://img.shields.io/badge/Gurubase-Ask%20oneTBB%20Guru-006BFF)](https://gurubase.io/g/onetbb)
7-
[![Coverity Scan Build Status](https://img.shields.io/coverity/scan/30373.svg)](https://scan.coverity.com/projects/oneapi-src-onetbb)
7+
[![Coverity Scan Build Status](https://img.shields.io/coverity/scan/30373.svg?label=coverity-lin)](https://scan.coverity.com/projects/oneapi-src-onetbb)
8+
[![Coverity Scan Build Status](https://img.shields.io/coverity/scan/32544.svg?label=coverity-win)](https://scan.coverity.com/projects/uxlfoundation-onetbb)
89

910
oneTBB is a flexible C++ library that simplifies the work of adding parallelism
1011
to complex applications, even if you are not a threading expert.

0 commit comments

Comments
 (0)