Commit Graph

3 Commits

Author SHA1 Message Date
e9ef6c7da7 [chore](workflow) Fix security issues in Code Checks (#24761)
The workflow `Code Checks` needs write permissions granted by the event `pull_request_target` to comment on pull requests. However, if the workflow ran users' code, the malicious code would do some dangerous actions on our repository.

The following changes are made in this PR:
1. Instead of applying patches, we use `sed` to modify the `entrypoint.sh` in action-sh-checker explicitly in the workflow.
2. Revoke the write permissions when generating `compile_commands.json` which is produced by executing the build script `build.sh`.
2023-09-22 10:39:39 +08:00
Pxl
bc0f5dfd8f [Chore](checks) move sonar config file to be(#24712)
move sonar config file to be
2023-09-21 15:16:26 +08:00
df66922bc0 [Chore](sonar)sonar (C++) configuration file name error (#24662)
FYI https://community.sonarsource.com/t/project-root-configuration-file-none/99389
2023-09-20 13:58:30 +08:00