File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ version : v1
3+ release_phase : alpha
4+ type : rule-type
5+ name : renovate_github_action
6+ display_name : Enable Renovate for automated dependency updates
7+ short_failure_message : Renovate is not configured via a GitHub action
8+ severity :
9+ value : medium
10+ context : {}
11+ description : |
12+ Verifies that Renovate is configured via a GitHub action for the repository.
13+ guidance : |
14+ Ensure that Renovate is configured and enabled for the repository.
15+
16+ Renovate enables automated dependency updates for repositories.
17+ It is recommended that repositories have some form of automated
18+ dependency updates enabled to ensure that vulnerabilities are not
19+ introduced into the codebase.
20+
21+ For more information, see the [GitHub Action Renovate](https://github.com/renovatebot/github-action) documentation.
22+ def :
23+ in_entity : repository
24+ rule_schema :
25+ type : object
26+ properties : {}
27+ ingest :
28+ type : git
29+ git : {}
30+ eval :
31+ type : rego
32+ rego :
33+ type : deny-by-default
34+ def : |
35+ package minder
36+
37+ import rego.v1
38+
39+ actions := github_workflow.ls_actions("./.github/workflows")
40+
41+ default message := "Renovate GitHub action is not configured"
42+ default allow := false
43+ allow if {
44+ # check that there is a renovate action
45+ "renovatebot/github-action" in actions
46+ }
47+ # Defines the configuration for alerting on the rule
48+ alert :
49+ type : security_advisory
50+ security_advisory : {}
You can’t perform that action at this time.
0 commit comments