Skip to content

Conversation

@silabs-CongD
Copy link
Contributor

@silabs-CongD silabs-CongD commented Jun 5, 2025

Description

Related Issue

Closes #<issue_number>

Changes Made

Checklist

Screenshots (if applicable)

Additional Notes

@silabs-CongD silabs-CongD requested review from a team June 5, 2025 06:03
@silabs-CongD
Copy link
Contributor Author

Hi reviewers

As, SiliconLabsSoftware/devs-coding-convention-tool has changed new version. So I update submodule for this repo.
Beside of it, I update some documents and workflows.

Please help me to review it.
Thanks.

@silabs-CongD silabs-CongD force-pushed the feature/update_workflows branch from 2dd739d to 78afc00 Compare June 5, 2025 06:31
@silabs-CongD silabs-CongD changed the title SOSC - Update latest coding convention submodule and some doccuments SOSC - Update latest coding convention submodule and some documents Jun 5, 2025
@AndrasZiegler
Copy link
Collaborator

Hey @silabs-CongD
Code convention check failed. Please take a look. Now with the updated code convention implementation the action creates a patch based on the findings. you can apply it locally on your repo:
https://git-scm.com/docs/git-apply
git apply name-of-the-patch.patch

Copy link
Collaborator

@AndrasZiegler AndrasZiegler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix code convention tool findings.

@AndrasZiegler AndrasZiegler requested a review from Copilot June 5, 2025 07:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates several GitHub Actions workflows to align with the latest coding conventions and documentation standards.

  • Updated the security scan workflow to trigger on pull_request events with a runner change.
  • Revised the CLA Assistant workflow to use a new GitHub App token and updated document links.
  • Modified the code convention check workflow by adjusting branch inputs, updating file paths, and adding a patch upload step.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/04-TruffleHog-Security-Scan.yml Changed event triggers and updated the runner version.
.github/workflows/01-CLA-Assistant.yml Updated issue comment triggers, token usage, and document link.
.github/workflows/00-Check-Code-Convention.yml Modified branch input, file paths, installation commands, and added patch upload.
.github/coding-convention-tool Updated submodule commit reference.
Comments suppressed due to low confidence (1)

.github/workflows/00-Check-Code-Convention.yml:58

  • The removal of cppcheck installation might reduce static analysis coverage; please verify that cppcheck is no longer required for your code convention validation.
sudo apt-get install clang-tidy

jobs:
trufflehog_scan:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
Copy link

Copilot AI Jun 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switching from a fixed runner version to 'ubuntu-latest' may introduce unexpected environment changes; consider pinning to a specific version if consistent behavior is required.

Suggested change
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

Copilot uses AI. Check for mistakes.
sudo make install
echo "Uncrustify has been installed successfully!"
cd ../../
sudo cp ./.github/coding-convention-tool/tools/uncrustify/uncrustify.cfg ./uncrustify/uncrustify.cfg
Copy link

Copilot AI Jun 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the new file path for uncrustify.cfg reflects the updated submodule structure; an incorrect path may result in file not found errors during execution.

Suggested change
sudo cp ./.github/coding-convention-tool/tools/uncrustify/uncrustify.cfg ./uncrustify/uncrustify.cfg
sudo cp ./.github/coding-convention-tool/submodules/uncrustify/uncrustify.cfg ./uncrustify/uncrustify.cfg

Copilot uses AI. Check for mistakes.
@silabs-CongD

This comment was marked as off-topic.

@silabs-CongD silabs-CongD force-pushed the feature/update_workflows branch from c04be88 to 964c047 Compare June 13, 2025 08:30
@silabs-CongD
Copy link
Contributor Author

Hi @AndrasZiegler, please help me re-review this PR again. If it fine, please help me to approve it. PR need 1 approved by reviewer with write access to allow merged. Thanks.

Copy link
Contributor

@silabs-ThanhNgo silabs-ThanhNgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Cong,

Please check my comments and update if necessary

Thanks

name: 02-Build-Firmware
## By default this workflow runs on Github hosted runners. This is not free for internal and private repositories
## It is recommended to run this job on a self-hosted runner for non public repository
## Uncomment the needed runs-on command.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you check if this workflow works?

@@ -1,69 +0,0 @@
<table border="0">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you delete the Readme files?
Same for the other Readme files

@silabs-CongD silabs-CongD deleted the feature/update_workflows branch August 12, 2025 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants