Skip to content

Commit

Permalink
fix: 🐛 buffer license content with base64
Browse files Browse the repository at this point in the history
  • Loading branch information
slugb0t committed Jul 7, 2024
1 parent 3c23bd7 commit fb58742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/utils/renderer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export async function applyLicenseTemplate(

console.log("license found!");
let licenseId = licenseRequest.data.license.spdx_id;
let licenseContent = licenseRequest.data.license.body;
let licenseContent = Buffer.from(licenseRequest.data.content, 'base64').toString('utf-8');
if (licenseRequest.data.license.spdx_id === "no-license" || licenseRequest.data.license.spdx_id === "NOASSERTION") {
licenseId = null;
licenseContent = null;
Expand Down

0 comments on commit fb58742

Please sign in to comment.