Skip to content

Commit

Permalink
Mask download URL in logs (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Gross authored and GitHub committed Nov 21, 2019
1 parent d9fe1b8 commit 639f9d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cacheHttpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ export async function getCacheEntry(
throw new Error(`Cache service responded with ${response.statusCode}`);
}
const cacheResult = response.result;
core.debug(`Cache Result:`);
core.debug(JSON.stringify(cacheResult));
if (!cacheResult || !cacheResult.archiveLocation) {
throw new Error("Cache not found.");
}
core.setSecret(cacheResult.archiveLocation);
core.debug(`Cache Result:`);
core.debug(JSON.stringify(cacheResult));

return cacheResult;
}
Expand Down

0 comments on commit 639f9d8

Please sign in to comment.