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

update high vulnerability node modules #2303

Merged
merged 3 commits into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Fixes

- [#2303: Update high vulnerability node modules](https://github.com/alphagov/govuk-prototype-kit/pull/2303)

## 13.12.1

### Fixes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,16 @@ describe('Management plugins: ', () => {
after(restoreStarterFiles)

it('CSRF Protection on POST action', () => {
// Load the plugins page, so we don't get any network errors when running the test
loadPluginsPage()
// Now run the test
const installUrl = `${managePluginsPagePath}/install`
cy.task('log', `Posting to ${installUrl} without csrf protection`)
cy.request({
url: `${managePluginsPagePath}/install`,
method: 'POST',
failOnStatusCode: false,
body: { package: plugin },
retryOnNetworkFailure: true,
timeout: 4000
body: { package: plugin }
}).then(response => {
expect(response.status).to.eq(403)
expect(response.body).to.have.property('error', 'invalid csrf token')
Expand Down
Loading