A ready-to-use CI/CD Pipeline for detecting secrets in your code using Gitleaks.
Run the following command:
fluentci run gitleaks_pipeline
Or, if you want to use it as a template:
fluentci init -t gitleaks
This will create a .fluentci
folder in your project.
Now you can run the pipeline with:
fluentci run .
Use as a Dagger module:
dagger install github.com/fluent-ci-templates/gitleaks-pipeline@main
Call a function from the module:
dagger call detect --src .
Job | Description |
---|---|
detect | Detect secrets in your code |
detect( src: string | Directory | undefined = "." ): Promise<File | string>
You can also use this pipeline programmatically:
import { detect } from "jsr:@fluentci/gitleaks"; await detect();
Add Package
deno add jsr:@fluentci/gitleaks
Import symbol
import * as gitleaks from "@fluentci/gitleaks";
---- OR ----
Import directly with a jsr specifier
import * as gitleaks from "jsr:@fluentci/gitleaks";
Add Package
npx jsr add @fluentci/gitleaks
Import symbol
import * as gitleaks from "@fluentci/gitleaks";
Add Package
yarn dlx jsr add @fluentci/gitleaks
Import symbol
import * as gitleaks from "@fluentci/gitleaks";
Add Package
pnpm dlx jsr add @fluentci/gitleaks
Import symbol
import * as gitleaks from "@fluentci/gitleaks";
Add Package
bunx jsr add @fluentci/gitleaks
Import symbol
import * as gitleaks from "@fluentci/gitleaks";