@7n/rules-ci-github 1.3.0 → 1.3.1

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.1] - 2026-07-18
4
+
5
+ ### Fixed
6
+
7
+ - ga/workflows: `runConftestBatch` викликається з `await` — ядро зробило його async у @7n/rules 1.14 (#109), без await детектор падав «violations is not iterable» і валив увесь lint-прогін
8
+
3
9
  ## [1.3.0] - 2026-07-17
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7n/rules-ci-github",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "\u041f\u043b\u0430\u0433\u0456\u043d @7n/rules: \u043a\u0430\u043d\u043e\u043d GitHub Actions (.github/workflows) \u2014 \u043e\u0431\u043e\u0432'\u044f\u0437\u043a\u043e\u0432\u0456 workflow, zizmor, VS Code",
5
5
  "keywords": [
6
6
  "github-actions",
@@ -3,7 +3,7 @@ type: JS Module
3
3
  title: main.mjs
4
4
  resource: plugins/ci-github/rules/ga/workflows/main.mjs
5
5
  docgen:
6
- crc: d1b152f8
6
+ crc: 0e45c8c5
7
7
  ---
8
8
 
9
9
  ## Огляд
@@ -331,7 +331,7 @@ async function runAllGaRego(wfDir, ymlWorkflows, cwd, pass, fail) {
331
331
  const concernDir = join(GA_POLICY_DIR, target.policyDirRel.split('/', 2)[1])
332
332
  const tpl = await loadTemplate(concernDir)
333
333
  const templateData = tpl[basename(target.workflow)]
334
- const violations = runConftestBatch({
334
+ const violations = await runConftestBatch({
335
335
  policyDirRel: target.policyDirRel,
336
336
  // Правило живе у плагіні поза вбудованим rules/ ядра — резолвимо policy-теку від себе.
337
337
  policyDirAbs: concernDir,
@@ -351,7 +351,7 @@ async function runAllGaRego(wfDir, ymlWorkflows, cwd, pass, fail) {
351
351
  const workflowCommonDir = join(GA_POLICY_DIR, 'workflow_common')
352
352
  const workflowCommonTpl = await loadTemplate(workflowCommonDir)
353
353
  const usesMinVersionsSnippet = workflowCommonTpl['uses-min-versions']?.snippet
354
- const violations = runConftestBatch({
354
+ const violations = await runConftestBatch({
355
355
  policyDirRel: 'ga/workflow_common',
356
356
  policyDirAbs: workflowCommonDir,
357
357
  namespace: 'ga.workflow_common',