oxsecurity / megalinter

🦙 MegaLinter analyzes 50 languages, 22 formats, 21 tooling formats, excessive copy-pastes, spelling mistakes and security issues in your repository sources with a GitHub Action, other CI tools or locally.
https://megalinter.io
GNU Affero General Public License v3.0
1.89k stars 224 forks source link

lightning-flow-scanner fails for salesforce flavor due to sf cli reporting update availablee #3761

Closed kmelessanakis closed 3 weeks ago

kmelessanakis commented 1 month ago

lightning-flow-scanner fails due to the sf CLI outputting a new version being available and therefore the following regex failing

Unable to extract version with regex re.compile('(?<=lightning-flow-scanner )\\d+(\\.\\d+)+') from  ›   Warning: @salesforce/cli update available from 2.48.6 to 2.49.7.

To reproduce just use the SF flavor of megalinter on a salesforce repo

nvuillam commented 1 month ago

@kmelessanakis I get the issue

Until we fix it, please can you add the following lines in your .mega-linter.yml ? it should be a working workaround

SALESFORCE_LIGHTNING_FLOW_SCANNER_PRE_COMMANDS:
  - command: echo y|sf plugins install lightning-flow-scanner@latest
    cwd: "workspace"
github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 🤖 label or comment on the issue.

nvuillam commented 3 weeks ago

@kmelessanakis solved in beta and soon released in v8 :)