Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/blackduck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
- name: npm install
run: |
npm install
curl --silent -O https://detect.synopsys.com/detect9.sh
# curl --silent -O https://detect.synopsys.com/detect9.sh
curl --silent -O https://detect.blackduck.com/detect9.sh


- name: Run & analyze BlackDuck Scan
run: |
Expand Down
4 changes: 2 additions & 2 deletions lib/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function generateSDMBearerToken(credentials, jwt) {
console.error(
`Response error while fetching access token ${error}`
);
reject(err);
reject(error);
} else {
resolve(response);
return response;
Expand Down Expand Up @@ -99,7 +99,7 @@ async function getClientCredentialsToken(credentials) {
console.error(
`Response error while fetching access token ${error}`
);
reject(err);
reject(error);
} else {
cache.set("SDM_ACCESS_TOKEN_"+subdomain, response, 11*3600); //expires after 11 hours
resolve(response);
Expand Down
Loading