diff --git a/dist/index.js b/dist/index.js index 36f4bb0..3f3446f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -30150,21 +30150,45 @@ exports.CHECK_NAME = 'SCANOSS Policy Checker'; /***/ }), /***/ 1958: -/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GitHubCheck = void 0; const github_1 = __nccwpck_require__(5438); -const core_1 = __nccwpck_require__(2186); +const core = __importStar(__nccwpck_require__(2186)); const NO_INITIALIZATE = -1; class GitHubCheck { octokit; // TODO: type from actions/github ? checkName; checkRunId; constructor(checkName) { - const GITHUB_TOKEN = (0, core_1.getInput)('github-token'); // TODO: move to inputs.ts file? + const GITHUB_TOKEN = core.getInput('github-token'); // TODO: move to inputs.ts file? + core.warning(`TOKEN ${GITHUB_TOKEN}`); this.octokit = (0, github_1.getOctokit)(GITHUB_TOKEN); this.checkName = checkName; this.checkRunId = NO_INITIALIZATE; diff --git a/src/libs/github-check.ts b/src/libs/github-check.ts index 00b764a..54edeab 100644 --- a/src/libs/github-check.ts +++ b/src/libs/github-check.ts @@ -1,5 +1,5 @@ import { context, getOctokit } from '@actions/github' -import { getInput } from '@actions/core' +import * as core from '@actions/core' const NO_INITIALIZATE = -1 @@ -11,7 +11,8 @@ export class GitHubCheck { private checkRunId: number constructor(checkName: string) { - const GITHUB_TOKEN = getInput('github-token') // TODO: move to inputs.ts file? + const GITHUB_TOKEN = core.getInput('github-token') // TODO: move to inputs.ts file? + core.warning(`TOKEN ${GITHUB_TOKEN}`) this.octokit = getOctokit(GITHUB_TOKEN) this.checkName = checkName