This repository has been archived by the owner on Jan 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from stacklok/issue-6
feat: allow to fail on specific scores apart from global
- Loading branch information
Showing
4 changed files
with
108 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,45 @@ | ||
name: 'TrustyPkg Action' | ||
description: 'Run Trusty against your dependencies for supply chain risks' | ||
name: "TrustyPkg Action" | ||
description: "Run Trusty against your dependencies for supply chain risks" | ||
inputs: | ||
GITHUB_TOKEN: | ||
description: 'GitHub token' | ||
description: "GitHub token" | ||
required: true | ||
score_threshold: | ||
description: 'Raise anything below this score as an issue' | ||
required: false | ||
default: 5 | ||
thresholds: | ||
global: | ||
description: "Raise global score below this score as an issue" | ||
required: false | ||
default: 5 | ||
repo_activity: | ||
description: "Raise repo activity below this score as an issue" | ||
required: false | ||
default: 0 | ||
author_activity: | ||
description: "Raise author activity below this score as an issue" | ||
required: false | ||
default: 0 | ||
provenance: | ||
description: "Raise provenance below this score as an issue" | ||
required: false | ||
default: 0 | ||
typosquatting: | ||
description: "Raise typosquatting below this score as an issue" | ||
required: false | ||
default: 0 | ||
fail_on: | ||
malicious: | ||
description: "Fail if package is malicious" | ||
required: false | ||
default: true | ||
deprecated: | ||
description: "Fail if package is deprecated" | ||
required: false | ||
default: true | ||
archived: | ||
description: "Fail if repo is archived" | ||
required: false | ||
default: true | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
using: "docker" | ||
image: "Dockerfile" | ||
args: | ||
- ${{ inputs.recursive }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters