You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "bujjibabukatta (via GitHub)" <gi...@apache.org> on 2026/06/15 07:42:57 UTC

[PR] feat(plugin): add CheckmarxOne data source plugin (#8869) [devlake]

bujjibabukatta opened a new pull request, #8927:
URL: https://github.com/apache/devlake/pull/8927

   ## Summary
   
   This PR implements a complete CheckmarxOne data source plugin for Apache DevLake (resolves #8869).
   
   The plugin enables security teams to integrate CheckmarxOne SAST scanning results into DevLake pipelines, allowing them to:
   - Track and follow security issues discovered by CheckmarxOne
   - Provide KPIs around findings, triage, and remediation
   - Monitor vulnerability severity and remediation progress
   - Support DevSecOps practices with security-focused metrics
   
   ## Motivation
   
   With the rising importance of DevSecOps, organizations need to track security vulnerabilities alongside development metrics. This plugin provides seamless integration with CheckmarxOne, a leading code security scanning platform, enabling teams to establish meaningful performance indicators around security vulnerability remediation.
   
   ## Changes
   
   ### Plugin Structure
   - **Entry Point**: `checkmarxone.go` - Main plugin entry point with CLI support
   - **Implementation**: `impl/impl.go` - Core plugin logic implementing all required interfaces
   - **Models**: Connection, Project, and Finding data models
   - **API Client**: OAuth-based authentication and API communication
   - **Tasks**: Collector and extractor for findings data
   - **API Endpoints**: REST endpoints for connection management
   - **Migrations**: Database schema setup
   
   ### Data Models
   
   #### CheckmarxoneConnection
   - Server URL, Client ID/Secret for OAuth
   - Secure credential storage (passwords hidden in JSON)
   
   #### CheckmarxoneProject
   - Project ID and metadata
   - Connection association
   
   #### CheckmarxoneFinding
   - Vulnerability data: ID, name, severity, status
   - First/Last found timestamps
   - Finding type and count
   
   ### Features
   
   ✅ OAuth authentication with automatic token refresh
   ✅ Multi-project support with separate data collection
   ✅ Vulnerability severity tracking (Critical, High, Medium, Low)
   ✅ Remediation status monitoring
   ✅ REST API for connection CRUD operations
   ✅ Automatic database migrations
   ✅ Comprehensive error handling and logging
   ✅ Resource cleanup and connection management
   
   ## Data Flow
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(plugin): add CheckmarxOne data source plugin (#8869) [devlake]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #8927:
URL: https://github.com/apache/devlake/pull/8927#issuecomment-6377590348

   This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(plugin): add CheckmarxOne data source plugin (#8869) [devlake]

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on code in PR #8927:
URL: https://github.com/apache/devlake/pull/8927#discussion_r3421200670


##########
backend/plugins/checkmarxone/models/migrationscripts/register.go:
##########
@@ -0,0 +1,56 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package migrationscripts
+
+import (
+	"github.com/apache/incubator-devlake/core/context"
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/apache/incubator-devlake/core/models/migrationscripts"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/plugins/checkmarxone/models"

Review Comment:
   1. `register.go` should be for script-registration. do NOT put the script directly in the file.
   2. do NOT refer active models (ones you import in your code) in migration scripts because they would change over time and break the script.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org