Skip to content

Restore markdownlint tests - #12549

Merged
Travis Plunk (TravisEz13) merged 12 commits into
PowerShell:masterfrom
xtqqczze:restore-markdownlint
Jun 2, 2020
Merged

Restore markdownlint tests#12549
Travis Plunk (TravisEz13) merged 12 commits into
PowerShell:masterfrom
xtqqczze:restore-markdownlint

Conversation

@xtqqczze

@xtqqczze xtqqczze commented May 2, 2020

Copy link
Copy Markdown
Contributor

PR Summary

Fix #12539

PR Context

markdownlint tests were removed in #10163 due to a security issue whoch has since been fixed in a newer version of markdownlint

PR Checklist

@xtqqczze

xtqqczze commented May 2, 2020

Copy link
Copy Markdown
Contributor Author

Codacy markdown issues seem to contradict markdownlint issues.

iSazonov
Ilya (iSazonov) previously approved these changes May 2, 2020
Comment thread test/common/markdown/gulpfile.js Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found non-literal argument in require (security/detect-non-literal-require)

@iSazonov
Ilya (iSazonov) self-requested a review May 2, 2020 18:25
@iSazonov
Ilya (iSazonov) dismissed their stale review May 2, 2020 18:25

New commits

@xtqqczze

xtqqczze commented May 2, 2020

Copy link
Copy Markdown
Contributor Author
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ low           │ Prototype Pollution                                          │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ yargs-parser                                                 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=13.1.2 <14.0.0 || >=15.0.1 <16.0.0 || >=18.1.2             │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ gulp > gulp-cli > yargs > yargs-parser                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://www.npmjs.com/advisories/1500                        │
└───────────────┴──────────────────────────────────────────────────────────────┘

The maintainer of the affected package claims the yargs-parser vulnerability does not introduce an attack vector in gulp.

See: gulpjs/gulp#2438

Comment thread tools/install-powershell.sh-README.md Outdated
@TravisEz13

Copy link
Copy Markdown
Member

There mere presence of a high scored vuln on the machine will trigger the same issue that cause this to be removed.

@TravisEz13

Copy link
Copy Markdown
Member

I made a couple of edits to your branch. Please pull your branch if you need to edit something.

@TravisEz13

Copy link
Copy Markdown
Member

That component is not currently generating an alert.

@TravisEz13 Travis Plunk (TravisEz13) added the CL-Test Indicates that a PR should be marked as a test change in the Change Log label May 4, 2020
@xtqqczze

xtqqczze commented May 5, 2020

Copy link
Copy Markdown
Contributor Author

The maintainer of gulp says the vulnerable dependency will not be updated until the project releases a new major version, which does not appear to be imminient.

See: yargs/yargs-parser#264 (comment)

@xtqqczze

xtqqczze commented May 5, 2020

Copy link
Copy Markdown
Contributor Author

Travis Plunk (@TravisEz13) Perhaps we could do without gulp anyway, and use npm-run-script or equivalent?

@TravisEz13

Copy link
Copy Markdown
Member

xtqqczze I'm not tied to gulp. As long as we still get test results. But if it reduces dependencies, I'm all for it.

@TravisEz13

Copy link
Copy Markdown
Member

Tell me if you want me to merge this as is and then update, or you want to change it first.

@xtqqczze

xtqqczze commented May 6, 2020

Copy link
Copy Markdown
Contributor Author

Travis Plunk (@TravisEz13) Merge this for now please.

Comment thread test/common/markdown/markdown.tests.ps1 Outdated
Comment thread test/common/markdown/gulpfile.js Outdated
@xtqqczze
xtqqczze force-pushed the restore-markdownlint branch from 19e6c61 to 4180235 Compare May 30, 2020 20:01
@xtqqczze

Copy link
Copy Markdown
Contributor Author

rebased to resolve conflicts

@xtqqczze

xtqqczze commented May 30, 2020

Copy link
Copy Markdown
Contributor Author

Travis Plunk (@TravisEz13) I'm not my change in 4180235 to use Write-Host is the best approach (CodeFactor issue), but I think we should log $markdownErrors somehow...

xtqqczze and others added 4 commits May 30, 2020 21:28
* Split `\install-powershell-readme.md` into `install-powershell.ps1-README.md` and `install-powershell.sh-README.md` to fix `single-h1`
* Formatting changes to github issue templates as a result of fixing `single-h1`
@xtqqczze
xtqqczze force-pushed the restore-markdownlint branch from 4180235 to 3a1a172 Compare May 30, 2020 20:31
@xtqqczze

Copy link
Copy Markdown
Contributor Author

rebased to fix additionally markdownlint errors

Comment thread test/common/markdown/gulpfile.js

@TravisEz13 Travis Plunk (TravisEz13) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One one comment to address

@ghost ghost added the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Jun 2, 2020
@ghost ghost removed this from the 7.1.0-preview.4 milestone Jun 2, 2020
@TravisEz13

Copy link
Copy Markdown
Member

PoshChan-Bot (@PoshChan) Please remind me in 1 hour

@PoshChan

Copy link
Copy Markdown
Collaborator

Travis Plunk (@TravisEz13), this is the reminder you requested 1 hour ago

@TravisEz13 Travis Plunk (TravisEz13) changed the title Restore markdownlint tests Restore markdownlint tests Jun 2, 2020
@TravisEz13
Travis Plunk (TravisEz13) merged commit b03b968 into PowerShell:master Jun 2, 2020
@iSazonov Ilya (iSazonov) removed the Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept label Jun 3, 2020
@iSazonov Ilya (iSazonov) added this to the 7.1.0-preview.4 milestone Jun 3, 2020
@ghost

Copy link
Copy Markdown

🎉v7.1.0-preview.4 has been released which incorporates this pull request.:tada:

Handy links:

@ghost ghost mentioned this pull request Jun 25, 2020
@xtqqczze
xtqqczze deleted the restore-markdownlint branch June 29, 2020 13:19
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Test Indicates that a PR should be marked as a test change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restore markdownlint tests

5 participants