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

[Snyk] Fix for 1 vulnerabilities #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tulik
Copy link
Member

@tulik tulik commented Sep 11, 2024

User description

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.

Snyk changed the following file(s):

  • package.json

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠️ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-PATHTOREGEXP-7925106
  67  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Regular Expression Denial of Service (ReDoS)


PR Type

enhancement, bug fix


Description

  • Upgraded react-router and react-router-dom dependencies to version 6.0.0 to fix vulnerabilities.
  • Addressed a Regular Expression Denial of Service (ReDoS) vulnerability identified by Snyk.

Changes walkthrough 📝

Relevant files
Enhancement
package.json
Upgrade react-router and react-router-dom to version 6.0.0

package.json

  • Upgraded react-router from version ^5.3.4 to ^6.0.0.
  • Upgraded react-router-dom from version ^5.3.4 to ^6.0.0.
  • +2/-2     

    💡 PR-Agent usage:
    Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    Copy link

    Hello from @codemakerai.

    CodeMaker AI GitHub App integration.

    Usage:

    @codemakerai [command or prompt]

    Assistant

    All Assistant features are supported in GitHub. Assistant can answer general questions as well as questions directly
    related to code. It also has code editing capabilities.

    @codemakerai assistant prompt - the assistant prompt
    @codemakerai prompt - the assistant prompt. Alias to assistant command.

    Commands

    Pull Request Commands - commands that can be posted as comments on the pull request:

    @codemakerai help - prints this help message
    @codemakerai review process - process the most recent code review and all it's comments
    @codemakerai generate code [codepath] - generate code for all files in pull request, or only for matching code path.
    @codemakerai generate docs [codepath] - generate documentation for all files in pull request, or only for matching code path.
    @codemakerai replace code [codepath] - replace code for all files in pull request, or only for matching code path.
    @codemakerai replace docs [codepath] - replace documentation for all files in pull request, or only for matching code path.
    @codemakerai fix syntax - fixes the syntax in all files
    @codemakerai commit undo - removes the most recent commit

    Pull Request Code Review Commands - commands that can be posted as comments on the code review i.e. "Files changed" tab:

    @codemakerai assistant prompt - the assistant prompt
    @codemakerai explain - explains the code
    @codemakerai review - reviews the code

    Triggers

    To automatically trigger certain actions on pull requests you can create and use the following GitHub labels.

    codemakerai-pull-request-generate-documentation - automatically generates comments/documentation on Pull Request creation.
    codemakerai-pull-request-syntax-autocorrection - automatically corrects syntax on Pull Request creation.
    codemakerai-pull-request-review-process - automatically processes code review comments on Pull Request Review submission.

    For in depth explanation of the features, please consult https://docs.codemaker.ai

    In case of any issues please report them to https://community.codemaker.ai

    Copy link

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

    PR Reviewer Guide 🔍

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ Key issues to review

    Breaking Changes
    Upgrading react-router and react-router-dom from version 5 to 6 may introduce breaking changes that need to be addressed in the application code.

    Copy link

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

    PR Code Suggestions ✨

    CategorySuggestion                                                                                                                                    Score
    Best practice
    Specify exact versions for major dependency updates to prevent unexpected breaking changes

    Consider specifying a more precise version for react-router and react-router-dom
    instead of using the caret (^) notation. This can help prevent unexpected breaking
    changes in minor updates.

    package.json [130-131]

    -"react-router": "^6.0.0",
    -"react-router-dom": "^6.0.0",
    +"react-router": "6.0.0",
    +"react-router-dom": "6.0.0",
     
    • Apply this suggestion
    Suggestion importance[1-10]: 8

    Why: Specifying exact versions for major updates is a good practice to avoid unexpected breaking changes in future minor updates, enhancing stability and predictability in dependency management.

    8
    Compatibility
    Update related dependencies to ensure compatibility with the new major version of react-router

    Consider updating other dependencies that might be affected by the major version
    upgrade of react-router and react-router-dom. For example, react-redux might need to
    be updated to ensure compatibility with the new router version.

    package.json [128-131]

    -"react-redux": "^7.2.9",
    +"react-redux": "^8.0.0",
     "react-relative-portal": "^1.8.0",
     "react-router": "^6.0.0",
     "react-router-dom": "^6.0.0",
     
    • Apply this suggestion
    Suggestion importance[1-10]: 7

    Why: The suggestion to update related dependencies like react-redux is valid as major version upgrades can introduce breaking changes. However, without specific compatibility issues identified, the necessity of this update is speculative.

    7

    Copy link

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

    CI Failure Feedback 🧐

    Action: snyk

    Failed stage: Install PHP dependencies [❌]

    Failure summary:

    The action failed due to the following reasons:

  • Missing peer dependencies: The workspace does not provide required peer dependencies such as
    @testing-library/dom, @vanilla/utils, and react-is, which are requested by other packages.
  • Lockfile modification: The installation process attempted to modify the lockfile, which is
    explicitly forbidden in the current configuration.

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  Ubuntu
    ...
    
    652:  �[93m➤�[39m YN0002: │ �[38;5;173mvanilla�[39m�[38;5;111m@�[39m�[38;5;111mworkspace:.�[39m doesn't provide �[38;5;166m@testing-library/�[39m�[38;5;173mdom�[39m (�[38;5;111mpd878a�[39m), requested by �[38;5;166m@testing-library/�[39m�[38;5;173muser-event�[39m.
    653:  �[93m➤�[39m YN0002: │ �[38;5;173mvanilla�[39m�[38;5;111m@�[39m�[38;5;111mworkspace:.�[39m doesn't provide �[38;5;166m@vanilla/�[39m�[38;5;173mutils�[39m (�[38;5;111mp0cd3d�[39m), requested by �[38;5;166m@vanilla/�[39m�[38;5;173micons�[39m.
    654:  �[93m➤�[39m YN0002: │ �[38;5;173mvanilla�[39m�[38;5;111m@�[39m�[38;5;111mworkspace:.�[39m doesn't provide �[38;5;173mreact-is�[39m (�[38;5;111mp2bb43�[39m), requested by �[38;5;166m@reach/�[39m�[38;5;173mmenu-button�[39m.
    655:  �[93m➤�[39m YN0086: │ Some peer dependencies are incorrectly met; run �[38;5;111myarn explain peer-requirements <hash>�[39m for details, where �[38;5;111m<hash>�[39m is the six-letter p-prefixed code.
    656:  �[91m➤�[39m YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
    657:  ##[endgroup]
    658:  �[91m➤�[39m YN0028: The lockfile would have been modified by this install, which is explicitly forbidden.
    659:  �[94m➤�[39m �[90mYN0000�[39m: └ Completed
    660:  �[91m➤�[39m YN0000: · Failed with errors in 12s 800ms
    661:  Installing core node_modules failed
    662:  ##[error]Process completed with exit code 1.
    

    ✨ CI feedback usage guide:

    The CI feedback tool (/checks) automatically triggers when a PR has a failed check.
    The tool analyzes the failed checks and provides several feedbacks:

    • Failed stage
    • Failed test name
    • Failure summary
    • Relevant error logs

    In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:

    /checks "https://github.com/{repo_name}/actions/runs/{run_number}/job/{job_number}"
    

    where {repo_name} is the name of the repository, {run_number} is the run number of the failed check, and {job_number} is the job number of the failed check.

    Configuration options

    • enable_auto_checks_feedback - if set to true, the tool will automatically provide feedback when a check is failed. Default is true.
    • excluded_checks_list - a list of checks to exclude from the feedback, for example: ["check1", "check2"]. Default is an empty list.
    • enable_help_text - if set to true, the tool will provide a help message with the feedback. Default is true.
    • persistent_comment - if set to true, the tool will overwrite a previous checks comment with the new feedback. Default is true.
    • final_update_message - if persistent_comment is true and updating a previous checks message, the tool will also create a new message: "Persistent checks updated to latest commit". Default is true.

    See more information about the checks tool in the docs.

    Copy link

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

    CI Failure Feedback 🧐

    Action: Codacy Security Scan

    Failed stage: Run Codacy Analysis CLI [❌]

    Failed test name: ""

    Failure summary:

    The action failed due to multiple issues encountered during the analysis process:

  • The pmd and pmd-legacy analyses failed because no rules were found, indicating a possible
    misconfiguration or missing rule set.
  • The eslint analysis failed because it could not load the config "plugin:react/jsx-runtime",
    suggesting a configuration issue in the ESLint setup.
  • The phpmd analysis failed due to an IOException caused by an "Argument list too long" error,
    indicating that the command executed had too many arguments.

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  Ubuntu
    ...
    
    682:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for plugins/emojiextender/emoji/twitter/scream.png 
    683:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for docker/images/nginx/certs/vanilla.localhost.crt 
    684:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for plugins/emojiextender/emoji/twitter/sleepy.png 
    685:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for plugins/emojiextender/emoji/rice/smile.png 
    686:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for applications/dashboard/design/images/sectionIcons/2column.svg 
    687:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for resources/fonts/Raleway/1Ptsg8zYS_SKggPNyCg4TYFqL_KWxQ.woff2 
    688:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for library/src/scripts/embeddedContent/storybook/attachments/wide/20x5-big.png 
    689:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for plugins/VanillaInThisDiscussion/icon.png 
    690:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for applications/dashboard/design/images/error.png 
    ...
    
    836:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for resources/design/unresolved.svg 
    837:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for plugins/emojiextender/emoji/twitter/triumph.png 
    838:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for plugins/emojiextender/emoji/yahoo/giggle.gif 
    839:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for tests/fixtures/formats/html/paragraphs/output.txt 
    840:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for resources/fonts/Roboto/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2 
    841:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for plugins/emojiextender/emoji/yahoo/clap.gif 
    842:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for resources/emoji/neutral.png 
    843:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for resources/fonts/Montserrat/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2 
    844:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for library/Vanilla/EmbeddedContent/Embeds/ErrorEmbed.twig 
    ...
    
    1113:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for applications/dashboard/design/images/widgetIcons/cta.svg 
    1114:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for cli/bin/vnla-cli 
    1115:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for plugins/emojiextender/emoji/little/[email protected] 
    1116:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for applications/dashboard/styleguide/public/resources/images/dirty-rodent.jpg 
    1117:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for resources/fonts/Roboto Condensed/ieVl2ZhZI2eCN5jzbjEETS9weq8-19-7DQk6YvNkeg.woff2 
    1118:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for resources/emoji/star.png 
    1119:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for tests/fixtures/formats/wysiwyg/inline-formatting/output.txt 
    1120:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for library/src/scripts/embeddedContent/storybook/attachments/tall/5x20-xs.png 
    1121:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for resources/views/error.twig 
    ...
    
    1409:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for packages/vanilla-icons/icons/data-drag-and-drop.svg 
    1410:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for plugins/swagger-ui/yarn.lock 
    1411:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for plugins/GooglePrettify/google-prettify.png 
    1412:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for tests/fixtures/formats/ipb/carriage-returns/input.txt 
    1413:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for plugins/emojiextender/emoji/twitter/relieved.png 
    1414:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for addons/themes/theme-boilerplate/design/custom.css.map 
    1415:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for themes/2011Compatibility/design/screenshot.png 
    1416:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for .allowed-licenses 
    1417:  09/11 05:36:58 �[34mINFO �[0;39m �[36mc.c.a.c.utils.LanguagesHelper:16�[0;39m - No language found for resources/views/userContentError.twig 
    ...
    
    1678:  09/11 05:36:59 �[34mINFO �[0;39m �[36mc.c.a.c.t.DuplicationToolCollector:81�[0;39m - No duplication tools found for language SASS 
    1679:  09/11 05:36:59 �[34mINFO �[0;39m �[36mc.c.a.c.t.DuplicationToolCollector:81�[0;39m - No duplication tools found for language HTML 
    1680:  09/11 05:36:59 �[34mINFO �[0;39m �[36mc.c.a.c.t.DuplicationToolCollector:81�[0;39m - No duplication tools found for language Dockerfile 
    1681:  09/11 05:36:59 �[34mINFO �[0;39m �[36mc.c.a.c.t.DuplicationToolCollector:81�[0;39m - No duplication tools found for language YAML 
    1682:  09/11 05:36:59 �[39mDEBUG�[0;39m �[36mCodacyPlugins:17�[0;39m - codacy/codacy-metrics-cloc:0.2.4 doesn't exist locally. 
    1683:  09/11 05:36:59 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Verifying if docker image codacy/codacy-metrics-cloc:0.2.4 exists locally. took 46ms 
    1684:  09/11 05:37:02 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Pulling docker image codacy/codacy-metrics-cloc:0.2.4. took 3283ms 
    1685:  09/11 05:37:04 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Running docker image codacy/codacy-metrics-cloc:0.2.4. took 1272ms 
    1686:  09/11 05:37:04 �[1;31mERROR�[0;39m �[36mc.c.a.c.a.CodacyPluginsAnalyser:50�[0;39m - Failed metrics for metrics 
    ...
    
    1752:  at com.codacy.analysis.cli.Main.main(Main.scala)
    1753:  09/11 05:37:04 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:192�[0;39m - Could not find local extra configuration for pmd 
    1754:  09/11 05:37:04 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:181�[0;39m - Preparing to run pmd with defaults 
    1755:  09/11 05:37:04 �[34mINFO �[0;39m �[36mc.c.analysis.core.tools.Tool:101�[0;39m - Using the root directory /home/runner/work/vanilla/vanilla to run 
    1756:  09/11 05:37:04 �[39mDEBUG�[0;39m �[36mCodacyPlugins:17�[0;39m - codacy/codacy-pmd:3.10.2 doesn't exist locally. 
    1757:  09/11 05:37:04 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Verifying if docker image codacy/codacy-pmd:3.10.2 exists locally. took 30ms 
    1758:  09/11 05:37:06 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Pulling docker image codacy/codacy-pmd:3.10.2. took 2007ms 
    1759:  09/11 05:37:07 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Running docker image codacy/codacy-pmd:3.10.2. took 1421ms 
    1760:  09/11 05:37:07 �[1;31mERROR�[0;39m �[36mc.c.a.c.a.CodacyPluginsAnalyser:30�[0;39m - Failed analysis for pmd 
    1761:  java.lang.Throwable: 
    1762:  Docker exited with code 1
    1763:  stdout: 
    1764:  stderr: Sep 11, 2024 5:37:07 AM net.sourceforge.pmd.RulesetsFactoryUtils getRuleSets
    1765:  SEVERE: No rules found. Maybe you misspelled a rule name? (null)
    1766:  Error executing the tool
    ...
    
    1850:  09/11 05:37:19 �[34mINFO �[0;39m �[36mc.c.a.c.a.CodacyPluginsAnalyser:28�[0;39m - Completed analysis for csslint with 3197 results 
    1851:  09/11 05:37:19 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:192�[0;39m - Could not find local extra configuration for pmd-legacy 
    1852:  09/11 05:37:19 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:181�[0;39m - Preparing to run pmd-legacy with defaults 
    1853:  09/11 05:37:19 �[34mINFO �[0;39m �[36mc.c.analysis.core.tools.Tool:101�[0;39m - Using the root directory /home/runner/work/vanilla/vanilla to run 
    1854:  09/11 05:37:19 �[39mDEBUG�[0;39m �[36mCodacyPlugins:17�[0;39m - codacy/codacy-pmdjava:2.0.0-pmdlegacy.57fdbf2 doesn't exist locally. 
    1855:  09/11 05:37:19 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Verifying if docker image codacy/codacy-pmdjava:2.0.0-pmdlegacy.57fdbf2 exists locally. took 32ms 
    1856:  09/11 05:37:22 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Pulling docker image codacy/codacy-pmdjava:2.0.0-pmdlegacy.57fdbf2. took 3215ms 
    1857:  09/11 05:37:24 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Running docker image codacy/codacy-pmdjava:2.0.0-pmdlegacy.57fdbf2. took 1284ms 
    1858:  09/11 05:37:24 �[1;31mERROR�[0;39m �[36mc.c.a.c.a.CodacyPluginsAnalyser:30�[0;39m - Failed analysis for pmd-legacy 
    1859:  java.lang.Throwable: 
    1860:  Docker exited with code 1
    1861:  stdout: 
    1862:  stderr: Sep 11, 2024 5:37:23 AM net.sourceforge.pmd.RulesetsFactoryUtils getRuleSets
    1863:  SEVERE: No rules found. Maybe you mispelled a rule name? (null)
    1864:  Error executing the tool
    ...
    
    1947:  09/11 05:37:36 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Verifying if docker image codacy/codacy-metrics-cloc:0.2.4 exists locally. took 34ms 
    1948:  09/11 05:37:37 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Running docker image codacy/codacy-metrics-cloc:0.2.4. took 1447ms 
    1949:  09/11 05:37:37 �[34mINFO �[0;39m �[36mc.c.a.c.a.CodacyPluginsAnalyser:48�[0;39m - Completed metrics for metrics with 305 results 
    1950:  09/11 05:37:37 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:192�[0;39m - Could not find local extra configuration for pmd 
    1951:  09/11 05:37:37 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:181�[0;39m - Preparing to run pmd with defaults 
    1952:  09/11 05:37:37 �[34mINFO �[0;39m �[36mc.c.analysis.core.tools.Tool:101�[0;39m - Using the root directory /home/runner/work/vanilla/vanilla to run 
    1953:  09/11 05:37:37 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Verifying if docker image codacy/codacy-pmd:3.10.2 exists locally. took 30ms 
    1954:  09/11 05:37:39 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Running docker image codacy/codacy-pmd:3.10.2. took 1413ms 
    1955:  09/11 05:37:39 �[1;31mERROR�[0;39m �[36mc.c.a.c.a.CodacyPluginsAnalyser:30�[0;39m - Failed analysis for pmd 
    1956:  java.lang.Throwable: 
    1957:  Docker exited with code 1
    1958:  stdout: 
    1959:  stderr: Sep 11, 2024 5:37:39 AM net.sourceforge.pmd.RulesetsFactoryUtils getRuleSets
    1960:  SEVERE: No rules found. Maybe you misspelled a rule name? (null)
    1961:  Error executing the tool
    ...
    
    2027:  09/11 05:37:50 �[34mINFO �[0;39m �[36mc.c.a.c.a.CodacyPluginsAnalyser:66�[0;39m - Completed duplication for duplication with 43 results 
    2028:  09/11 05:37:50 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:192�[0;39m - Could not find local extra configuration for eslint 
    2029:  09/11 05:37:50 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:181�[0;39m - Preparing to run eslint with defaults 
    2030:  09/11 05:37:50 �[34mINFO �[0;39m �[36mc.c.analysis.core.tools.Tool:101�[0;39m - Using the root directory /home/runner/work/vanilla/vanilla to run 
    2031:  09/11 05:37:50 �[39mDEBUG�[0;39m �[36mCodacyPlugins:17�[0;39m - codacy/codacy-eslint:5.9.1 doesn't exist locally. 
    2032:  09/11 05:37:50 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Verifying if docker image codacy/codacy-eslint:5.9.1 exists locally. took 39ms 
    2033:  09/11 05:38:12 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Pulling docker image codacy/codacy-eslint:5.9.1. took 22007ms 
    2034:  09/11 05:38:14 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Running docker image codacy/codacy-eslint:5.9.1. took 2189ms 
    2035:  09/11 05:38:14 �[1;31mERROR�[0;39m �[36mc.c.a.c.a.CodacyPluginsAnalyser:30�[0;39m - Failed analysis for eslint 
    2036:  java.lang.Throwable: 
    2037:  Docker exited with code 1
    2038:  stdout: 
    2039:  stderr: Error: Failed to load config "plugin:react/jsx-runtime" to extend from.
    2040:  Referenced from: /src/.eslintrc
    2041:  at configInvalidError (/node_modules/eslint/lib/cli-engine/config-array-factory.js:295:9)
    ...
    
    2109:  09/11 05:38:14 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Verifying if docker image codacy/codacy-metrics-cloc:0.2.4 exists locally. took 30ms 
    2110:  09/11 05:38:15 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Running docker image codacy/codacy-metrics-cloc:0.2.4. took 1308ms 
    2111:  09/11 05:38:15 �[34mINFO �[0;39m �[36mc.c.a.c.a.CodacyPluginsAnalyser:48�[0;39m - Completed metrics for metrics with 222 results 
    2112:  09/11 05:38:15 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:192�[0;39m - Could not find local extra configuration for eslint 
    2113:  09/11 05:38:15 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:181�[0;39m - Preparing to run eslint with defaults 
    2114:  09/11 05:38:15 �[34mINFO �[0;39m �[36mc.c.analysis.core.tools.Tool:101�[0;39m - Using the root directory /home/runner/work/vanilla/vanilla to run 
    2115:  09/11 05:38:15 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Verifying if docker image codacy/codacy-eslint:5.9.1 exists locally. took 41ms 
    2116:  09/11 05:38:18 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Running docker image codacy/codacy-eslint:5.9.1. took 2151ms 
    2117:  09/11 05:38:18 �[1;31mERROR�[0;39m �[36mc.c.a.c.a.CodacyPluginsAnalyser:30�[0;39m - Failed analysis for eslint 
    2118:  java.lang.Throwable: 
    2119:  Docker exited with code 1
    2120:  stdout: 
    2121:  stderr: Error: Failed to load config "plugin:react/jsx-runtime" to extend from.
    2122:  Referenced from: /src/.eslintrc
    2123:  at configInvalidError (/node_modules/eslint/lib/cli-engine/config-array-factory.js:295:9)
    ...
    
    2224:  09/11 05:38:52 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Pulling docker image codacy/codacy-stylelint:2.9.10. took 11629ms 
    2225:  09/11 05:39:22 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Running docker image codacy/codacy-stylelint:2.9.10. took 29684ms 
    2226:  09/11 05:39:24 �[34mINFO �[0;39m �[36mc.c.a.c.a.CodacyPluginsAnalyser:28�[0;39m - Completed analysis for stylelint with 241509 results 
    2227:  09/11 05:39:24 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:192�[0;39m - Could not find local extra configuration for eslint 
    2228:  09/11 05:39:24 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:181�[0;39m - Preparing to run eslint with defaults 
    2229:  09/11 05:39:24 �[34mINFO �[0;39m �[36mc.c.analysis.core.tools.Tool:101�[0;39m - Using the root directory /home/runner/work/vanilla/vanilla to run 
    2230:  09/11 05:39:24 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Verifying if docker image codacy/codacy-eslint:5.9.1 exists locally. took 32ms 
    2231:  09/11 05:39:27 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Running docker image codacy/codacy-eslint:5.9.1. took 2150ms 
    2232:  09/11 05:39:27 �[1;31mERROR�[0;39m �[36mc.c.a.c.a.CodacyPluginsAnalyser:30�[0;39m - Failed analysis for eslint 
    2233:  java.lang.Throwable: 
    2234:  Docker exited with code 1
    2235:  stdout: 
    2236:  stderr: Error: Failed to load config "plugin:react/jsx-runtime" to extend from.
    2237:  Referenced from: /src/.eslintrc
    2238:  at configInvalidError (/node_modules/eslint/lib/cli-engine/config-array-factory.js:295:9)
    ...
    
    2302:  at scala.Option.foreach(Option.scala:407)
    2303:  at com.codacy.analysis.cli.command.CommandAppWithBaseCommand.main(CommandAppWithBaseCommand.scala:88)
    2304:  at com.codacy.analysis.cli.Main.main(Main.scala)
    2305:  09/11 05:39:27 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:192�[0;39m - Could not find local extra configuration for pmd-legacy 
    2306:  09/11 05:39:27 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:181�[0;39m - Preparing to run pmd-legacy with defaults 
    2307:  09/11 05:39:27 �[34mINFO �[0;39m �[36mc.c.analysis.core.tools.Tool:101�[0;39m - Using the root directory /home/runner/work/vanilla/vanilla to run 
    2308:  09/11 05:39:27 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Verifying if docker image codacy/codacy-pmdjava:2.0.0-pmdlegacy.57fdbf2 exists locally. took 32ms 
    2309:  09/11 05:39:28 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Running docker image codacy/codacy-pmdjava:2.0.0-pmdlegacy.57fdbf2. took 1254ms 
    2310:  09/11 05:39:28 �[1;31mERROR�[0;39m �[36mc.c.a.c.a.CodacyPluginsAnalyser:30�[0;39m - Failed analysis for pmd-legacy 
    2311:  java.lang.Throwable: 
    2312:  Docker exited with code 1
    2313:  stdout: 
    2314:  stderr: Sep 11, 2024 5:39:28 AM net.sourceforge.pmd.RulesetsFactoryUtils getRuleSets
    2315:  SEVERE: No rules found. Maybe you mispelled a rule name? (null)
    2316:  Error executing the tool
    ...
    
    2378:  at com.codacy.analysis.cli.Main.main(Main.scala)
    2379:  09/11 05:39:28 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:192�[0;39m - Could not find local extra configuration for phpmd 
    2380:  09/11 05:39:28 �[34mINFO �[0;39m �[36mc.c.a.c.a.AnalyseExecutor:181�[0;39m - Preparing to run phpmd with defaults 
    2381:  09/11 05:39:28 �[34mINFO �[0;39m �[36mc.c.analysis.core.tools.Tool:101�[0;39m - Using the root directory /home/runner/work/vanilla/vanilla to run 
    2382:  09/11 05:39:28 �[39mDEBUG�[0;39m �[36mCodacyPlugins:17�[0;39m - codacy/codacy-phpmd:2.5.3 doesn't exist locally. 
    2383:  09/11 05:39:28 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Verifying if docker image codacy/codacy-phpmd:2.5.3 exists locally. took 41ms 
    2384:  09/11 05:39:31 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Pulling docker image codacy/codacy-phpmd:2.5.3. took 2303ms 
    2385:  09/11 05:39:32 �[34mINFO �[0;39m �[36mCodacyPlugins:26�[0;39m - Running docker image codacy/codacy-phpmd:2.5.3. took 1126ms 
    2386:  09/11 05:39:32 �[1;31mERROR�[0;39m �[36mc.c.a.c.a.CodacyPluginsAnalyser:30�[0;39m - Failed analysis for phpmd 
    2387:  java.lang.Throwable: 
    2388:  Docker exited with code 1
    2389:  stdout: 
    2390:  stderr: Error executing the tool
    2391:  java.io.IOException: Cannot run program "/vendor/bin/phpmd": error=7, Argument list too long
    ...
    
    2399:  at codacy.phpmd.PhpMd$.apply(PhpMd.scala:52)
    2400:  at com.codacy.tools.scala.seed.DockerEngine.executeTool(DockerEngine.scala:53)
    2401:  at com.codacy.tools.scala.seed.DockerEngine.$anonfun$main$2(DockerEngine.scala:35)
    2402:  at scala.util.Success.map(Try.scala:262)
    2403:  at com.codacy.tools.scala.seed.DockerEngine.$anonfun$main$1(DockerEngine.scala:27)
    2404:  at scala.util.Success.flatMap(Try.scala:258)
    2405:  at com.codacy.tools.scala.seed.DockerEngine.main(DockerEngine.scala:26)
    2406:  at codacy.Engine.main(Engine.scala)
    2407:  Caused by: java.io.IOException: error=7, Argument list too long
    ...
    
    2545:  at com.codacy.analysis.cli.MainImpl.run(Main.scala:14)
    2546:  at com.codacy.analysis.cli.command.CLIApp.run(CLIApp.scala:22)
    2547:  at com.codacy.analysis.cli.command.CLIApp.run(CLIApp.scala:18)
    2548:  at com.codacy.analysis.cli.command.CommandAppWithBaseCommand.$anonfun$main$1(CommandAppWithBaseCommand.scala:103)
    2549:  at com.codacy.analysis.cli.command.CommandAppWithBaseCommand.$anonfun$main$1$adapted(CommandAppWithBaseCommand.scala:88)
    2550:  at scala.Option.foreach(Option.scala:407)
    2551:  at com.codacy.analysis.cli.command.CommandAppWithBaseCommand.main(CommandAppWithBaseCommand.scala:88)
    2552:  at com.codacy.analysis.cli.Main.main(Main.scala)
    2553:  ##[error]Process completed with exit code 1.
    

    ✨ CI feedback usage guide:

    The CI feedback tool (/checks) automatically triggers when a PR has a failed check.
    The tool analyzes the failed checks and provides several feedbacks:

    • Failed stage
    • Failed test name
    • Failure summary
    • Relevant error logs

    In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:

    /checks "https://github.com/{repo_name}/actions/runs/{run_number}/job/{job_number}"
    

    where {repo_name} is the name of the repository, {run_number} is the run number of the failed check, and {job_number} is the job number of the failed check.

    Configuration options

    • enable_auto_checks_feedback - if set to true, the tool will automatically provide feedback when a check is failed. Default is true.
    • excluded_checks_list - a list of checks to exclude from the feedback, for example: ["check1", "check2"]. Default is an empty list.
    • enable_help_text - if set to true, the tool will provide a help message with the feedback. Default is true.
    • persistent_comment - if set to true, the tool will overwrite a previous checks comment with the new feedback. Default is true.
    • final_update_message - if persistent_comment is true and updating a previous checks message, the tool will also create a new message: "Persistent checks updated to latest commit". Default is true.

    See more information about the checks tool in the docs.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    2 participants