opensearch-project / reporting

Export and automate PNG, PDF, and CSV reports in OpenSearch Dashboards
https://opensearch.org/docs/latest/dashboards/reporting/
Apache License 2.0
29 stars 66 forks source link

Upgrade JSON to 20231013 to fix CVE-2023-5072 #912

Closed derek-ho closed 1 year ago

derek-ho commented 1 year ago

Description

Upgrade JSON to 20231013 to fix CVE-2023-5072

Issues Resolved

[List any issues this PR will resolve]

Check List

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

opensearch-trigger-bot[bot] commented 9 months ago

The backport to 1.x failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/reporting/backport-1.x 1.x
# Navigate to the new working tree
pushd ../.worktrees/reporting/backport-1.x
# Create a new branch
git switch --create backport/backport-912-to-1.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b68990fed59814832800affed06e5aa4439f0918
# Push it to GitHub
git push --set-upstream origin backport/backport-912-to-1.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/reporting/backport-1.x

Then, create a pull request where the base branch is 1.x and the compare/head branch is backport/backport-912-to-1.x.