File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,28 +45,6 @@ class MscaClient {
4545 isNullOrWhiteSpace ( value ) {
4646 return ! value || ! value . trim ( ) ;
4747 }
48- setupTaskVariables ( taskDirectory ) {
49- process . env . GDN_AGENT_TASKDIRECTORY = taskDirectory ;
50- const taskFilePath = `${ taskDirectory } /task.json` ;
51- tl . debug ( `taskFilePath = ${ taskFilePath } ` ) ;
52- const taskFile = require ( taskFilePath ) ;
53- const taskName = taskFile . name . toUpperCase ( ) ;
54- tl . debug ( `taskName = ${ taskName } ` ) ;
55- for ( const taskInput of taskFile . inputs ) {
56- const inputValue = tl . getInput ( `${ taskInput . name } ` ) ;
57- if ( inputValue != null ) {
58- const varName = `GDNP_${ taskName } _${ taskInput . name . toUpperCase ( ) } ` ;
59- const varValue = process . env [ varName ] ;
60- if ( varValue == null ) {
61- tl . debug ( `Input : ${ varName } ` ) ;
62- process . env [ varName ] = inputValue ;
63- }
64- else {
65- tl . debug ( `Override : ${ varName } ` ) ;
66- }
67- }
68- }
69- }
7048 getCliFilePath ( ) {
7149 let cliFilePath = process . env . MSCA_FILEPATH ;
7250 tl . debug ( `cliFilePath = ${ cliFilePath } ` ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " msca-azdevops-task-lib" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "description" : " Microsoft Security Code Analysis for Azure DevOps task library." ,
55 "author" : " Microsoft Corporation" ,
66 "license" : " MIT" ,
7+ "homepage" : " https://github.com/microsoft/msca-azdevops-task-lib" ,
78 "dependencies" : {
89 "azure-pipelines-task-lib" : " 3.1.0" ,
910 "azure-pipelines-tool-lib" : " 1.0.1"
You can’t perform that action at this time.
0 commit comments