Configure Mend Bolt for GitHub#12
Conversation
WalkthroughThis PR introduces automated security scanning and dependency vulnerability management by adding a WhiteSource (Mend) configuration file. The setup enables continuous monitoring of project dependencies for security vulnerabilities, with check runs configured to fail when vulnerable dependencies are detected. The configuration uses diff display mode for clear visibility of changes and sets up issue reporting for dependencies with a minimum severity threshold of LOW, ensuring comprehensive security coverage. Mend branding is enabled in check names for clear identification of security scan results. Changes
Sequence DiagramThis diagram shows the interactions between components: sequenceDiagram
participant App as Application
participant ConfigLoader as Config Loader
participant Scanner as Code Scanner
participant CheckRun as Check Run Service
participant IssueFilter as Issue Filter
App->>ConfigLoader: Load configuration
activate ConfigLoader
ConfigLoader->>ConfigLoader: Parse JSON config
Note over ConfigLoader: scanSettings: baseBranches[]<br/>checkRunSettings: failure mode<br/>issueSettings: LOW severity
ConfigLoader-->>App: Return config object
deactivate ConfigLoader
App->>Scanner: Initialize with scanSettings
activate Scanner
Scanner->>Scanner: Configure base branches
Scanner-->>App: Scanner ready
deactivate Scanner
App->>CheckRun: Initialize with checkRunSettings
activate CheckRun
CheckRun->>CheckRun: Set conclusion level to failure
CheckRun->>CheckRun: Set display mode to diff
CheckRun->>CheckRun: Enable Mend check names
CheckRun-->>App: CheckRun ready
deactivate CheckRun
App->>IssueFilter: Initialize with issueSettings
activate IssueFilter
IssueFilter->>IssueFilter: Set min severity to LOW
IssueFilter->>IssueFilter: Set type to DEPENDENCY
IssueFilter-->>App: IssueFilter ready
deactivate IssueFilter
Note over App,IssueFilter: System configured and ready to scan
Note for WindsurfPlease change the default marketplace provider to the following in the windsurf settings:Marketplace Extension Gallery Service URL: https://marketplace.visualstudio.com/_apis/public/gallery Marketplace Gallery Item URL: https://marketplace.visualstudio.com/items Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts belowEmoji Descriptions:
Interact with the Bot:
Also you can trigger various commands with the bot by doing The current supported commands are
More commands to be added soon. |
Welcome to Mend Bolt for GitHub (formerly WhiteSource). This is an onboarding PR to help you understand and configure settings before Mend starts scanning your repository for security vulnerabilities.
🚦 Mend Bolt for GitHub will start scanning your repository only once you merge this Pull Request. To disable Mend Bolt for GitHub, simply close this Pull Request.
What to Expect
This PR contains a '.whitesource' configuration file which can be customized to your needs. If no changes were applied to this file, Mend Bolt for GitHub will use the default configuration.
Before merging this PR, Make sure the Issues tab is enabled. Once you merge this PR, Mend Bolt for GitHub will scan your repository and create a GitHub Issue for every vulnerability detected in your repository.
If you do not want a GitHub Issue to be created for each detected vulnerability, you can edit the '.whitesource' file and set the 'minSeverityLevel' parameter to 'NONE'.
❓ Got questions? Check out Mend Bolt for GitHub docs.
If you need any further assistance then you can also request help here.
EntelligenceAI PR Summary
This PR adds WhiteSource (Mend) security scanning configuration to automate dependency vulnerability detection.
.whitesourceconfiguration file with security scanning settings