@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
1515} ) : function ( o , v ) {
1616 o [ "default" ] = v ;
1717} ) ;
18- var __importStar = ( this && this . __importStar ) || function ( mod ) {
19- if ( mod && mod . __esModule ) return mod ;
20- var result = { } ;
21- if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) __createBinding ( result , mod , k ) ;
22- __setModuleDefault ( result , mod ) ;
23- return result ;
24- } ;
18+ var __importStar = ( this && this . __importStar ) || ( function ( ) {
19+ var ownKeys = function ( o ) {
20+ ownKeys = Object . getOwnPropertyNames || function ( o ) {
21+ var ar = [ ] ;
22+ for ( var k in o ) if ( Object . prototype . hasOwnProperty . call ( o , k ) ) ar [ ar . length ] = k ;
23+ return ar ;
24+ } ;
25+ return ownKeys ( o ) ;
26+ } ;
27+ return function ( mod ) {
28+ if ( mod && mod . __esModule ) return mod ;
29+ var result = { } ;
30+ if ( mod != null ) for ( var k = ownKeys ( mod ) , i = 0 ; i < k . length ; i ++ ) if ( k [ i ] !== "default" ) __createBinding ( result , mod , k [ i ] ) ;
31+ __setModuleDefault ( result , mod ) ;
32+ return result ;
33+ } ;
34+ } ) ( ) ;
2535var __awaiter = ( this && this . __awaiter ) || function ( thisArg , _arguments , P , generator ) {
2636 function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
2737 return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
@@ -281,7 +291,13 @@ class Utils {
281291 }
282292 static configJFrogServers ( jfrogCredentials ) {
283293 return __awaiter ( this , void 0 , void 0 , function * ( ) {
284- let cliConfigCmd = [ 'config' ] ;
294+ let cliConfigCmd = [ ] ;
295+ let githubToken = jfrogCredentials . githubToken ;
296+ if ( ! ! githubToken ) {
297+ // Github Token
298+ cliConfigCmd = cliConfigCmd . concat ( '--github-token' , githubToken ) ;
299+ }
300+ cliConfigCmd = cliConfigCmd . concat ( 'config' ) ;
285301 for ( let configToken of Utils . getConfigTokens ( ) ) {
286302 // Mark the credentials as secrets to prevent them from being printed in the logs or exported to other workflows
287303 core . setSecret ( configToken ) ;
0 commit comments