Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update trusty rule and profile with new fields #116

Merged
merged 3 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion profiles/github/dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,17 @@ pull_request:
url: https://pypi.org/pypi
- type: pr_trusty_check
def:
action: summary
action: review
ecosystem_config:
- name: npm
score: 5
allow_malicious: false
- name: pypi
score: 5
allow_malicious: false
- name: go
score: 5
allow_malicious: false
repository:
- type: dependabot_configured
name: dependabot_configured_go
Expand Down
9 changes: 9 additions & 0 deletions rule-types/github/pr_trusty_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ def:
enum:
# the evaluator engine will merely pass on an error, marking the profile as failed if packages with low scores are found
- profile_only
# minder will post a review to any offending PR when malicious deps are
# found. If blocking is disabled with block[malicious]=true or with
# block[deprecated]=true, minder will still post its review but merely
# commenting instead of reuqesting changes.
- review
# the evaluator engine will add a single summary comment with a table listing the packages with low scores found
- summary
default: review
Expand All @@ -49,6 +54,10 @@ def:
type: number
description: "Minimum level of activity to consider as healthy. Values are 0-10 where 10 represents the most active."
default: 0
allow_malicious:
type: boolean
description: "Don't block PRs when malicious packages are found (not recommended)"
default: false

ingest:
type: diff
Expand Down
Loading