Integration with CircleCI Using the Sec1 Orb
Enhance the security of your applications with the seamless integration of Sec1 and CircleCI using the Sec1 Orb. This integration allows for thorough scanning of your application dependencies, identifying and addressing open source security vulnerabilities as an integral part of your continuous integration/continuous delivery (CI/CD) workflow.
CircleCI simplifies CI/CD workflows through the use of ready-to-use commands, known as Orbs, which can be effortlessly added to your configuration file.
By leveraging the Sec1 Orb, you can effortlessly incorporate Sec1 Security into your CI/CD process, scanning for open source vulnerabilities based on your specified configurations.
Prerequisites for CircleCI Integration
Ensure a smooth implementation of CircleCI integration with Sec1 by following these prerequisites:
Sec1 Account: Create a Sec1 account and retrieve the Sec1 API token from your Account settings.
Repo Import: Import the relevant repository into CircleCI.
Security Settings: In CircleCI, navigate to
Organization Settings -> Security -> Orb security settings
and enableopt-in to third party (partner and community) Orbs
.Environment Variables: Add the environment variables to CircleCI, navigate to
Project Settings -> Environment Variables -> Add Environmnent Variable
. Set the key as 'SEC1_API_KEY' and value as your sec1 api token.
Implementing the Sec1 Orb
Follow the comprehensive information provided in the Sec1 Circle CI README to seamlessly set up your CI/CD with Sec1. The README includes a detailed list of parameters and sample configurations to ensure a successful integration.
Example
Sec1 Security Scan
Update below code in your .circleci/config.yml file.
Be sure to use the latest version of the Sec1 ORB
Customizing Scan Thresholds
Sec1 scan supports setting up threshold values. If the scan reports vulnerabilities exceeding the specified thresholds, Sec1 Security will mark the build as failed. You can set threshold values for different severities such as critical, high, medium, and low.
Update below code in your .circleci/config.yml file.
Be sure to use the latest version of the Sec1 ORB
Understanding CircleCI Integration
Upon integrating your project with CircleCI and seamlessly integrating the Sec1 Orb into your configuration file, each build execution initiates the Sec1 Orb to execute essential tasks:
Dependency Scan: Rigorously examines your application dependencies, meticulously identifying potential vulnerabilities and presenting a comprehensive list of issues for your attention.
Build Outcome: Aligned with your precision-configured thresholds, Sec1 diligently evaluates the scan results. In the event of detected vulnerabilities surpassing the defined threshold, the build process is aptly flagged as unsuccessful. This approach ensures a stringent adherence to your predetermined security standards, contributing to the creation of a resilient and secure codebase with each build iteration..
Your CircleCI/CD environment is now configured to harness the capabilities of Sec1, facilitating continuous security assessments within your projects. This integration establishes a robust mechanism for ongoing security checks throughout your CI/CD pipeline, ensuring a proactive approach to identifying and addressing potential vulnerabilities in your software development lifecycle.
Last updated