Skip to content

Commit

Permalink
get api token from input
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig O'Donnell committed Sep 20, 2023
1 parent d675962 commit 0da7209
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/cmx-versions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 0da7209

Please sign in to comment.