@theholocron/holocron-plugin-github 5.0.0-alpha.566 → 5.0.0-alpha.568

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.
Files changed (2) hide show
  1. package/dist/index.mjs +9 -5
  2. package/package.json +7 -7
package/dist/index.mjs CHANGED
@@ -3935,12 +3935,16 @@ function issueTypesProbe(ctx) {
3935
3935
  };
3936
3936
  }
3937
3937
  // src/probes/token/expectations.ts
3938
- /** The same rules in every layer that runs the workflow: a laptop (`local` inherits `dev`) and CI. */
3939
- function everywhere(rules) {
3938
+ /**
3939
+ * The same rules in every layer that runs the workflow: a laptop (`local` inherits `dev`) and CI, and the `agent` layer
3940
+ * for a token an agent may hold (spec `tech-agent-secrets`), which has the same rules and its own value.
3941
+ */
3942
+ function everywhere(rules, layers = {}) {
3940
3943
  return { permissions: {
3941
3944
  local: rules,
3942
3945
  dev: rules,
3943
- ci: rules
3946
+ ci: rules,
3947
+ ...layers.agent ? { agent: rules } : {}
3944
3948
  } };
3945
3949
  }
3946
3950
  /**
@@ -3981,13 +3985,13 @@ const EXPECTED = {
3981
3985
  administration: "absent",
3982
3986
  secrets: "absent",
3983
3987
  environments: "absent"
3984
- }),
3988
+ }, { agent: true }),
3985
3989
  HOLOCRON_ISSUES_TOKEN: everywhere({
3986
3990
  issues: "required",
3987
3991
  administration: "absent",
3988
3992
  secrets: "absent",
3989
3993
  environments: "absent"
3990
- }),
3994
+ }, { agent: true }),
3991
3995
  HOLOCRON_SYNC_TOKEN: everywhere({
3992
3996
  actions: "required",
3993
3997
  contents: "required",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/holocron-plugin-github",
3
- "version": "5.0.0-alpha.566",
3
+ "version": "5.0.0-alpha.568",
4
4
  "description": "Holocron plugin for GitHub. Implements source, ci, secrets, environments, and issues capabilities against the GitHub REST API.",
5
5
  "keywords": [
6
6
  "ci",
@@ -44,12 +44,12 @@
44
44
  "tsx": "4.23.15",
45
45
  "typescript": "^6.0.3",
46
46
  "vitest": "^5.1.1",
47
- "@theholocron/cli": "5.0.0-alpha.566",
47
+ "@theholocron/cli": "5.0.0-alpha.568",
48
48
  "@theholocron/eslint-config": "^8.9.0-alpha.24",
49
- "@theholocron/fs-utils": "^1.17.0-alpha.8",
50
- "@theholocron/http-client": "^1.58.0-alpha.65",
51
- "@theholocron/github-client": "^1.58.0-alpha.65",
52
- "@theholocron/misc-utils": "^1.17.0-alpha.8",
49
+ "@theholocron/fs-utils": "^1.17.0-alpha.9",
50
+ "@theholocron/github-client": "^1.58.0-alpha.66",
51
+ "@theholocron/http-client": "^1.58.0-alpha.66",
52
+ "@theholocron/misc-utils": "^1.17.0-alpha.9",
53
53
  "@theholocron/tsconfig": "^8.9.0-alpha.24",
54
54
  "@theholocron/tsdown-config": "^8.9.0-alpha.24",
55
55
  "@theholocron/vitest-config": "^8.9.0-alpha.24"
@@ -58,7 +58,7 @@
58
58
  "@theholocron/fs-utils": "^1.16.0",
59
59
  "@theholocron/github-client": "^1.58.0",
60
60
  "@theholocron/misc-utils": "^1.16.0",
61
- "@theholocron/cli": "5.0.0-alpha.566"
61
+ "@theholocron/cli": "5.0.0-alpha.568"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=22"