@7n/rules-ci-github 2.4.2 → 2.4.4

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.4] - 2026-08-29
4
+
5
+ ### Changed
6
+
7
+ - feat(rules-core): native-фікси T3 — text/oxfmt, text/markdownlint, nginx-default-tpl/template (§2.67) (#536)
8
+
9
+ ## [2.4.3] - 2026-08-28
10
+
11
+ ### Changed
12
+
13
+ - Три `.rego`-політики (`ga/vscode_extensions`, `ga/vscode_settings`, `security/lint_security_yml`) отримали заміну формату `%q` → `\"%v\"` у `sprintf` — regorus (wasm-порт detect-логіки цих концернів, `crates/plugin-ci-github`) відкидає Go-verb `%q` як runtime-помилку; byte-ідентично попередньому виводу під `conftest` для звичайних рядків (перевірено `conftest verify`, 12/12 без регресій). Сама поведінка правила під `conftest` не змінилась.
14
+
3
15
  ## [2.4.2] - 2026-08-27
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.2",
3
+ "version": "2.4.4",
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 ────────────────────────────────────────────────────────────
@@ -14,5 +14,5 @@ import rego.v1
14
14
  deny contains msg if {
15
15
  some rec in data.template.snippet.recommendations
16
16
  not rec in {r | some r in object.get(input, "recommendations", [])}
17
- msg := sprintf(".vscode/extensions.json: recommendations має містити %q (ga.mdc)", [rec])
17
+ msg := sprintf(".vscode/extensions.json: recommendations має містити \"%v\" (ga.mdc)", [rec])
18
18
  }
@@ -18,5 +18,5 @@ deny contains msg if {
18
18
  some leaf_key, expected_value in expected_inner
19
19
  actual := object.get(inner, leaf_key, null)
20
20
  actual != expected_value
21
- msg := sprintf(".vscode/settings.json: %s.%s має бути %q (ga.mdc)", [block_key, leaf_key, expected_value])
21
+ msg := sprintf(".vscode/settings.json: %s.%s має бути \"%v\" (ga.mdc)", [block_key, leaf_key, expected_value])
22
22
  }
@@ -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)
@@ -29,5 +29,5 @@ all_uses_text := concat("\n", [u |
29
29
  deny contains msg if {
30
30
  expected_uses_blob != ""
31
31
  not contains(all_uses_text, expected_uses_blob)
32
- msg := sprintf("lint-security.yml: відсутній крок з uses %q (security.mdc)", [expected_uses_blob])
32
+ msg := sprintf("lint-security.yml: відсутній крок з uses \"%v\" (security.mdc)", [expected_uses_blob])
33
33
  }
@@ -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 {