From: Ian Jackson Subject: Re: [PATCH] scripts: Add a script to build and submit to coverity. Date: Thu, 10 Dec 2015 18:02:56 +0000 Message-ID: <22121.48720.50110.370659@mariner.uk.xensource.com> References: <1449766401-31434-1-git-send-email-ian.campbell@citrix.com> <5669B155.2010905@citrix.com> <22121.47872.686135.711210@mariner.uk.xensource.com> <5669BBF4.1000305@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5669BBF4.1000305@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Ian Campbell , jbeulich@suse.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Andrew Cooper writes ("Re: [PATCH] scripts: Add a script to build and submit to coverity."): > On 10/12/15 17:48, Ian Jackson wrote: > > Ideally there would be a way to get it to read the token from a file > > in $HOME. We could then provide the token in ~osstest in the > > production colo. > > One way or another, the authentication token needs to be in a post > header. How this script and `curl` make it happen is open to improvement. > > Perhaps something like this? (Completely untested) > > --form token=@~osstest/coverity-secret-token If curl can do that then fine. Given > >>> + declare -a curl_args > >>> + curl_args+=("--form" "token=$COV_TOKEN") > >>> + curl_args+=("--form" "email=$COV_EMAIL") this could be achieved by having ts-do-coverity-thing set COV_TOKEN to $HOME/.xen-osstest/coverity-secret or whatever. ts-do-coverity-thing would need to set a bunch of other COV_SOMETHING anyay. Ian.