Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Add workflow example #1

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,37 @@ Full Language Support (inline with Trusty):
* Rust
* Go

## Usage

To use this action, you can add the following to your workflow:

```yaml
name: TrustyPkg Dependency Check

on:
pull_request:
branches:
- main

jobs:
trusty_pkg_check:
runs-on: ubuntu-latest
name: Check Dependencies with TrustyPkg
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: TrustyPkg Action
uses: stacklok/[email protected]
with:
score_threshold: 5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```

## Inputs

Only one input is required for this action:
Only one input is available for this action:

`score_threshold`: The minimum score required for a dependency to be considered
high quality. Anything below this score will fail the action.
Loading