Skip to content

Commit 7bc49e8

Browse files
dschogitster
authored andcommitted
coverity: allow overriding the Coverity project
By default, the builds are submitted to the `git` project at https://scan.coverity.com/projects/git. The Git for Windows project would like to use this workflow, too, though, and needs the builds to be submitted to the `git-for-windows` Coverity project. To that end, allow configuring the Coverity project name via the repository variable, you guessed it, `COVERITY_PROJECT`. The default if that variable is not configured or has an empty value is still `git`. Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 002e5e9 commit 7bc49e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/coverity.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ name: Coverity
1111
# `COVERITY_SCAN_EMAIL` and `COVERITY_SCAN_TOKEN`. The former specifies the
1212
# email to which the Coverity reports should be sent and the latter can be
1313
# obtained from the Project Settings tab of the Coverity project).
14+
#
15+
# By default, the builds are submitted to the Coverity project `git`. To override this,
16+
# set the repository variable `COVERITY_PROJECT`.
1417

1518
on:
1619
push:
@@ -20,7 +23,7 @@ jobs:
2023
if: contains(fromJSON(vars.ENABLE_COVERITY_SCAN_FOR_BRANCHES || '[""]'), github.ref_name)
2124
runs-on: ubuntu-latest
2225
env:
23-
COVERITY_PROJECT: git
26+
COVERITY_PROJECT: ${{ vars.COVERITY_PROJECT || 'git' }}
2427
COVERITY_LANGUAGE: cxx
2528
COVERITY_PLATFORM: linux64
2629
steps:

0 commit comments

Comments
 (0)