Prerequisites
Before setting up the pipeline, you must authenticate your GitHub repository with Codepure.- Navigate to API Tokens in your Codepure Dashboard.
- Click Generate New Token and copy the secret key.
- In your GitHub repository, go to Settings > Secrets and variables > Actions.
- Click New repository secret.
- Name the secret exactly
CODEPURE_TOKENand paste your key.
Automated Setup (Recommended)
If you have granted Codepure full access to your repository, we can inject the workflow automatically directly from the UI.- Navigate to Source Control in Codepure and click Configure Pipeline next to your GitHub repository.
- In the Policy Manager, configure your Enforcement and Audit branches.
- Set your threshold rules for SAST, SCA, Secrets, and Container scanning.
- Under Integration Setup, select your target branch.
- Click Enable DevSecOps & Enforce Gates.
.github/workflows/codepure.yml file to your repository.
Manual Setup
If you prefer to configure your pipelines manually, or if you are committing to a strictly protected branch, you can add the Codepure workflow yourself.- Create a new file in your repository at
.github/workflows/codepure.yml. - Paste the following configuration:
- Commit the file. GitHub Actions will automatically trigger a scan on your next push!

