@theholocron/holocron-plugin-github 5.0.0-alpha.566 → 5.0.0-alpha.567
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/dist/index.mjs +9 -5
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -3935,12 +3935,16 @@ function issueTypesProbe(ctx) {
|
|
|
3935
3935
|
};
|
|
3936
3936
|
}
|
|
3937
3937
|
// src/probes/token/expectations.ts
|
|
3938
|
-
/**
|
|
3939
|
-
|
|
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.
|
|
3
|
+
"version": "5.0.0-alpha.567",
|
|
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,11 +44,11 @@
|
|
|
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.
|
|
47
|
+
"@theholocron/cli": "5.0.0-alpha.567",
|
|
48
48
|
"@theholocron/eslint-config": "^8.9.0-alpha.24",
|
|
49
49
|
"@theholocron/fs-utils": "^1.17.0-alpha.8",
|
|
50
|
-
"@theholocron/http-client": "^1.58.0-alpha.65",
|
|
51
50
|
"@theholocron/github-client": "^1.58.0-alpha.65",
|
|
51
|
+
"@theholocron/http-client": "^1.58.0-alpha.65",
|
|
52
52
|
"@theholocron/misc-utils": "^1.17.0-alpha.8",
|
|
53
53
|
"@theholocron/tsconfig": "^8.9.0-alpha.24",
|
|
54
54
|
"@theholocron/tsdown-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.
|
|
61
|
+
"@theholocron/cli": "5.0.0-alpha.567"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=22"
|