Skip to content

Commit

Permalink
remove GraphQL, use jsdocs for exported functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Dec 3, 2023
1 parent eb94b93 commit e6492b7
Show file tree
Hide file tree
Showing 26 changed files with 13,206 additions and 551 deletions.
27 changes: 3 additions & 24 deletions .fluentci/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v1
uses: fluentci-io/setup-fluentci@v2
- name: Run Dagger Pipelines
run: fluentci run deno_pipeline fmt lint test
- name: Upload coverage to Codecov
Expand Down
56 changes: 37 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ Now you can run the pipeline with:
fluentci run .
```

## Dagger Module

Use as a [Dagger](https://dagger.io) Module:

```bash
dagger mod install github.com/fluent-ci-templates/trivy-pipeline@mod
```


## Environment variables

| Variable | Description |
Expand All @@ -46,28 +55,37 @@ fluentci run .
| image | Scan a container image |
| sbom | Scan a software bill of materials |

```graphql
config(exitCode: Int!, src: String!): String
```typescript
config(
src: Directory | string,
exitCode?: number,
format?: string,
output?: string
): Promise<string>

fs(
src: Directory | string,
exitCode?: number,
format?: string,
output?: string
): Promise<string>

fs(exitCode: Int!, src: String!): String
repo(
src: Directory | string,
exitCode?: number,
repoUrl?: string,
format?: string,
output?: string
): Promise<string>

image(
exitCode: Int!,
image: String!,
src: String!
): String
src: Directory | string,
exitCode?: number,
format?: string,
output?: string
): Promise<string>


repo(
exitCode: Int!,
repoUrl: String!,
src: String!
): String

sbom(
exitCode: Int!,
path: String!,
src: String!
): String
```
## Programmatic usage

Expand All @@ -76,5 +94,5 @@ You can also use this pipeline programmatically:
```ts
import { fs } from "https://pkg.fluentci.io/trivy_pipeline@v0.2.2/mod.ts";

await fs();
await fs(".");
```
3 changes: 1 addition & 2 deletions dagger.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"root": "",
"name": "trivy",
"sdkRuntime": "tsiry/dagger-sdk-deno"
"sdk": "github.com/fluentci-io/daggerverse/deno-sdk@main"
}
Loading

0 comments on commit e6492b7

Please sign in to comment.