@7n/rules-ci-github 2.4.3 → 2.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.4.5] - 2026-08-29
4
+
5
+ ### Changed
6
+
7
+ - `ga/service_deploy_workflow`: детект концерну тепер обслуговує wasm-гість `crates/plugin-ci-github` — вшитий `.rego` через host-import `rego-engine` замість субпроцесу `conftest`; перший walkGlob-концерн цього гостя (`.github/workflows/*.yml`). T0-фікс (`fix-service_deploy_workflow.mjs`) свідомо лишається в JS: він потребує реєстру ввімкнених правил (`relevantDomains`), якого гість не має, а частковий фікс вимкнув би JS-канон через `guestFix`. Побитий YAML тепер дає видиму діагностику замість мовчазного пропуску (§2.81)
8
+
9
+ ## [2.4.4] - 2026-08-29
10
+
11
+ ### Changed
12
+
13
+ - feat(rules-core): native-фікси T3 — text/oxfmt, text/markdownlint, nginx-default-tpl/template (§2.67) (#536)
14
+
3
15
  ## [2.4.3] - 2026-08-28
4
16
 
5
17
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7n/rules-ci-github",
3
- "version": "2.4.3",
3
+ "version": "2.4.5",
4
4
  "description": "Плагін @7n/rules: канон GitHub Actions (.github/workflows) — обов'язкові workflow, zizmor, VS Code",
5
5
  "keywords": [
6
6
  "github-actions",
@@ -43,7 +43,7 @@ deny contains msg if {
43
43
  missing := required_branches - parsed_ignore_tokens(ignore_branches_value)
44
44
  count(missing) > 0
45
45
  msg := sprintf(
46
- "clean-merged-branch.yml: ignore_branches має містити %v (зараз: %q; не вистачає: %v) (abie.mdc)",
46
+ "clean-merged-branch.yml: ignore_branches має містити %v (зараз: \"%v\"; не вистачає: %v) (abie.mdc)",
47
47
  [concat(",", sort(required_branches)), ignore_branches_value, concat(",", sort(missing))],
48
48
  )
49
49
  }
@@ -54,7 +54,7 @@ push_paths_set := {p |
54
54
  deny contains msg if {
55
55
  some required in expected_paths
56
56
  not required in push_paths_set
57
- msg := sprintf("lint-docker.yml: on.push.paths має містити %q (docker.mdc)", [required])
57
+ msg := sprintf("lint-docker.yml: on.push.paths має містити \"%v\" (docker.mdc)", [required])
58
58
  }
59
59
 
60
60
  # ── deny: required uses present ────────────────────────────────────────
@@ -70,7 +70,7 @@ deny contains msg if {
70
70
  deny contains msg if {
71
71
  some required_run in expected_run_substrings
72
72
  not contains(all_run_text, required_run)
73
- msg := sprintf("lint-docker.yml: жоден крок run не містить %q (docker.mdc)", [required_run])
73
+ msg := sprintf("lint-docker.yml: жоден крок run не містить \"%v\" (docker.mdc)", [required_run])
74
74
  }
75
75
 
76
76
  # ── helpers ────────────────────────────────────────────────────────────
@@ -23,5 +23,5 @@ deny contains msg if {
23
23
  {},
24
24
  )
25
25
  object.get(policies, "*", null) != expected
26
- msg := sprintf(".github/zizmor.yml: rules.unpinned-uses.config.policies[%q] має бути %q (ga.mdc)", ["*", expected])
26
+ msg := sprintf(".github/zizmor.yml: rules.unpinned-uses.config.policies[\"%v\"] має бути \"%v\" (ga.mdc)", ["*", expected])
27
27
  }
@@ -47,7 +47,7 @@ deny contains msg if {
47
47
  expected_run := object.get(step, "run", "")
48
48
  expected_run != ""
49
49
  not contains(all_run_text, expected_run)
50
- msg := sprintf("lint-k8s.yml: жоден крок run не містить %q (k8s.mdc)", [expected_run])
50
+ msg := sprintf("lint-k8s.yml: жоден крок run не містить \"%v\" (k8s.mdc)", [expected_run])
51
51
  }
52
52
 
53
53
  step_run_to_text(step) := step.run if is_string(step.run)
@@ -23,7 +23,7 @@ all_run_text := concat("\n", [run_text |
23
23
  deny contains msg if {
24
24
  expected_run_blob != ""
25
25
  not contains(all_run_text, expected_run_blob)
26
- msg := sprintf("lint-style.yml: жоден крок run не містить %q (style.mdc)", [expected_run_blob])
26
+ msg := sprintf("lint-style.yml: жоден крок run не містить \"%v\" (style.mdc)", [expected_run_blob])
27
27
  }
28
28
 
29
29
  deny contains msg if {
@@ -49,7 +49,7 @@ expected_run_substrings contains r if {
49
49
 
50
50
  deny contains msg if {
51
51
  input.name != expected_name
52
- msg := sprintf("lint-text.yml: name має бути %q (text.mdc)", [expected_name])
52
+ msg := sprintf("lint-text.yml: name має бути \"%v\" (text.mdc)", [expected_name])
53
53
  }
54
54
 
55
55
  deny contains msg if {
@@ -101,7 +101,7 @@ deny contains msg if {
101
101
  deny contains msg if {
102
102
  some required_run in expected_run_substrings
103
103
  not contains(job_run_blob, required_run)
104
- msg := sprintf("lint-text.yml: жоден крок run не містить %q (text.mdc)", [required_run])
104
+ msg := sprintf("lint-text.yml: жоден крок run не містить \"%v\" (text.mdc)", [required_run])
105
105
  }
106
106
 
107
107
  branches_superset_of(actual, expected) if {