@@ -5,7 +5,10 @@ const config = require('painless-config')
55
66const cd_azblob = {
77 connection : config . get ( 'CRAWLER_AZBLOB_CONNECTION_STRING' ) ,
8- container : config . get ( 'CRAWLER_AZBLOB_CONTAINER_NAME' )
8+ container : config . get ( 'CRAWLER_AZBLOB_CONTAINER_NAME' ) ,
9+ account : config . get ( 'CRAWLER_AZBLOB_ACCOUNT_NAME' ) ,
10+ spnAuth : config . get ( 'CRAWLER_AZBLOB_SPN_AUTH' ) ,
11+ isSpnAuth : config . get ( 'CRAWLER_AZBLOB_IS_SPN_AUTH' ) || false
912}
1013
1114const githubToken = config . get ( 'CRAWLER_GITHUB_TOKEN' )
@@ -95,10 +98,11 @@ module.exports = {
9598 // '--quiet'
9699 ] ,
97100 timeout : 1000 ,
98- processes : 2 ,
101+ processes : Number ( config . get ( 'CRAWLER_SCANCODE_PARALLELISM' ) || process . env . CRAWLER_SCANCODE_PARALLELISM ) || 2 ,
99102 format : '--json-pp'
100103 } ,
101104 source : { } ,
105+ sourcearchive : { } ,
102106 top : { githubToken }
103107 } ,
104108 store : {
@@ -110,7 +114,10 @@ module.exports = {
110114 } ,
111115 azqueue : {
112116 connectionString : cd_azblob . connection ,
113- queueName : config . get ( 'CRAWLER_HARVESTS_QUEUE_NAME' ) || 'harvests'
117+ account : cd_azblob . account ,
118+ queueName : config . get ( 'CRAWLER_HARVESTS_QUEUE_NAME' ) || 'harvests' ,
119+ spnAuth : config . get ( 'CRAWLER_HARVESTS_QUEUE_SPN_AUTH' ) ,
120+ isSpnAuth : config . get ( 'CRAWLER_HARVESTS_QUEUE_IS_SPN_AUTH' ) || false
114121 } ,
115122 'cd(azblob)' : cd_azblob ,
116123 'cd(file)' : cd_file
@@ -134,7 +141,12 @@ module.exports = {
134141 maxDequeueCount : 5 ,
135142 attenuation : {
136143 ttl : 3000
137- }
138- }
144+ } ,
145+ spnAuth : config . get ( 'CRAWLER_QUEUE_AZURE_SPN_AUTH' ) || cd_azblob . spnAuth ,
146+ account : config . get ( 'CRAWLER_QUEUE_AZURE_ACCOUNT_NAME' ) || cd_azblob . account ,
147+ isSpnAuth : config . get ( 'CRAWLER_QUEUE_AZURE_IS_SPN_AUTH' ) || false
148+ } ,
149+ appVersion : config . get ( 'APP_VERSION' ) ,
150+ buildsha : config . get ( 'BUILD_SHA' )
139151 }
140152}
0 commit comments