diff --git a/index.js b/index.js index 754680e..f15749b 100644 --- a/index.js +++ b/index.js @@ -72,9 +72,12 @@ export const run = async ({ GhostAdminApiClass = GhostAdminApi, logger = console, } = {}) => { + const apiKey = coreModule.getInput('api-key'); + coreModule.setSecret(apiKey); + const api = new GhostAdminApiClass({ url: coreModule.getInput('api-url'), - key: coreModule.getInput('api-key'), + key: apiKey, version: 'canary', });