Skip to content

Commit 9030148

Browse files
committed
accept eslint security warning
1 parent 2891c86 commit 9030148

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

dist/index.js

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6238,14 +6238,6 @@ module.exports = require("path");
62386238

62396239
/***/ }),
62406240

6241-
/***/ 7282:
6242-
/***/ ((module) => {
6243-
6244-
"use strict";
6245-
module.exports = require("process");
6246-
6247-
/***/ }),
6248-
62496241
/***/ 4404:
62506242
/***/ ((module) => {
62516243

@@ -12938,7 +12930,6 @@ const core = __nccwpck_require__(7348);
1293812930
const compose = __nccwpck_require__(807);
1293912931
const fs = __nccwpck_require__(7147);
1294012932
const yaml = __nccwpck_require__(9299);
12941-
const { exit } = __nccwpck_require__(7282);
1294212933

1294312934
const myArgs = process.argv.slice(2);
1294412935

@@ -12969,11 +12960,20 @@ async function down() {
1296912960
}
1297012961
}
1297112962

12963+
async function execInContainer(container, commands, options={}) {
12964+
for(const c of commands)
12965+
{
12966+
await compose.exec(container, c, options);
12967+
}
12968+
}
12969+
1297212970
async function init() {
1297312971

12972+
/* eslint-disable-next-line security/detect-non-literal-fs-filename -- Safe as no value holds user input */
1297412973
if (!fs.existsSync(__nccwpck_require__.ab + "exec.yml")) {
1297512974
core.info("exec.yml not found");
1297612975
} else {
12976+
/* eslint-disable-next-line security/detect-non-literal-fs-filename -- Safe as no value holds user input */
1297712977
let containerCommands = yaml.load(fs.readFileSync(__nccwpck_require__.ab + "exec.yml", "utf8"));
1297812978

1297912979
for(const cc of containerCommands["exec_list"]) {
@@ -12987,14 +12987,8 @@ async function init() {
1298712987
}
1298812988
}
1298912989

12990-
async function execInContainer(container, commands, options={}) {
12991-
for(const c of commands)
12992-
{
12993-
await compose.exec(container, c, options);
12994-
}
12995-
}
12996-
1299712990
try {
12991+
/* eslint-disable-next-line security/detect-non-literal-fs-filename -- Safe as no value holds user input */
1299812992
fs.existsSync(__nccwpck_require__.ab + "docker-compose.yml");
1299912993
} catch (error) {
1300012994
core.setFailed(error.message);

main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ async function execInContainer(container, commands, options={}) {
4141

4242
async function init() {
4343

44+
/* eslint-disable-next-line security/detect-non-literal-fs-filename -- Safe as no value holds user input */
4445
if (!fs.existsSync(execFile)) {
4546
core.info("exec.yml not found");
4647
} else {

0 commit comments

Comments
 (0)