-
Notifications
You must be signed in to change notification settings - Fork 97
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
Bump braces, webpack and webpack-cli #1458
Conversation
Bumps [braces](https://github.com/micromatch/braces) to 3.0.3 and updates ancestor dependencies [braces](https://github.com/micromatch/braces), [webpack](https://github.com/webpack/webpack) and [webpack-cli](https://github.com/webpack/webpack-cli). These dependencies need to be updated together. Updates `braces` from 3.0.2 to 3.0.3 - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md) - [Commits](micromatch/braces@3.0.2...3.0.3) Updates `webpack` from 4.26.1 to 5.96.1 - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](webpack/webpack@v4.26.1...v5.96.1) Updates `webpack-cli` from 3.3.12 to 5.1.4 - [Release notes](https://github.com/webpack/webpack-cli/releases) - [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md) - [Commits](https://github.com/webpack/webpack-cli/compare/[email protected]) --- updated-dependencies: - dependency-name: braces dependency-type: indirect - dependency-name: webpack dependency-type: direct:development - dependency-name: webpack-cli dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]>
Note I have introduced a change that prevents Sonarcloud actions from failing when running on PRs created by @dependabot .
To understand the impact of the changes and make a decision if we want to merge that. |
I think I understand the difference (we work around read-only permissions granted to PRs opened by dependabot), but why wasn't it an issue before this PR? I'm struggling to assess the risk here: would the vulnerability be if, for example, someone breaks in sonarcloud and tries to steal secrets through it? 🤔 |
From what I can see, the PRs that I merged in the last days were rebased by me manually, making me the author of the commits. If dependabot is not the author, the secrets work as intended.
I think the attack vector is something like: |
Alternative solution: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sbmueller I don't think we can take this change. This is a public repo where we allow anyone as well as dependabot to open PRs against. This is the definition of allowing untrusted PRs. On top of that, the things you shared said:
TL;DR: Combining pull_request_target workflow trigger with an explicit checkout of an untrusted PR is a dangerous practice that may lead to repository compromise.
To my eye, we are doing that, every job has actions/checkout@v4
, we're not even gating it to PRs authored by dependabot. I don't understand how we are mitigating against this risk
I appreciate you highlighting why this change may be dangerous, but from my read of the docs, I would advise against taking this change.
cf4031c
to
63d0fed
Compare
Quality Gate passed for 'libsbp-c'Issues Measures |
@pcrumley I agree, removed the change and implemented skipping the job if the actor is @dependabot . |
Suggested changes implemented, merging now.
Bumps braces to 3.0.3 and updates ancestor dependencies braces, webpack and webpack-cli. These dependencies need to be updated together.
Updates
braces
from 3.0.2 to 3.0.3Commits
74b2db2
3.0.388f1429
update eslint. lint, fix unit tests.415d660
Snyk js braces 6838727 (#40)190510f
fix tests, skip 1 test in test/braces.expand716eb9f
readme bumpa5851e5
Merge pull request #37 from coderaiser/fix/vulnerability2092bd1
feature: braces: add maxSymbols (https://github.com/micromatch/braces/issues/...9f5b4cf
fix: vulnerability (https://security.snyk.io/vuln/SNYK-JS-BRACES-6838727)98414f9
remove funding file665ab5d
update keepEscaping doc (#27)Updates
webpack
from 4.26.1 to 5.96.1Release notes
Sourced from webpack's releases.
... (truncated)
Commits
d4ced73
chore(release): 5.96.17d6dbea
fix: types regression in validate5c556e3
fix: types regression in validate2420eae
fix: add@types/eslint-scope
to dependencies due types regressionec45d2d
fix: add@types/eslint-scope
to dependenciesaff0c3e
chore(release): 5.96.06f11ec1
refactor: module source types codeb07142f
refactor: module source types code7d98b3c
fix: Module Federation should track all referenced chunks6d09769
chore: lintingMaintainer changes
This version was pushed to npm by evilebottnawi, a new releaser for webpack since your current version.
Updates
webpack-cli
from 3.3.12 to 5.1.4Release notes
Sourced from webpack-cli's releases.
... (truncated)
Changelog
Sourced from webpack-cli's changelog.
... (truncated)
Commits
e07f0e5
chore(release): publish new version0345c6f
chore(deps-dev): bump@typescript-eslint/parser
from 5.59.8 to 5.59.9 (#3839)f659624
fix: multi compiler progress output0d1ff01
chore(deps-dev): bump webpack from 5.85.0 to 5.85.1 (#3837)a7ec146
chore(deps-dev): bump@typescript-eslint/eslint-plugin
(#3838)9464635
chore(deps-dev): bump eslint from 8.41.0 to 8.42.0 (#3835)cf1796f
docs: update changelog7899c39
chore(release): publish new versionbb4f8eb
fix: regression for custom configurations (#3834)14b9c18
docs: update changelogDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)You can disable automated security fix PRs for this repo from the Security Alerts page.