diff --git a/lib/platform/github/index.js b/lib/platform/github/index.js index f447fc5079f4e2d2202023d46c63e591963ae80a..b988c163882e47c5ca0e67e9ea853344eb2b71db 100644 --- a/lib/platform/github/index.js +++ b/lib/platform/github/index.js @@ -993,7 +993,7 @@ async function getFile(filePath, branchName) { let res; try { res = await get( - `repos/${config.repository}/contents/${filePath}?ref=${branchName || + `repos/${config.repository}/contents/${encodeURI(filePath)}?ref=${branchName || config.baseBranch}` ); } catch (error) {