Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
🧩 A ready-to-use CI/CD Pipeline for scanning vulnerabilities in your project with Grype.
Grype Pipeline
A ready-to-use CI/CD Pipeline for scanning vulnerabilities in your project with Grype.
🚀 Usage
Run the following command:
fluentci run grype_pipeline
Or, if you want to use it as a template:
fluentci init -t grype
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/grype-pipeline@main
Call a function from the module:
dagger call scan --image hashicorp/terraform:1.6 --fail-on critical
🛠️ Environment variables
Variable | Description |
---|---|
GRYPE_IMAGE | The image to scan |
GRYPE_DIR | The directory to scan |
GRYPE_SBOM | The SBOM file to scan |
GRYPE_VERSION | The version of Grype to use. Defaults to latest |
GRYPE_FAIL_ON | Set the return code to 1 if a vulnerability is found with a severity >= the given severity. Possible values: negligible , low , medium , high , critical |
✨ Jobs
Job | Description |
---|---|
scan | Scan for vulnerabilities |
scan( src: Directory | string, image?: string, failOn?: string ): Promise<string>
👨💻 Programmatic usage
You can also use this pipeline programmatically:
import { scan } from "jsr:@fluentci/grype"; await scan(".");
Built and signed on
GitHub Actions
Add Package
deno add jsr:@fluentci/grype
Import symbol
import * as grype from "@fluentci/grype";
Import directly with a jsr specifier
import * as grype from "jsr:@fluentci/grype";
Add Package
pnpm i jsr:@fluentci/grype
pnpm dlx jsr add @fluentci/grype
Import symbol
import * as grype from "@fluentci/grype";
Add Package
yarn add jsr:@fluentci/grype
yarn dlx jsr add @fluentci/grype
Import symbol
import * as grype from "@fluentci/grype";
Add Package
vlt install jsr:@fluentci/grype
Import symbol
import * as grype from "@fluentci/grype";
Add Package
npx jsr add @fluentci/grype
Import symbol
import * as grype from "@fluentci/grype";
Add Package
bunx jsr add @fluentci/grype
Import symbol
import * as grype from "@fluentci/grype";