-
Notifications
You must be signed in to change notification settings - Fork 25
chore: add pre-commit config, add gh action #111
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
base: main
Are you sure you want to change the base?
chore: add pre-commit config, add gh action #111
Conversation
WalkthroughThe changes add a new GitHub Actions workflow to automate SCANOSS code scans on pull requests, pushes, or manual triggers. Updates include a modification in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant GitHub
participant Checkout
participant SCANOSS
User->>GitHub: Trigger event (PR, push, manual dispatch)
GitHub->>Checkout: Checkout repository code
Checkout-->>GitHub: Provide source code
GitHub->>SCANOSS: Execute SCANOSS code scan with inputs (policy, API URL, API key)
SCANOSS-->>GitHub: Return scan results
GitHub->>User: Update pull request/checks with results
sequenceDiagram
participant Developer
participant Git
participant PreCommit
participant scanossHook
Developer->>Git: Initiate commit
Git->>PreCommit: Run pre-commit hooks
PreCommit->>scanossHook: Execute scanoss-check-undeclared-code hook
scanossHook-->>PreCommit: Return check result (pass/fail)
PreCommit-->>Git: Report pre-commit status
Git->>Developer: Commit completed (if checks pass)
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
🔇 Additional comments (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
SCANOSS SCAN Completed 🚀
View more details on SCANOSS Action Summary |
Summary by CodeRabbit
New Features
Documentation
Chores