Skip to content

[Snyk] Upgrade jscodeshift from 0.11.0 to 0.12.0 #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

snyk-bot
Copy link

Snyk has created this PR to upgrade jscodeshift from 0.11.0 to 0.12.0.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 1 version ahead of your current version.
  • The recommended version was released 21 days ago, on 2021-04-21.
Release notes
Package name: jscodeshift from jscodeshift GitHub release notes
Commit messages
Package name: jscodeshift

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@mistaken-pull-closer
Copy link

Thanks for your submission.

It appears that you've created a pull request using one of our repository's branches. Since this is
almost always a mistake, we're going to go ahead and close this. If it was intentional, please
let us know what you were intending and we can see about reopening it.

Thanks again!

@pull-dog
Copy link

pull-dog bot commented May 13, 2021

*Ruff* 🐶 I wasn't able to find any Docker Compose files in your repository at any of the given paths in the pull-dog.json configuration file, or the default docker-compose.yml file 😩 Make sure the given paths are correct.

Files checked:

  • docker-compose.yml
What is this?

Pull Dog is a GitHub app that makes test environments for your pull requests using Docker, from a docker-compose.yml file you specify. It takes 19 seconds to set up (we counted!) and there's a free plan available.

Visit our website to learn more.

Commands
  • @pull-dog up to reprovision or provision the server.
  • @pull-dog down to delete the provisioned server.
Troubleshooting

Need help? Don't hesitate to file an issue in our repository

Configuration

{
  "isLazy": false,
  "dockerComposeYmlFilePaths": [
    "docker-compose.yml"
  ],
  "expiry": "00:00:00",
  "conversationMode": "singleComment"
}

Trace ID
6dfa8c40-b389-11eb-929c-c28e8467ed01

@mistaken-pull-closer mistaken-pull-closer bot added the invalid This doesn't seem right label May 13, 2021
@guardrails
Copy link

guardrails bot commented May 13, 2021

⚠️ We detected 273 security issues in this pull request:

Mode: paranoid | Total findings: 273 | Considered vulnerability: 0

Hard-Coded Secrets (7)
Docs Details
💡 Title: Hard-coded Secrets
apiKey: 'f6df220f7d246aff64a56300b7f19f21',
💡 Title: Hard-coded Secrets
Content-Security-Policy: script-src 'self' 'sha256-4RS22DYeB7U14dra4KcQYxmwt5HkOInieXK1NUMBmQI='
💡 Title: Hard-coded Secrets
Content-Security-Policy: script-src 'self' 'sha256-4RS22DYeB7U14dra4KcQYxmwt5HkOInieXK1NUMBmQI='
💡 Title: Hard-coded Secrets
Content-Security-Policy: script-src 'self' 'sha256-4RS22DYeB7U14dra4KcQYxmwt5HkOInieXK1NUMBmQI='
💡 Title: Hard-coded Secrets
在构建过程中,`process.env.VUE_APP_SECRET` 将会被相应的值所取代。在 `VUE_APP_SECRET=secret` 的情况下,它会被替换为 `"secret"`
💡 Title: Hard-coded Secrets
api-key="db283631f89b5b8a10707311f911fd00"
💡 Title: Hard-coded Secrets

More info on how to fix Hard-Coded Secrets in General.


Insecure Use of Regular Expressions (31)
Docs Details
💡 Title: Regex DOS (ReDOS)
return new RegExp(`"${['.*node_modules', 'core-js', 'modules', mod].join(`[\\${path.sep}]+`)}`)
💡 Title: Regex DOS (ReDOS)
return deps.length ? new RegExp(deps.join('|')) : null
💡 Title: Regex DOS (ReDOS)
const matchRE = new RegExp(`^--${argToRemove}$`)
💡 Title: Regex DOS (ReDOS)
const equalRE = new RegExp(`^--${argToRemove}=`)
💡 Title: Regex DOS (ReDOS)
const matchRE = new RegExp(`^--${argToRemove}`)
💡 Title: Regex DOS (ReDOS)
const equalRE = new RegExp(`^--${argToRemove}=`)
💡 Title: Regex DOS (ReDOS)
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
💡 Title: Regex DOS (ReDOS)
from: new RegExp(`^/${name}`),
💡 Title: Regex DOS (ReDOS)
.test(/\.(png|jpe?g|gif|webp)(\?.*)?$/)
💡 Title: Regex DOS (ReDOS)
💡 Title: Regex DOS (ReDOS)
.test(/\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/)
💡 Title: Regex DOS (ReDOS)
.test(/\.(woff2?|eot|ttf|otf)(\?.*)?$/i)
💡 Title: Regex DOS (ReDOS)
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url)
💡 Title: Regex DOS (ReDOS)
[/^index\s[\da-zA-Z]+\.\.[\da-zA-Z]+(\s(\d+))?$/, index],
💡 Title: Regex DOS (ReDOS)
[/^@@\s+-(\d+),?(\d+)?\s+\+(\d+),?(\d+)?\s@@/, chunk],
💡 Title: Regex DOS (ReDOS)
const t = (/\t.*|\d{4}-\d\d-\d\d\s\d\d:\d\d:\d\d(.\d+)?\s(\+|-)\d\d\d\d/).exec(s)
💡 Title: Regex DOS (ReDOS)
return s.replace(new RegExp(`^${chars}+`), '')
💡 Title: Regex DOS (ReDOS)
return text && new RegExp(text.trim().replace(/\s+/g, '.{0,5}'), 'i')
💡 Title: Regex DOS (ReDOS)
match: /vue-cli-service serve(\s+--\S+(\s+\S+)?)*$/,
💡 Title: Regex DOS (ReDOS)
match: /vue-cli-service build(\s+--\S+(\s+\S+)?)*$/,
💡 Title: Regex DOS (ReDOS)
const pluginRe = /^(@?[^@]+)(?:@(.+))?$/
💡 Title: Regex DOS (ReDOS)
latestVersion: joi.string().regex(/^\d+\.\d+\.\d+(-(alpha|beta|rc)\.\d+)?$/),
💡 Title: Regex DOS (ReDOS)
const hostRegExp = new RegExp(`^https?://(${host}|${allowedHost}|localhost)(:\\d+)?$`)
💡 Title: Regex DOS (ReDOS)
const nameRegExp = /^(@?[^@]+)(@.*)?$/
💡 Title: Regex DOS (ReDOS)
const updatedRE = new RegExp(`'(${Array.from(updatedDeps).join('|')})': '\\^(\\d+\\.\\d+\\.\\d+[^']*)'`)
💡 Title: Regex DOS (ReDOS)
const commitRE = /^(v\d+\.\d+\.\d+(-(alpha|beta|rc.\d+))?)|((revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?!?: .{1,50})/
💡 Title: Regex DOS (ReDOS)
if (!/^http(s)?:\/\//.test(proxy)) {
💡 Title: Regex DOS (ReDOS)
} else if (name.endsWith('.json') || /^\./.test(name) || path.isAbsolute(name)) {
💡 Title: Regex DOS (ReDOS)
language = languages.find(l => l.test.test(filename))
💡 Title: Regex DOS (ReDOS)
rawArgs.splice(i, offset + (equalRE.test(rawArgs[i]) ? 0 : 1))
💡 Title: Regex DOS (ReDOS)
rawArgs.splice(i, offset + (equalRE.test(rawArgs[i]) ? 0 : 1))

More info on how to fix Insecure Use of Regular Expressions in JavaScript.


Insecure File Management (178)
Docs Details
💡 Title: Use of non-literal fs filename
const files = await fs.readdir(path.join(project.dir, 'dist/js'))
💡 Title: Use of non-literal require
userOptions = require(userOptionsPath)
💡 Title: Use of non-literal fs filename
fs.stat(source, function (err, stat) {
💡 Title: Use of non-literal fs filename
const isTS = fs.existsSync(path.join(api.getCwd(), 'tsconfig.json'))
💡 Title: Use of non-literal fs filename
if (fs.existsSync(editorConfigTemplatePath)) {
💡 Title: Use of non-literal fs filename
if (fs.existsSync(api.resolve('.editorconfig'))) {
💡 Title: Use of non-literal fs filename
const editorconfig = fs.readFileSync(editorConfigTemplatePath, 'utf-8')
💡 Title: Use of non-literal fs filename
if (!fs.existsSync(api.resolve('.eslintignore')) && !config.ignorePattern) {
💡 Title: Use of non-literal fs filename
fs.writeFileSync(outputFilePath, formatter(report.results))
💡 Title: Use of non-literal require
const pkg = require(api.resolve('package.json'))
💡 Title: Use of non-literal fs filename
if (fs.existsSync(manifestPath)) {
💡 Title: Use of non-literal require
userOptions.manifestOptions = require(manifestPath)
💡 Title: Use of non-literal fs filename
const resetScript = fs.readFileSync(path.resolve(__dirname, 'noopServiceWorker.js'), 'utf-8')
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve('/', 'vue.config.js'), '') // only to ensure fs.existsSync returns true
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve('/', 'vue.config.js'), '')
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve('/', 'package.json'), JSON.stringify({
💡 Title: Use of non-literal fs filename
if (fs.existsSync(configPath)) {
💡 Title: Use of non-literal fs filename
💡 Title: Use of non-literal fs filename
fs.writeFileSync(configPath, '')
💡 Title: Use of non-literal fs filename
fs.writeFileSync(configPath, '')
💡 Title: Use of non-literal fs filename
const files = await fs.readdir(path.resolve(project.dir, 'dist'))
💡 Title: Use of non-literal fs filename
const files = await fs.readdir(path.join(project.dir, 'dist/js'))
💡 Title: Use of non-literal fs filename
const files = await fs.readdir(path.join(project.dir, 'dist/js'))
💡 Title: Use of non-literal fs filename
if (!fs.existsSync(absolutePath)) {
💡 Title: Use of non-literal require
return JSON.stringify(require(absolutePath))
💡 Title: Use of non-literal fs filename
return fs.readFileSync(absolutePath, 'utf-8')
💡 Title: Use of non-literal fs filename
return fs.readFileSync(absolutePath, 'utf-8')
💡 Title: Use of non-literal require
apply: require(absolutePath || id)
💡 Title: Use of non-literal fs filename
if (resolvedPath && fs.existsSync(resolvedPath)) {
💡 Title: Use of non-literal fs filename
const buffer = fs.readFileSync(filepath)
💡 Title: Use of non-literal fs filename
💡 Title: Use of non-literal fs filename
const entryContent = fs.readFileSync(fullEntryPath, 'utf-8')
💡 Title: Use of non-literal fs filename
if (fs.existsSync(`/proc/1/cgroup`)) {
💡 Title: Use of non-literal fs filename
const content = fs.readFileSync(`/proc/1/cgroup`, 'utf-8')
💡 Title: Use of non-literal fs filename
htmlOptions.template = fs.existsSync(htmlPath)
💡 Title: Use of non-literal fs filename
const hasDedicatedTemplate = fs.existsSync(api.resolve(template))
💡 Title: Use of non-literal fs filename
: fs.existsSync(htmlPath)
💡 Title: Use of non-literal fs filename
if (!isLegacyBundle && fs.existsSync(publicDir)) {
💡 Title: Use of non-literal fs filename
if (fs.existsSync(path.join(context, file))) {
💡 Title: Use of non-literal fs filename
const isPublicFileRequest = fs.existsSync(maybePublicPath) && fs.statSync(maybePublicPath).isFile()
💡 Title: Use of non-literal fs filename
const buf = webpackFs.readFileSync(fullPath)
💡 Title: Use of non-literal fs filename
await fs.writeFile(tempFilename, JSON.stringify(data.bodyTags))
💡 Title: Use of non-literal fs filename
const legacyAssets = JSON.parse(await fs.readFile(tempFilename, 'utf-8'))
💡 Title: Use of non-literal fs filename
if (fs.existsSync(this.from)) {
💡 Title: Use of non-literal require
Object.assign(exports, require(`./lib/${m}`))
💡 Title: Use of non-literal fs filename
const result = fs.existsSync(lockFile)
💡 Title: Use of non-literal fs filename
const result = fs.existsSync(lockFile)
💡 Title: Use of non-literal fs filename
const result = fs.existsSync(lockFile)
💡 Title: Use of non-literal require
💡 Title: Use of non-literal require
return require(resolvedPath)
💡 Title: Use of non-literal fs filename
if (fs.existsSync(path.join(context, 'package.json'))) {
💡 Title: Use of non-literal require
pkg = require(`${id}/package.json`)
💡 Title: Use of non-literal fs filename
return fs.readFile(path.resolve(projectRoot, file), 'utf-8')
💡 Title: Use of non-literal fs filename
return fs.existsSync(path.resolve(projectRoot, file))
💡 Title: Use of non-literal fs filename
return fs.ensureDir(dir).then(() => fs.writeFile(targetPath, content))
💡 Title: Use of non-literal fs filename
if (!fs.existsSync(outsideTestFolder)) {
💡 Title: Use of non-literal fs filename
💡 Title: Use of non-literal fs filename
sharedData.watch({ id, projectId: this.project.id }, handler)
💡 Title: Use of non-literal fs filename
💡 Title: Use of non-literal fs filename
const rawContent = fs.readFileSync(file.path, { encoding: 'utf8' })
💡 Title: Use of non-literal fs filename
const source = fs.readFileSync(file.path, { encoding: 'utf8' })
💡 Title: Use of non-literal fs filename
fs.writeFileSync(file.path, rawContent, { encoding: 'utf8' })
💡 Title: Use of non-literal fs filename
if (!fs.existsSync(value)) return
💡 Title: Use of non-literal fs filename
return resolvedPath && fs.existsSync(resolvedPath)
💡 Title: Use of non-literal fs filename
return fs.stat(file).then((x) => x.isDirectory())
💡 Title: Use of non-literal fs filename
const files = await fs.readdir(dir, 'utf8')
💡 Title: Use of non-literal fs filename
return fs.existsSync(path.join(file, 'package.json'))
💡 Title: Use of non-literal fs filename
💡 Title: Use of non-literal fs filename
const highlightedContentTo = highlightCode(fileDiff.to, fs.readFileSync(path.resolve(cwd.get(), fileDiff.to), { encoding: 'utf8' })).split('\n')
💡 Title: Use of non-literal fs filename
if (process.env.VUE_APP_CLI_UI_DEV && !watchedTrees.get(root) && fs.existsSync(folder)) {
💡 Title: Use of non-literal fs filename
installed: fs.existsSync(dependencies.getPath({ id, file })),
💡 Title: Use of non-literal fs filename
if (currentView) views.open(currentView.id)
💡 Title: Use of non-literal fs filename
const folder = fs.existsSync(id) ? id : dependencies.getPath({ id, file: pluginApi.cwd })
💡 Title: Use of non-literal fs filename
💡 Title: Use of non-literal require
let data = require(path.join(dependencies.getPath({ id, file: cwd.get() }), 'prompts'))
💡 Title: Use of non-literal fs filename
if (fs.existsSync(project.path)) {
💡 Title: Use of non-literal fs filename
if (currentProject && !fs.existsSync(currentProject.path)) {
💡 Title: Use of non-literal fs filename
if (!input.force && !fs.existsSync(path.join(input.path, 'node_modules'))) {
💡 Title: Use of non-literal fs filename
if (!fs.existsSync(project.path)) {
💡 Title: Use of non-literal fs filename
if (fs.existsSync(gitConfigPath)) {
💡 Title: Use of non-literal fs filename
if (fs.existsSync(path.resolve(rootFolder, projectId, `${id}.json`))) {
💡 Title: Use of non-literal fs filename
💡 Title: Use of non-literal require
const { resolvers: r } = require(file)
💡 Title: Use of non-literal fs filename
folderOpen: (root, { path }, context) => folders.open(path, context),
💡 Title: Use of non-literal fs filename
projectOpen: (root, { id }, context) => projects.open(id, context),
💡 Title: Use of non-literal fs filename
projectRename: (root, args, context) => projects.rename(args, context),
💡 Title: Use of non-literal fs filename
taskOpen: (root, { id }, context) => tasks.open(id, context),
💡 Title: Use of non-literal fs filename
viewOpen: (root, { id }, context) => views.open(id, context)
💡 Title: Use of non-literal require
const { types } = require(file)
💡 Title: Use of non-literal require
const module = require(file)
💡 Title: Use of non-literal require
[i18n.locale]: require(`date-fns/locale/${dateFnsLocale}/index.js`)
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve(templateDir, 'foo.js'), 'foo(<%- options.n %>)')
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve(templateDir, 'bar/bar.js'), 'bar(<%- m %>)')
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve(templateDir, 'bar/_bar.js'), '.bar(<%- m %>)')
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve(templateDir, 'entry.js'), `
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve(templateDir, 'empty-entry.js'), `;`)
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve(templateDir, 'main.ts'), `const a: string = 'hello';`)
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve(templateDir, 'hello.vue'), `
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve(templateDir, 'replace.js'), `
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve(templateDir, 'multi-replace-source.js'), `
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve(templateDir, 'multi-replace.js'), `
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve(templateDir, '_vscode/config.json'), `{}`)
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve(templateDir, '_gitignore'), 'foo')
💡 Title: Use of non-literal fs filename
fs.writeFileSync(rcPath, JSON.stringify({
💡 Title: Use of non-literal fs filename
const testFile = await fs.readFile(path.resolve(cwd, name, 'test.js'), 'utf-8')
💡 Title: Use of non-literal require
const pkg = require(path.resolve(cwd, name, 'package.json'))
💡 Title: Use of non-literal fs filename
const testFile = await fs.readFile(path.resolve(cwd, name, 'test.js'), 'utf-8')
💡 Title: Use of non-literal require
const pkg = require(path.resolve(cwd, name, 'package.json'))
💡 Title: Use of non-literal fs filename
const testFile = await fs.readFile(path.resolve(cwd, name, 'test.js'), 'utf-8')
💡 Title: Use of non-literal require
const pkg = require(path.resolve(cwd, name, 'package.json'))
💡 Title: Use of non-literal fs filename
const readme = await fs.readFile(path.resolve(cwd, name, 'README.md'), 'utf-8')
💡 Title: Use of non-literal require
const pkg = require(path.resolve(cwd, name, 'package.json'))
💡 Title: Use of non-literal fs filename
fs.existsSync(path.resolve(process.cwd(), '../@vue')) ||
💡 Title: Use of non-literal fs filename
fs.existsSync(path.resolve(process.cwd(), '../../@vue'))
💡 Title: Use of non-literal fs filename
return (this._entryFile = fs.existsSync(this.resolve('src/main.ts')) ? 'src/main.ts' : 'src/main.js')
💡 Title: Use of non-literal fs filename
return fs.readFileSync(name) // return buffer
💡 Title: Use of non-literal fs filename
const template = fs.readFileSync(name, 'utf-8')
💡 Title: Use of non-literal fs filename
finalTemplate = fs.readFileSync(extendPath, 'utf-8')
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve(this.context, 'package.json'), JSON.stringify(this.pkg, null, 2))
💡 Title: Use of non-literal fs filename
await fs.writeFile(file, JSON.stringify(config, null, 2), 'utf-8')
💡 Title: Use of non-literal fs filename
await fs.writeFile(file, JSON.stringify(config, null, 2), 'utf-8')
💡 Title: Use of non-literal fs filename
if (fs.existsSync(targetDir) && !options.merge) {
💡 Title: Use of non-literal fs filename
if (fs.existsSync(binPath)) {
💡 Title: Use of non-literal fs filename
if (fs.existsSync(rcPath)) {
💡 Title: Use of non-literal fs filename
cachedOptions = JSON.parse(fs.readFileSync(rcPath, 'utf-8'))
💡 Title: Use of non-literal fs filename
fs.writeFileSync(rcPath, JSON.stringify(options, null, 2))
💡 Title: Use of non-literal fs filename
💡 Title: Use of non-literal fs filename
npmConfig = Object.assign({}, ini.parse(fs.readFileSync(loc, 'utf-8')), npmConfig)
💡 Title: Use of non-literal fs filename
await fs.symlink(src, dest, 'dir')
💡 Title: Use of non-literal require
].map(file => require(`../promptModules/${file}`))
💡 Title: Use of non-literal fs filename
packageJson = fs.readFileSync(packagePath, 'utf-8')
💡 Title: Use of non-literal fs filename
await fs.symlink(src, dest)
💡 Title: Use of non-literal fs filename
await fs.chmod(dest, '755')
💡 Title: Use of non-literal require
return require(moduleName)
💡 Title: Use of non-literal fs filename
const stats = fs.statSync(path)
💡 Title: Use of non-literal fs filename
if (!fs.existsSync(presetPath)) {
💡 Title: Use of non-literal fs filename
const hasGenerator = fs.existsSync(path.join(dir, 'generator.js')) || fs.existsSync(path.join(dir, 'generator/index.js'))
💡 Title: Use of non-literal fs filename
if (!fs.existsSync(rcDir)) {
💡 Title: Use of non-literal fs filename
if (fs.existsSync(rcFile)) {
💡 Title: Use of non-literal fs filename
if (fs.existsSync(properRcFile)) {
💡 Title: Use of non-literal fs filename
? fs.readFileSync(name)
💡 Title: Use of non-literal fs filename
: fs.readFileSync(name, 'utf-8')
💡 Title: Use of non-literal fs filename
return fs.unlink(path.join(directory, filename))
💡 Title: Use of non-literal fs filename
fs.writeFileSync(filePath, files[name])
💡 Title: Use of non-literal fs filename
const files = fs.readdirSync(packagesDir)
💡 Title: Use of non-literal fs filename
if (!fs.existsSync(pkgPath)) {
💡 Title: Use of non-literal fs filename
fs.writeFileSync(pkgPath, JSON.stringify(json, null, 2))
💡 Title: Use of non-literal fs filename
if (!fs.existsSync(readmePath)) {
💡 Title: Use of non-literal fs filename
fs.writeFileSync(readmePath, `# @vue/${pkg}\n\n> ${desc}`)
💡 Title: Use of non-literal fs filename
if (!fs.existsSync(npmIgnorePath)) {
💡 Title: Use of non-literal fs filename
fs.writeFileSync(npmIgnorePath, `__tests__\n__mocks__`)
💡 Title: Use of non-literal fs filename
const configList = fs.readdirSync(path.resolve(__dirname, '../packages/@vue/'))
💡 Title: Use of non-literal fs filename
if (!fs.existsSync(templateDir)) {
💡 Title: Use of non-literal fs filename
fs.mkdirSync(templateDir)
💡 Title: Use of non-literal fs filename
fs.writeFileSync(`${templateDir}/_editorconfig`, content)
💡 Title: Use of non-literal fs filename
const contents = fs.readFileSync(file, { encoding: 'utf8' })
💡 Title: Use of non-literal fs filename
const files = fs.readdirSync(folder)
💡 Title: Use of non-literal fs filename
} else if (fs.statSync(fullPath).isDirectory()) {
💡 Title: Use of non-literal fs filename
newRelease + '\n\n\n' + fs.readFileSync(changelogPath, { encoding: 'utf8' })
💡 Title: Use of non-literal fs filename
fs.writeFileSync(changelogPath, newChangelog)
💡 Title: Use of non-literal fs filename
const entryContent = fs.readFileSync(entryPath)
💡 Title: Use of non-literal fs filename
fs.writeFile(docPath, entryContent, () => { })
💡 Title: Use of non-literal fs filename
fs.readdir(pluginsDirPath, (_, files) => {
💡 Title: Use of non-literal fs filename
fs.writeFileSync(path.resolve(__dirname, '../package.json'), JSON.stringify(pkg, null, 2))
💡 Title: Use of non-literal fs filename
fs.writeFileSync(file, writeCache[file])
💡 Title: Use of non-literal require
const pkg = require(path.resolve(__dirname, '../', filePath))
💡 Title: Use of non-literal require
return require(`../packages/${pkg}/package.json`).version
💡 Title: Use of non-literal require
return version || require(`../packages/${pkg}/package.json`).version
💡 Title: Use of non-literal fs filename
const updated = fs.readFileSync(filePath, 'utf-8')
💡 Title: Use of non-literal fs filename
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()
💡 Title: User input in require()
`The ${chalk.red('public/manifest.json')} file will be ignored in favor of ${chalk.cyan('pwa.manifestOptions')}`
💡 Title: Path Traversal from user input
💡 Title: Path Traversal from user input
const targetDir = path.join(cwd.get(), input.folder)
💡 Title: Path Traversal from user input
const gitConfigPath = path.join(project.path, '.git', 'config')
💡 Title: Path Traversal from user input
query = path.resolve(cwd.get(), input.file)
💡 Title: Path Traversal from user input
? path.posix.join(options.assetsDir, filePath)

This comment has been truncated due to comment length limitations, please go to the dashboard for further details.


👉 Go to the dashboard for detailed results.

📥 Happy? Share your feedback with us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Complete not running 引用H5对象报错
1 participant