From af627f7826b66f02639e71457835c0eb5ad395b3 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Tue, 6 Feb 2024 20:32:00 +0100 Subject: [PATCH] Drone: Set $COVERITY_SCAN_NOTIFICATION_EMAIL and $COVERITY_SCAN_TOKEN defaults (#229) Use a similar mechanism to codecov to set the token and EMail from secrets --- ci/drone/functions.star | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/drone/functions.star b/ci/drone/functions.star index 0eeb587..fb1f26a 100644 --- a/ci/drone/functions.star +++ b/ci/drone/functions.star @@ -454,6 +454,9 @@ def job_impl( buildtype = 'boost' elif buildtype == 'codecov': env.setdefault('CODECOV_TOKEN', {'from_secret': 'codecov_token'}) + elif buildtype == 'coverity': + env.setdefault('COVERITY_SCAN_NOTIFICATION_EMAIL', {'from_secret': 'coverity_scan_email'}) + env.setdefault('COVERITY_SCAN_TOKEN', {'from_secret': 'coverity_scan_token'}) # Put common args of all *_cxx calls not modified below into kwargs to avoid duplicating them kwargs['arch'] = arch