File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,12 @@ function buildDownloadUrl(version) {
60
60
61
61
async function getReleaseVersionMatchingRange ( httpClient , range ) {
62
62
core . info ( `Determining latest release version of cyclonedx-gomod satisfying "${ range } "` ) ;
63
- const responseJson = await httpClient . getJson ( 'https://api.github.com/repos/CycloneDX/cyclonedx-gomod/releases' ) ;
63
+ const responseJson = await httpClient . getJson (
64
+ 'https://api.github.com/repos/CycloneDX/cyclonedx-gomod/releases' ,
65
+ process . env . GITHUB_TOKEN
66
+ ? { Authorization : process . env . GITHUB_TOKEN , ...{ } }
67
+ : { }
68
+ ) ;
64
69
if ( responseJson === null ) { // HTTP 404
65
70
throw new Error ( 'Fetching latest release of cyclonedx-gomod failed: not found' ) ;
66
71
} else if ( responseJson . statusCode !== 200 ) {
You can’t perform that action at this time.
0 commit comments