■ ■ ■ ■ ■ ■
pkg/commands/process/settings/ruleLoader.go
| skipped 13 lines |
14 | 14 | | "gopkg.in/yaml.v3" |
15 | 15 | | ) |
16 | 16 | | |
17 | | - | const LATEST_RELEASE_URL = "https://api.github.com/repos/bearer/bearer/releases/latest" |
18 | | - | |
19 | | - | // TODO: update this for bearer-rule structure |
20 | | - | const BASE_RULE_FOLDER = "pkg/commands/process/settings/rules/" |
| 17 | + | const LATEST_RELEASE_URL = "https://api.github.com/repos/bearer/bearer-rules/releases/latest" |
| 18 | + | const BASE_RULE_FOLDER = "/" |
21 | 19 | | |
22 | 20 | | func LoadRuleDefinitionsFromGitHub(ruleDefinitions map[string]RuleDefinition, builtInRuleDefinitions map[string]RuleDefinition) error { |
23 | 21 | | resp, err := http.Get(LATEST_RELEASE_URL) |
| skipped 100 lines |