SonarCloud GitHub action not working with emoji

Ubuntu 20.04

I’ve been trying to use GitHub - SonarSource/sonarcloud-github-action: Integrate SonarCloud code analysis to GitHub Action but I’m facing two different issues.

INFO: Project configuration:
INFO:   Included sources: src
INFO:   Excluded sources: **/tests/**/*
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 33.392s
ERROR: Error during SonarScanner execution
INFO: Final Memory: 7M/27M
java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: tests/Router/Routing/_resources/routes/articles/????
	at java.base/sun.nio.fs.UnixPath.encode(Unknown Source)
	at java.base/sun.nio.fs.UnixPath.<init>(Unknown Source)
	at java.base/sun.nio.fs.UnixFileSystem.getPath(Unknown Source)
	at java.base/java.nio.file.Path.resolve(Unknown Source)
	at org.sonar.scm.git.IncludedFilesRepository.indexFiles(IncludedFilesRepository.java:51)
	at org.sonar.scm.git.IncludedFilesRepository.<init>(IncludedFilesRepository.java:26)
	at org.sonar.scm.git.GitIgnoreCommand.init(GitIgnoreCommand.java:23)
	at org.sonar.scanner.scan.filesystem.ProjectFileIndexer.index(ProjectFileIndexer.java:98)
	at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:391)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:128)
	at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:123)
	at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:109)
	at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:58)
	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:52)
	at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
	at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
	at com.sun.proxy.$Proxy0.execute(Unknown Source)
	at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
	at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
	at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
	at org.sonarsource.scanner.cli.Main.main(Main.java:61)
  1. The scanner doesn’t accept emoji in paths (UTFMB4) and using paths/filenames with emoji gives me this error:
java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: tests/Router/Routing/_resources/routes/articles/????

The alleged path is tests/Router/Routing/_resources/routes/articles/🐘/GET.php and when running from local this doesn’t happens (it only happens at github workflows).

  1. Exclusion rule for **/tests/**/* isn’t working? As the above was failing I tried to exclude the alleged path but it scans it anyway.