Skip to content

Commit

Permalink
Revert "Update rule configuration (#179)"
Browse files Browse the repository at this point in the history
This reverts commit 668f010.
  • Loading branch information
jhrozek committed Oct 14, 2024
1 parent 668f010 commit 1e078cb
Show file tree
Hide file tree
Showing 18 changed files with 54 additions and 14 deletions.
4 changes: 3 additions & 1 deletion rule-types/github/branch_protection_allow_deletions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def:
properties:
branch:
type: string
description: "The name of the branch to check. If not specified, the repository's default branch will be used."
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
# Defines the schema for writing a rule with this rule being checked
rule_schema:
type: object
Expand Down
4 changes: 3 additions & 1 deletion rule-types/github/branch_protection_allow_force_pushes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def:
properties:
branch:
type: string
description: "The name of the branch to check. If not specified, the repository's default branch will be used."
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
# Defines the schema for writing a rule with this rule being checked
rule_schema:
type: object
Expand Down
4 changes: 3 additions & 1 deletion rule-types/github/branch_protection_allow_fork_syncing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def:
properties:
branch:
type: string
description: "The name of the branch to check. If not specified, the repository's default branch will be used."
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
4 changes: 3 additions & 1 deletion rule-types/github/branch_protection_enabled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def:
properties:
branch:
type: string
description: "The name of the branch to check. If not specified, the repository's default branch will be used."
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
rule_schema: {}
# Defines the configuration for ingesting data relevant for the rule
ingest:
Expand Down
4 changes: 3 additions & 1 deletion rule-types/github/branch_protection_enforce_admins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def:
properties:
branch:
type: string
description: "The name of the branch to check. If not specified, the repository's default branch will be used."
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
4 changes: 3 additions & 1 deletion rule-types/github/branch_protection_lock_branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def:
properties:
branch:
type: string
description: "The name of the branch to check. If not specified, the repository's default branch will be used."
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def:
properties:
branch:
type: string
description: "The name of the branch to check. If not specified, the repository's default branch will be used."
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def:
properties:
branch:
type: string
description: "The name of the branch to check. If not specified, the repository's default branch will be used."
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def:
properties:
branch:
type: string
description: "The name of the branch to check. If not specified, the repository's default branch will be used."
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def:
properties:
branch:
type: string
description: "The name of the branch to check. If not specified, the repository's default branch will be used."
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def:
properties:
branch:
type: string
description: "The name of the branch to check. If not specified, the repository's default branch will be used."
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def:
properties:
branch:
type: string
description: "The name of the branch to check. If not specified, the repository's default branch will be used."
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def:
properties:
branch:
type: string
description: "The name of the branch to check. If not specified, the repository's default branch will be used."
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
# Defines the schema for writing a rule with this rule being checked
rule_schema:
properties:
Expand Down
4 changes: 3 additions & 1 deletion rule-types/github/branch_protection_require_signatures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def:
properties:
branch:
type: string
description: "The name of the branch to check. If not specified, the repository's default branch will be used."
description: "The name of the branch to check. If left empty, the default branch will be used."
required:
- branch
# Defines the schema for writing a rule with this rule being checked
rule_schema:
type: object
Expand Down
6 changes: 6 additions & 0 deletions rule-types/github/dependabot_configured.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,19 @@ def:
description: |
The package ecosystem that the rule applies to.
For example pip, gomod, npm, docker, github-actions, etc.
schedule_interval:
type: string
description: |
This option is no longer used. It's, however marked as required, so we can't remove
it for backwards compatibility.
apply_if_file:
type: string
description: |
Optional. If specified, the rule will only be evaluated if the given file exists.
This is useful for rules that are only applicable to certain types of repositories.
required:
- package_ecosystem
- schedule_interval
# Defines the configuration for ingesting data relevant for the rule
ingest:
type: git
Expand Down
2 changes: 2 additions & 0 deletions rule-types/github/security_insights.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def:
description: |
The path to the Security Insights file
default: SECURITY-INSIGHTS.yml
required:
- filename
# Defines the configuration for ingesting data relevant for the rule
ingest:
type: git
Expand Down
2 changes: 2 additions & 0 deletions rule-types/github/security_insights_dep_policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def:
description: |
The path to the Security Insights file
default: SECURITY-INSIGHTS.yml
required:
- filename
# Defines the configuration for ingesting data relevant for the rule
ingest:
type: git
Expand Down
2 changes: 2 additions & 0 deletions rule-types/github/security_policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def:
description: |
Path to the security policy file
default: SECURITY.md
required:
- filename
# Defines the configuration for ingesting data relevant for the rule
ingest:
type: git
Expand Down

0 comments on commit 1e078cb

Please sign in to comment.