Skip to content

Bump cypress from 7.7.0 to 13.6.2 in /research-hub-web#449

Open
dependabot[bot] wants to merge 2154 commits intomasterfrom
dependabot/npm_and_yarn/research-hub-web/cypress-13.6.2
Open

Bump cypress from 7.7.0 to 13.6.2 in /research-hub-web#449
dependabot[bot] wants to merge 2154 commits intomasterfrom
dependabot/npm_and_yarn/research-hub-web/cypress-13.6.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Jan 1, 2024

Bumps cypress from 7.7.0 to 13.6.2.

Release notes

Sourced from cypress's releases.

v13.6.2

Changelog: https://docs.cypress.io/guides/references/changelog#13-6-2

v13.6.1

Changelog: https://docs.cypress.io/guides/references/changelog#13-6-1

v13.6.0

Changelog: https://docs.cypress.io/guides/references/changelog#13-6-0

v13.5.1

Changelog: https://docs.cypress.io/guides/references/changelog#13-5-1

v.13.5.0

Changelog: https://docs.cypress.io/guides/references/changelog#13-5-0

v13.4.0

Changelog: https://docs.cypress.io/guides/references/changelog#13-4-0

v13.3.3

Changelog: https://docs.cypress.io/guides/references/changelog#13-3-3

v13.3.2

Changelog: https://docs.cypress.io/guides/references/changelog#13-3-2

v13.3.1

Changelog: https://docs.cypress.io/guides/references/changelog#13-3-1

v13.3.0

Changelog: https://docs.cypress.io/guides/references/changelog#13-3-0

v13.2.0

Changelog: https://docs.cypress.io/guides/references/changelog#13-2-0

v13.1.0

Changelog: https://docs.cypress.io/guides/references/changelog#13-1-0

v13.0.0

Changelog: https://docs.cypress.io/guides/references/changelog#13-0-0

v12.17.4

Changelog: https://docs.cypress.io/guides/references/changelog#12-17-4

v12.17.3

Changelog: https://docs.cypress.io/guides/references/changelog#12-17-3

v12.17.2

Changelog: https://docs.cypress.io/guides/references/changelog#12-17-2

v12.17.1

Changelog: https://docs.cypress.io/guides/references/changelog#12-17-1

... (truncated)

Commits
  • ce8ee60 chore: release 13.6.2 (#28589)
  • 77d661b chore: adds SKIP_RELEASE_CHANGELOG_VALIDATION_FOR_BRANCHES to verify-mocha-re...
  • fd02263 chore: upgrade nvm on windows so we can install node 20 in kitchensink binary...
  • d6f356f chore: update changelog to fix release readiness check (#28551)
  • 3eece90 chore: Revert "chore: moves fix annotation to dependency update section" (#28...
  • 38049f2 misc: moves fix annotation to dependency update section (#28549)
  • 9c46519 chore: increases windows resourcing (#28494)
  • fa971f1 perf: improve performance when finding unique selectors for Test Replay (#28536)
  • 17eea15 docs: Add more descriptive changelog entry since this bug is fixed. [skip ci]...
  • 3725158 dependency: Bump ts-node to 10.9.2 (#28528)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by cypress-npm-publisher, a new releaser for cypress since your current version.


Dependabot compatibility score

Dependabot 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)

devslashnoel and others added 24 commits August 24, 2023 15:58
Fix failed start up due to Contentful type changes
…search-stage-url

RSM-3036: stage: replace search with url
Bumps [cypress](https://github.com/cypress-io/cypress) from 7.7.0 to 13.6.2.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md)
- [Commits](cypress-io/cypress@v7.7.0...v13.6.2)

---
updated-dependencies:
- dependency-name: cypress
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Jan 1, 2024

Dependabot tried to add @Trombach, @cakr322 and @eric-el-tan as reviewers to this PR, but received the following error from GitHub:

POST https://api.github.com/repos/UoA-eResearch/hub-stack/pulls/449/requested_reviewers: 422 - Reviews may only be requested from collaborators. One or more of the users or teams you specified is not a collaborator of the UoA-eResearch/hub-stack repository. // See: https://docs.github.com/rest/pulls/review-requests#request-reviewers-for-a-pull-request

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 1, 2024
@lugn621 lugn621 force-pushed the dependabot/npm_and_yarn/research-hub-web/cypress-13.6.2 branch from ed4b23b to bd8e842 Compare April 2, 2026 02:11
Comment on lines +15 to +36
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 18

- name: Install Node.js dependencies
working-directory: ./research-hub-web
run: npm ci --force

- name: Install Angular CLI
run: npm install -g @angular/cli

- name: ng lint
working-directory: ./research-hub-web
run: ng lint

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 6 days ago

In general, the fix is to explicitly declare a minimal permissions block for the workflow or specific job so that the GITHUB_TOKEN has only the scopes required. For a lint-only workflow that just checks out code and runs npm/ng commands, repository contents need to be readable but no write access is required.

The best fix here is to add a workflow-level permissions section just below the name: Lint line, setting contents: read. This will apply to all jobs in this workflow (currently only run-linters) unless they override it, and it does not alter existing job behavior because the job already only reads from the repo. No additional imports or tools are needed; this is purely a YAML configuration change in .github/workflows/linting.yml.

Concretely:

  • In .github/workflows/linting.yml, insert:
permissions:
  contents: read
  • Place it after line 1 (name: Lint) and before the on: block, which is the standard location for workflow-level permissions.
  • No other lines or files need to be changed.
Suggested changeset 1
.github/workflows/linting.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml
--- a/.github/workflows/linting.yml
+++ b/.github/workflows/linting.yml
@@ -1,4 +1,6 @@
 name: Lint
+permissions:
+  contents: read
 
 on:
   # Trigger the workflow on push or pull request,
EOF
@@ -1,4 +1,6 @@
name: Lint
permissions:
contents: read

on:
# Trigger the workflow on push or pull request,
Copilot is powered by AI and may make mistakes. Always verify output.
Comment on lines +14 to +33
name: Create Sentry Release
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Get Branch
id: var
run: echo ::set-output name=branch::${GITHUB_REF#refs/*/}
- name: Output Branch
run: echo ${{ steps.var.outputs.branch }}
- name: Notify Sentry
# https://github.com/getsentry/action-release
uses: getsentry/action-release@v1.1.6
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: university-of-auckland-7o
SENTRY_PROJECT: research-hub
with:
environment: ${{ steps.var.outputs.branch }} No newline at end of file

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 6 days ago

To fix the problem, explicitly declare minimal permissions for the workflow/job so that the GITHUB_TOKEN has only the access it needs. In this case, the job just checks out the repository and sends release info to Sentry; that only requires read access to repository contents.

The best fix without changing functionality is to add a permissions block with contents: read. This can be added either at the workflow root (affecting all jobs) or under the sentry-release job. Since there is only one job shown, adding it at the root level (right after name: Sentry Release) is clear and future‑proof. No additional imports or methods are needed—this is purely a YAML configuration change inside .github/workflows/sentry.yml, near the top of the file.

Suggested changeset 1
.github/workflows/sentry.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/sentry.yml b/.github/workflows/sentry.yml
--- a/.github/workflows/sentry.yml
+++ b/.github/workflows/sentry.yml
@@ -1,4 +1,6 @@
 name: Sentry Release
+permissions:
+  contents: read
 
 on:
   push:
EOF
@@ -1,4 +1,6 @@
name: Sentry Release
permissions:
contents: read

on:
push:
Copilot is powered by AI and may make mistakes. Always verify output.
run: echo ${{ steps.var.outputs.branch }}
- name: Notify Sentry
# https://github.com/getsentry/action-release
uses: getsentry/action-release@v1.1.6

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Sentry Release' step
Uses Step
uses 'getsentry/action-release' with ref 'v1.1.6', not a pinned commit hash

module.exports.search = async (event, context) => {
try {
console.log(`Received query: ${event.body}`);

Check warning

Code scanning / CodeQL

Log injection Medium

Log entry depends on a
user-provided value
.

Copilot Autofix

AI 6 days ago

In general, to fix log injection when logging user-controlled data, you should sanitize the data before logging by removing or normalizing line breaks and other control characters, and ensure it is clearly delimited in the log entry. For plain-text logs, a minimal and effective mitigation is to strip \r and \n characters from the user input before interpolation.

For this specific code, the best fix with minimal functional impact is to introduce a sanitized version of event.body just for logging, while leaving the original event.body intact for parsing and processing. We can do this by creating a new variable (e.g., sanitizedBodyForLog) that either (a) falls back to an empty string if event.body is not a string, and (b) strips \r and \n characters from it using String.prototype.replace with a regular expression. Then use this sanitized variable in the console.log call on line 53. This avoids changing how the request is handled and parsed while ensuring that log output cannot be split by attacker-controlled newlines.

Concretely:

  • In hub-search-proxy/handler.js, within module.exports.search, replace the single log line console.log(\Received query: ${event.body}`);` with a small snippet:
    • Define let sanitizedBodyForLog = '';
    • If typeof event.body === 'string', set sanitizedBodyForLog = event.body.replace(/\r|\n/g, '');
    • Log sanitizedBodyForLog instead of event.body.
      No new imports or external libraries are required; we rely only on built-in string methods.
Suggested changeset 1
hub-search-proxy/handler.js

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/hub-search-proxy/handler.js b/hub-search-proxy/handler.js
--- a/hub-search-proxy/handler.js
+++ b/hub-search-proxy/handler.js
@@ -50,7 +50,11 @@
 
 module.exports.search = async (event, context) => {
     try {
-        console.log(`Received query: ${event.body}`);
+        let sanitizedBodyForLog = '';
+        if (typeof event.body === 'string') {
+            sanitizedBodyForLog = event.body.replace(/\r|\n/g, '');
+        }
+        console.log(`Received query: ${sanitizedBodyForLog}`);
         const requestBody = JSON.parse(event.body);
         let queryString = '';
         let size = 10;
EOF
@@ -50,7 +50,11 @@

module.exports.search = async (event, context) => {
try {
console.log(`Received query: ${event.body}`);
let sanitizedBodyForLog = '';
if (typeof event.body === 'string') {
sanitizedBodyForLog = event.body.replace(/\r|\n/g, '');
}
console.log(`Received query: ${sanitizedBodyForLog}`);
const requestBody = JSON.parse(event.body);
let queryString = '';
let size = 10;
Copilot is powered by AI and may make mistakes. Always verify output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants