@pnpm/deps.github-actions 1100.1.0 → 1100.1.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,16 @@
1
1
  # @pnpm/deps.github-actions
2
2
 
3
+ ## 1100.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Checking GitHub Actions dependencies for updates is now opt-in for every command. Neither `pnpm outdated` nor `pnpm update` reads the workflow files unless `--include-github-actions` is passed or `update.githubActions` is set to `true` in `pnpm-workspace.yaml`. Reading them runs `git ls-remote` against every referenced repository, which fails in environments where GitHub is not reachable the way pnpm assumes (a GitHub Enterprise Server, a custom certificate authority, or an offline network) [#13254](https://github.com/pnpm/pnpm/issues/13254).
8
+
9
+ `pnpm outdated` accepts the `--include-github-actions` option too.
10
+
11
+ - Updated dependencies:
12
+ - @pnpm/resolving.git-resolver@1100.1.13
13
+
3
14
  ## 1100.1.0
4
15
 
5
16
  ### Minor Changes
package/lib/index.d.ts CHANGED
@@ -22,6 +22,19 @@ export interface FindOutdatedGitHubActionsOptions extends GitHubActionsOptions {
22
22
  export interface UpdateGitHubActionsOptions extends GitHubActionsOptions {
23
23
  latest?: boolean;
24
24
  }
25
+ export interface GitHubActionsOptInOptions {
26
+ includeGithubActions?: boolean;
27
+ updateConfig?: {
28
+ githubActions?: boolean;
29
+ };
30
+ }
31
+ /**
32
+ * GitHub Actions dependencies are opt-in. Reading them means running
33
+ * `git ls-remote` against every referenced repository, so `pnpm outdated` and
34
+ * `pnpm update` only look at workflow files when asked to, either with
35
+ * `--include-github-actions` or with `update.githubActions: true`.
36
+ */
37
+ export declare function shouldCheckGitHubActions(opts: GitHubActionsOptInOptions): boolean;
25
38
  export declare function isGitHubActionSelector(selector: string): boolean;
26
39
  export declare function normalizeGitHubActionSelector(selector: string): string;
27
40
  export declare function findOutdatedGitHubActions(opts: FindOutdatedGitHubActionsOptions): Promise<OutdatedGitHubAction[]>;
package/lib/index.js CHANGED
@@ -11,6 +11,15 @@ import writeFileAtomic from 'write-file-atomic';
11
11
  import YAML, { isMap, isNode, isScalar, isSeq } from 'yaml';
12
12
  const SHA_PATTERN = /^[0-9a-f]{40}$/;
13
13
  const limitRepoReads = pLimit(8);
14
+ /**
15
+ * GitHub Actions dependencies are opt-in. Reading them means running
16
+ * `git ls-remote` against every referenced repository, so `pnpm outdated` and
17
+ * `pnpm update` only look at workflow files when asked to, either with
18
+ * `--include-github-actions` or with `update.githubActions: true`.
19
+ */
20
+ export function shouldCheckGitHubActions(opts) {
21
+ return opts.includeGithubActions === true || opts.updateConfig?.githubActions === true;
22
+ }
14
23
  export function isGitHubActionSelector(selector) {
15
24
  const pattern = selector.startsWith('!') ? selector.slice(1) : selector;
16
25
  return !pattern.startsWith('@') && pattern.includes('/');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/deps.github-actions",
3
- "version": "1100.1.0",
3
+ "version": "1100.1.1",
4
4
  "description": "Discover and update GitHub Actions dependencies",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -29,10 +29,10 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@pnpm/error": "1100.1.0",
32
- "@pnpm/resolving.git-resolver": "1100.1.12",
32
+ "@pnpm/resolving.git-resolver": "1100.1.13",
33
33
  "is-subdir": "^2.0.0",
34
- "p-limit": "^7.3.0",
35
- "semver": "^7.8.4",
34
+ "p-limit": "^7.3.1",
35
+ "semver": "^7.8.5",
36
36
  "write-file-atomic": "^7.0.1",
37
37
  "yaml": "^2.9.0"
38
38
  },
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@jest/globals": "30.4.1",
44
- "@pnpm/deps.github-actions": "1100.1.0",
44
+ "@pnpm/deps.github-actions": "1100.1.1",
45
45
  "@types/semver": "7.7.1",
46
46
  "@types/write-file-atomic": "^4.0.3"
47
47
  },