From 0da720953d20ab9bb3d759f81519f44af139fa2a Mon Sep 17 00:00:00 2001 From: Craig O'Donnell Date: Wed, 20 Sep 2023 15:34:51 -0400 Subject: [PATCH] get api token from input --- .github/actions/cmx-versions/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/cmx-versions/index.js b/.github/actions/cmx-versions/index.js index 5e511baf58..c7367e292e 100644 --- a/.github/actions/cmx-versions/index.js +++ b/.github/actions/cmx-versions/index.js @@ -4,8 +4,9 @@ var semver = require('semver'); async function getClusterVersions() { const url = 'https://api.replicated.com/vendor/v3/cluster/versions'; + const apiToken = core.getInput('replicated-api-token') || process.env.REPLICATED_API_TOKEN; const headers = { - Authorization: process.env.C11Y_MATRIX_TOKEN + Authorization: apiToken }; let clusterVersions = [];