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

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.2] - 2026-08-27
4
+
5
+ ### Changed
6
+
7
+ - `engines.bun` піднято з `>=1.3` до `>=1.4` — репо-мінімум `js.package_json` (репо фактично вимагає 1.4)
8
+
9
+ ## [2.4.1] - 2026-08-26
10
+
11
+ ### Fixed
12
+
13
+ - docker.lint_docker_yml: додано фолбек object.get(input, "on", …) для YAML 1.2 (regorus/saphyr) на випадок міграції з conftest — без нього push_paths_set стає порожнім і deny спрацьовує на кожному валідному workflow
14
+
3
15
  ## [2.4.0] - 2026-08-25
4
16
 
5
17
  ### Removed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7n/rules-ci-github",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "description": "Плагін @7n/rules: канон GitHub Actions (.github/workflows) — обов'язкові workflow, zizmor, VS Code",
5
5
  "keywords": [
6
6
  "github-actions",
@@ -50,7 +50,7 @@
50
50
  "access": "public"
51
51
  },
52
52
  "engines": {
53
- "bun": ">=1.3",
53
+ "bun": ">=1.4",
54
54
  "node": ">=24"
55
55
  },
56
56
  "dependencies": {
@@ -40,10 +40,13 @@ all_run_text := concat("\n", [run_text |
40
40
  run_text := step_run_to_text(step)
41
41
  ])
42
42
 
43
- # conftest парсить YAML 1.1, тож канонічний `on:` без лапок стає булевим ключем
44
- # `true` (як у `ga.lint_ga`). Тому читаємо через `input["true"]`.
43
+ # conftest (YAML 1.1) серіалізує канонічний `on:` без лапок у булевий ключ
44
+ # `true`; regorus/saphyr (YAML 1.2, in-process шлях crates/plugin-ci-github)
45
+ # лишає рядковий ключ `"on"`. Фолбек — як у `ga.lint_ga` та сусідніх пакетів.
46
+ gha_on := object.get(input, "on", object.get(input, "true", {}))
47
+
45
48
  push_paths_set := {p |
46
- some p in object.get(object.get(object.get(input, "true", {}), "push", {}), "paths", [])
49
+ some p in object.get(object.get(gha_on, "push", {}), "paths", [])
47
50
  }
48
51
 
49
52
  # ── deny: on.push.paths subset-of ──────────────────────────────────────