diff --git a/CHANGELOG.md b/CHANGELOG.md index 97be5a25912..0ef813580b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [24.119.2](https://github.com/renovatebot/github-action/compare/v24.117.0...v24.119.2) (2021-04-20) + + +### Bug Fixes + +* **deps:** update renovate/renovate docker tag to v24.119.2 ([f74b3a7](https://github.com/renovatebot/github-action/commit/f74b3a702e1c941a99ee7210ade33ee8af07acd9)) + ## [24.117.0](https://github.com/renovatebot/github-action/compare/v24.116.2...v24.117.0) (2021-04-19) diff --git a/dist/index.js b/dist/index.js index 163059b3b06..d081cfc2ef4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,3 @@ -module.exports = /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ @@ -1574,106 +1573,145 @@ function copyFile(srcFile, destFile, force) { /***/ }), -/***/ 512: -/***/ ((__unused_webpack_module, exports) => { +/***/ 357: +/***/ ((module) => { +module.exports = require("assert");; -Object.defineProperty(exports, "__esModule", ({ value: true })); -class Docker { - constructor() { - this.repository = 'renovate/renovate'; - // renovate: datasource=docker depName=renovate/renovate versioning=docker - this.tag = '24.117.0-slim'; - this.tagSuffix = '-slim'; - } - image() { - return `${this.repository}:${this.tag}`; - } - version() { - return this.tag.replace(this.tagSuffix, ''); - } -} -exports.default = Docker; +/***/ }), + +/***/ 129: +/***/ ((module) => { +module.exports = require("child_process");; /***/ }), -/***/ 144: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 614: +/***/ ((module) => { +module.exports = require("events");; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (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; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const core = __importStar(__nccwpck_require__(186)); -const input_1 = __importDefault(__nccwpck_require__(461)); -const renovate_1 = __importDefault(__nccwpck_require__(932)); -async function run() { - try { - const input = new input_1.default(); - const renovate = new renovate_1.default(input); - await renovate.runDockerContainer(); - } - catch (error) { - console.error(error); - core.setFailed(error.message); - } -} -run(); +/***/ }), +/***/ 747: +/***/ ((module) => { + +module.exports = require("fs");; /***/ }), -/***/ 461: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { +/***/ 87: +/***/ ((module) => { + +module.exports = require("os");; + +/***/ }), + +/***/ 622: +/***/ ((module) => { + +module.exports = require("path");; + +/***/ }), + +/***/ 669: +/***/ ((module) => { + +module.exports = require("util");; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __nccwpck_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ var threw = true; +/******/ try { +/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__); +/******/ threw = false; +/******/ } finally { +/******/ if(threw) delete __webpack_module_cache__[moduleId]; +/******/ } +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/compat get default export */ +/******/ (() => { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __nccwpck_require__.n = (module) => { +/******/ var getter = module && module.__esModule ? +/******/ () => (module['default']) : +/******/ () => (module); +/******/ __nccwpck_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ (() => { +/******/ // define getter functions for harmony exports +/******/ __nccwpck_require__.d = (exports, definition) => { +/******/ for(var key in definition) { +/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ (() => { +/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __nccwpck_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat */ +/******/ +/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";/************************************************************************/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +(() => { +// ESM COMPAT FLAG +__nccwpck_require__.r(__webpack_exports__); + +// EXTERNAL MODULE: ./node_modules/@actions/core/lib/core.js +var core = __nccwpck_require__(186); +// EXTERNAL MODULE: external "path" +var external_path_ = __nccwpck_require__(622); +var external_path_default = /*#__PURE__*/__nccwpck_require__.n(external_path_); +;// CONCATENATED MODULE: ./src/input.ts -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (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; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.Input = void 0; -const core = __importStar(__nccwpck_require__(186)); -const path_1 = __importDefault(__nccwpck_require__(622)); class Input { constructor() { this.options = { @@ -1697,7 +1735,7 @@ class Input { if (this._configurationFile.value !== '') { return { key: this._configurationFile.key, - value: path_1.default.resolve(this._configurationFile.value), + value: external_path_default().resolve(this._configurationFile.value), }; } return null; @@ -1731,31 +1769,43 @@ class Input { return { key: env, value: fromEnv !== undefined ? fromEnv : '' }; } } -exports.Input = Input; -exports.default = Input; +/* harmony default export */ const src_input = (Input); -/***/ }), +;// CONCATENATED MODULE: ./src/docker.ts +class Docker { + constructor() { + this.repository = 'renovate/renovate'; + // renovate: datasource=docker depName=renovate/renovate versioning=docker + this.tag = '24.119.2-slim'; + this.tagSuffix = '-slim'; + } + image() { + return `${this.repository}:${this.tag}`; + } + version() { + return this.tag.replace(this.tagSuffix, ''); + } +} +/* harmony default export */ const docker = (Docker); + +// EXTERNAL MODULE: ./node_modules/@actions/exec/lib/exec.js +var exec = __nccwpck_require__(514); +// EXTERNAL MODULE: external "fs" +var external_fs_ = __nccwpck_require__(747); +var external_fs_default = /*#__PURE__*/__nccwpck_require__.n(external_fs_); +;// CONCATENATED MODULE: ./src/renovate.ts + -/***/ 932: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", ({ value: true })); -const docker_1 = __importDefault(__nccwpck_require__(512)); -const exec_1 = __nccwpck_require__(514); -const fs_1 = __importDefault(__nccwpck_require__(747)); -const path_1 = __importDefault(__nccwpck_require__(622)); class Renovate { constructor(input) { this.input = input; this.dockerGroupName = 'docker'; this.configFileMountDir = '/github-action'; this.validateArguments(); - this.docker = new docker_1.default(); + this.docker = new docker(); } async runDockerContainer() { const renovateDockerUser = 'ubuntu'; @@ -1764,13 +1814,13 @@ class Renovate { .map((e) => `--env ${e.key}`) .concat([`--env ${this.input.token.key}=${this.input.token.value}`]); if (this.input.configurationFile() !== null) { - const baseName = path_1.default.basename(this.input.configurationFile().value); - const mountPath = path_1.default.join(this.configFileMountDir, baseName); + const baseName = external_path_default().basename(this.input.configurationFile().value); + const mountPath = external_path_default().join(this.configFileMountDir, baseName); dockerArguments.push(`--env ${this.input.configurationFile().key}=${mountPath}`, `--volume ${this.input.configurationFile().value}:${mountPath}`); } dockerArguments.push('--volume /var/run/docker.sock:/var/run/docker.sock', '--volume /tmp:/tmp', `--user ${renovateDockerUser}:${this.getDockerGroupId()}`, '--rm', this.docker.image()); const command = `docker run ${dockerArguments.join(' ')}`; - const code = await exec_1.exec(command); + const code = await (0,exec.exec)(command); if (code !== 0) { new Error(`'docker run' failed with exit code ${code}.`); } @@ -1783,7 +1833,7 @@ class Renovate { */ getDockerGroupId() { const groupFile = '/etc/group'; - const groups = fs_1.default.readFileSync(groupFile, { + const groups = external_fs_default().readFileSync(groupFile, { encoding: 'utf-8', }); /** @@ -1805,104 +1855,33 @@ class Renovate { } const configurationFile = this.input.configurationFile(); if (configurationFile !== null && - (!fs_1.default.existsSync(configurationFile.value) || - !fs_1.default.statSync(configurationFile.value).isFile())) { + (!external_fs_default().existsSync(configurationFile.value) || + !external_fs_default().statSync(configurationFile.value).isFile())) { throw new Error(`configuration file '${configurationFile.value}' MUST be an existing file`); } } } -exports.default = Renovate; +/* harmony default export */ const src_renovate = (Renovate); +;// CONCATENATED MODULE: ./src/index.ts -/***/ }), -/***/ 357: -/***/ ((module) => { - -module.exports = require("assert");; - -/***/ }), - -/***/ 129: -/***/ ((module) => { - -module.exports = require("child_process");; - -/***/ }), - -/***/ 614: -/***/ ((module) => { - -module.exports = require("events");; - -/***/ }), - -/***/ 747: -/***/ ((module) => { - -module.exports = require("fs");; - -/***/ }), - -/***/ 87: -/***/ ((module) => { - -module.exports = require("os");; -/***/ }), - -/***/ 622: -/***/ ((module) => { - -module.exports = require("path");; - -/***/ }), - -/***/ 669: -/***/ ((module) => { - -module.exports = require("util");; +async function run() { + try { + const input = new src_input(); + const renovate = new src_renovate(input); + await renovate.runDockerContainer(); + } + catch (error) { + console.error(error); + core.setFailed(error.message); + } +} +run(); -/***/ }) +})(); -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require__(moduleId) { -/******/ // Check if module is in cache -/******/ if(__webpack_module_cache__[moduleId]) { -/******/ return __webpack_module_cache__[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ __nccwpck_require__.ab = __dirname + "/";/************************************************************************/ -/******/ // module exports must be returned from runtime so entry inlining is disabled -/******/ // startup -/******/ // Load entry module and return exports -/******/ return __nccwpck_require__(144); +module.exports = __webpack_exports__; /******/ })() ; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 779fc2b053d..b5ac1b58dbb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "github-action", - "version": "24.117.0", + "version": "24.119.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a2f6eea105b..4747bd40375 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-action", - "version": "24.117.0", + "version": "24.119.2", "description": "GitHub Action to run Renovate self-hosted.", "private": true, "main": "src/index.ts",