File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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" ,
Original file line number Diff line number Diff line change @@ -35,32 +35,6 @@ export class MscaClient {
3535 return ! value || ! value . trim ( ) ;
3636 }
3737
38- setupTaskVariables ( taskDirectory : string ) {
39- // set up the input environment variables
40- process . env . GDN_AGENT_TASKDIRECTORY = taskDirectory ;
41-
42- const taskFilePath = `${ taskDirectory } /task.json` ;
43- tl . debug ( `taskFilePath = ${ taskFilePath } ` ) ;
44-
45- const taskFile = require ( taskFilePath ) ;
46-
47- const taskName = taskFile . name . toUpperCase ( ) ;
48- tl . debug ( `taskName = ${ taskName } ` ) ;
49-
50- for ( const taskInput of taskFile . inputs ) {
51- const inputValue = tl . getInput ( `${ taskInput . name } ` ) ;
52- if ( inputValue != null ) {
53- const varName = `GDNP_${ taskName } _${ taskInput . name . toUpperCase ( ) } ` ;
54- const varValue = process . env [ varName ] ;
55- if ( varValue == null ) {
56- tl . debug ( `Input : ${ varName } ` ) ;
57- process . env [ varName ] = inputValue ;
58- } else {
59- tl . debug ( `Override : ${ varName } ` ) ;
60- }
61- }
62- }
63- }
6438
6539 getCliFilePath ( ) : string {
6640 let cliFilePath : string = process . env . MSCA_FILEPATH ;
You can’t perform that action at this time.
0 commit comments