Skip to main content

Built and signed on GitHub Actions

🧩 A ready-to-use CI/CD Pipeline for detecting secrets in your code using Gitleaks

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
76%
Published
a year ago (0.2.0)

Gitleaks Pipeline

fluentci pipeline deno compatibility dagger-min-version ci

A ready-to-use CI/CD Pipeline for detecting secrets in your code using Gitleaks.

🚀 Usage

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 .

🧩 Dagger Module

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 .

✨ Jobs

Job Description
detect Detect secrets in your code
detect(
  src: string | Directory | undefined = "."
): Promise<File | string>

👨‍💻 Programmatic usage

You can also use this pipeline programmatically:

import { detect } from "jsr:@fluentci/gitleaks";

await detect();
Built and signed on
GitHub Actions
View transparency log

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";