Skip to content
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

chore(deps): update dependency semantic-release to v19 [security] #22238

Merged
merged 9 commits into from Jun 27, 2022

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 10, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
semantic-release 17.2.3 -> 19.0.3 age adoption passing confidence
semantic-release 17.4.2 -> 19.0.3 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2022-31051

Impact

What kind of vulnerability is it? Who is impacted?

Secrets that would normally be masked by semantic-release can be accidentally disclosed if they contain characters that are excluded from uri encoding by encodeURI. Occurrence is further limited to execution contexts where push access to the related repository is not available without modifying the repository url to inject credentials.

Patches

Has the problem been patched? What versions should users upgrade to?

Fixed in 19.0.3

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

Secrets that do not contain characters that are excluded from encoding with encodeURI when included in a URL are already masked properly.

References

Are there any links users can visit to find out more?

For more information

If you have any questions or comments about this advisory:


Configuration

📅 Schedule: Branch creation - "" in timezone America/New_York, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, click this checkbox. ⚠ Warning: custom changes will be lost.

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested review from a team as code owners June 10, 2022 04:21
@renovate renovate bot requested review from jennifer-shehane and removed request for a team June 10, 2022 04:21
@renovate renovate bot added renovate Triggered by renovatebot type: dependencies labels Jun 10, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jun 10, 2022

See the guidelines for reviewing dependency updates for info on how to review dependency update PRs.

@cypress
Copy link

cypress bot commented Jun 10, 2022



Test summary

37681 0 456 0Flakiness 11


Run details

Project cypress
Status Passed
Commit f105739
Started Jun 24, 2022 7:27 PM
Ended Jun 24, 2022 7:45 PM
Duration 17:32 💡
OS Linux Debian - 10.11
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

cypress/e2e/commands/xhr.cy.js Flakiness
1 ... > logs request + response headers
2 ... > logs Method, Status, URL, and XHR
3 ... > logs response
4 ... > logs Method, Status, URL, and XHR
5 ... > logs response
This comment includes only the first 5 flaky tests. See all 11 flaky tests in the Cypress Dashboard.

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@lmiller1990
Copy link
Contributor

Hmm seems this update is not compatible, maybe we should go to semantic-version 18 before 19.

@renovate
Copy link
Contributor Author

renovate bot commented Jun 22, 2022

Autoclosing Skipped

This PR has been flagged for autoclosing, however it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.

@jennifer-shehane jennifer-shehane requested review from a team and AtofStryker and removed request for jennifer-shehane and a team June 22, 2022 17:46
@lmiller1990
Copy link
Contributor

Seems v18 is also not working out of the box (need some code changes, I guess).

@AtofStryker
Copy link
Contributor

@lmiller1990 I took a quick look into this and looks like the only breaking change with v18 was requiring minimum node 14 support, and v19 dropping node 15 all together. Since we install node 16 in CI it shouldn't be an issue, and judging by the CI failure it looks like we just need to bump jasmine-core from ~3.7.0 to ~3.8.0. I might take a stab at trying to fix this.

@AtofStryker AtofStryker self-assigned this Jun 23, 2022
@AtofStryker
Copy link
Contributor

@emilyrohrbough @lmiller1990 I had to update the cli_spec to include handling obscured internal error codes for version > node 16 / npm 8. The script still fails as expected, so the behavior is correct, but find it a bit weird that the child process node version changed in the lock just from this PR. Looks like this has been a problem in the past based on initial commit and the test should now have enough flexibility to pass. I also verified that exit code 10 does happen in node 14 / npm 6, and does actually become exit code 1 in Node 16 / npm 8.

@lmiller1990
Copy link
Contributor

What do you mean by

the child process node version changed in the lock just from this PR

I looked at the lockfile, but I'm not sure what I'm looking for.

If you run yarn locally, does the same lockfile get produced? Sometimes these bots seems to manually edit the lockfile, which is weird - we should let yarn generate the lockfile.

Strange on the exit code changing... I love keeping deps up to date, but seems this particular one introduces a bug 🤔. I wonder if this is even the latest version, or has this been seen elsewhere?

@AtofStryker
Copy link
Contributor

What do you mean by

the child process node version changed in the lock just from this PR

I looked at the lockfile, but I'm not sure what I'm looking for.

If you run yarn locally, does the same lockfile get produced? Sometimes these bots seems to manually edit the lockfile, which is weird - we should let yarn generate the lockfile.

Strange on the exit code changing... I love keeping deps up to date, but seems this particular one introduces a bug 🤔. I wonder if this is even the latest version, or has this been seen elsewhere?

When I run yarn locally, I get the same lock file. It looks like the lock was bumped here with the version upgrade, which under the hood changes the npm version from ^6.10.3 to ^8.3.0. This changes the npm version in the cli_spec, which throws an exit code 1 in npm 8 instead of exit code 10. I don't think it's a bug, but likely a behavior change. It doesn't really make sense to send an exit code 10 to the user as it is an Internal JavaScript Run-Time Failure (exit code 10), which eventually is an Uncaught Fatal Exception (exit code 1).

Seems more of a presentation thing, but I can't find it documented anywhere. Based on the code, it looks like this was the case in npm 4 and below (return 1 instead of 10), but was different in 5,6, and 7. And it 8, its back to returning 1. If I run the following with Node 16, / npm 8, it exits with code 1:

But in Node 14 / npm 6, it exits with code 10:

Both provide the behavior we would expect though, which would be for the code to critically fail. I cannot seem to find any decision around this as to why this change happened, but I think we should be safe on our end.

@AtofStryker AtofStryker removed their request for review June 24, 2022 19:20
Copy link
Contributor

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

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

@AtofStryker thanks for clarifying - seems semantic release have some under the hood changes. I agree that as long as we error out, we don't care too much about the specific code. Let's ship!

@lmiller1990
Copy link
Contributor

Green except one windows CI that is flaking all over the place. I will look at it right now, but I do not think this could possibly have caused it, so I'm going to merge.

@lmiller1990 lmiller1990 merged commit fac83fd into develop Jun 27, 2022
@lmiller1990 lmiller1990 deleted the renovate/npm-semantic-release-vulnerability branch June 27, 2022 02:36
@AtofStryker AtofStryker removed their assignment Jun 27, 2022
tgriesser added a commit that referenced this pull request Jun 27, 2022
…esser/CLOUD-577-spec-list-display-latest-runs-batching

* muaz/CLOUD-577-spec-list-display-latest-runs:
  test: Addressing launchpad test flake in Windows (#22536)
  address comments from @marktnoonan
  Address code review comments
  followup on other comments
  re: @lmiller1990 PR comments
  chore(deps): update dependency semantic-release to v19 [security] (#22238)
  chore: Address skipped specs in server package (#22356)
  Address code review findings
  Address code review findings
  Empty-Commit to generate new percy nonce
  fix: handle case of implicit plugins/index.js files during migration (#22501)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
renovate Triggered by renovatebot type: dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants