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

CodeQL failing on various templates #10153

Open
teolemon opened this issue Apr 19, 2024 · 0 comments
Open

CodeQL failing on various templates #10153

teolemon opened this issue Apr 19, 2024 · 0 comments
Labels
👩‍💻 DevOps Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes.

Comments

@teolemon
Copy link
Member

What

CodeQL scanned 30 out of 30 JavaScript files and 1 out of 1 TypeScript files in this invocation. Check the status page for overall coverage information: https://github.com/openfoodfacts/openfoodfacts-server/security/code-scanning/tools/CodeQL/status/
Analysis produced the following diagnostic information:
Could not process some files due to syntax errors (6 results)
    * templates/web/pages/import_file_upload/import_file_upload.tt.js#L1C2:2: A parse error occurred: `Expecting Unicode escape sequence \uXXXX`. Check the syntax of the file. If the file is invalid, correct the error or [exclude](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/customizing-code-scanning) the file from analysis.
    * templates/web/pages/import_file_select_format/import_file_select_format.tt.js#L3C31:31: A parse error occurred: `Unexpected token`. Check the syntax of the file. If the file is invalid, correct the error or [exclude](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/customizing-code-scanning) the file from analysis.
    * templates/web/pages/import_file_process/import_file_process.tt.js#L14C4:4: A parse error occurred: `Expecting Unicode escape sequence \uXXXX`. Check the syntax of the file. If the file is invalid, correct the error or [exclude](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/customizing-code-scanning) the file from analysis.
    * templates/web/pages/import_product_categories_process/import_product_categories_from_public_database_process.tt.js#L6C4:4: A parse error occurred: `Expecting Unicode escape sequence \uXXXX`. Check the syntax of the file. If the file is invalid, correct the error or [exclude](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/customizing-code-scanning) the file from analysis.
    * templates/web/pages/import_photos_upload/import_photos_upload.tt.js#L3C20:20: A parse error occurred: `Expecting Unicode escape sequence \uXXXX`. Check the syntax of the file. If the file is invalid, correct the error or [exclude](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/customizing-code-scanning) the file from analysis.
    * templates/web/pages/user_form/user_form.tt.js#L2C2:2: A parse error occurred: `Expecting Unicode escape sequence \uXXXX`. Check the syntax of the file. If the file is invalid, correct the error or [exclude](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/customizing-code-scanning) the file from analysis.
@teolemon teolemon added the Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. label Apr 19, 2024
@github-project-automation github-project-automation bot moved this to To discuss and validate in 🍊 Open Food Facts Server issues Apr 19, 2024
@teolemon teolemon added 👩‍💻 DevOps 🐛 bug This is a bug, not a feature request. labels Apr 22, 2024
@teolemon teolemon removed the 🐛 bug This is a bug, not a feature request. label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👩‍💻 DevOps Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes.
Projects
Status: To discuss and validate
Development

No branches or pull requests

1 participant