@davidvornholt/standards 0.26.4 → 0.28.0

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.
@@ -4,6 +4,7 @@ import { isAbsolute, join } from 'node:path';
4
4
  import { isContainedPath } from './contained-path';
5
5
  import { isRecord } from './github-settings-parse';
6
6
  import { readJsonFile } from './json-file';
7
+ import { collectSopsActionCallerProblems } from './sops-action-callers';
7
8
  import { collectBunVersionProblems } from './structure-bun-version';
8
9
  import {
9
10
  missingPublishedCliProblems,
@@ -154,14 +155,16 @@ export const collectStructureProblems = async (
154
155
  consumer: string,
155
156
  profile: StructureProfile,
156
157
  ): Promise<ReadonlyArray<string>> => {
157
- const [root, secretsProblems] = await Promise.all([
158
+ const [root, secretsProblems, callerProblems] = await Promise.all([
158
159
  readJsonFile(join(consumer, 'package.json')),
159
160
  collectCiSecretsProblems(consumer),
161
+ collectSopsActionCallerProblems(consumer),
160
162
  ]);
161
163
  if (root === null) {
162
164
  return [
163
165
  'package.json must exist and contain a JSON object',
164
166
  ...secretsProblems,
167
+ ...callerProblems,
165
168
  ];
166
169
  }
167
170
  const declaration = workspacePatternsOf(root);
@@ -193,5 +196,6 @@ export const collectStructureProblems = async (
193
196
  ...inspectRootScripts(root, profile, requireA11y),
194
197
  ...inspections.flatMap((i) => [...i.problems]),
195
198
  ...secretsProblems,
199
+ ...callerProblems,
196
200
  ];
197
201
  };