You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with `wp_codebox_release_ref: v0.12.3`. The accepted format is exactly
40
40
`vX.Y.Z`; branches, commit SHAs, moving major tags, prereleases, and arbitrary
41
-
refs are rejected.
42
-
43
-
The workflow requires `wp_codebox_release_ref` to be an exact release tag. It
44
-
always checks helpers out from `Automattic/wp-codebox`, verifies the checked-out
45
-
commit equals the remote release tag commit, and verifies the checked-out
46
-
`package.json`version equals the requested tag without its `v` prefix. The
41
+
refs are rejected for the packaged release.
42
+
43
+
The workflow requires `wp_codebox_release_ref` to be an exact release tag. An
44
+
accepted workflow commit may also pass the same full SHA as `wp_codebox_workflow_ref`
45
+
to execute helper changes independently of packaged runtime assets. When omitted,
46
+
the helper ref defaults to the release tag. The workflow checks helpers out from
47
+
`Automattic/wp-codebox`, verifies the checked-out commit equals the selected helper
48
+
revision, and verifies the checked-out `package.json` version equals the requested
49
+
release tag without its `v` prefix. The
47
50
caller cannot select a different helper repository. GitHub nested workflows
48
51
expose the caller's `github.workflow_ref`, and the running workflow cannot
49
52
introspect its own `uses:` ref, so helper selection relies on the required input
@@ -54,6 +57,7 @@ This release-coherence contract fixes [#1759](https://github.com/Automattic/wp-c
54
57
## Inputs
55
58
56
59
- `wp_codebox_release_ref`: required exact immutable WP Codebox release tag in `vX.Y.Z` form.
60
+
- `wp_codebox_workflow_ref`: optional full immutable helper commit SHA. It defaults to `wp_codebox_release_ref` for existing callers.
57
61
- `external_package_source`: immutable descriptor with `repository`, full commit `revision`, one package-relative `.agent.json` `path`, and `digest`. Packages are supported only from publicly accessible GitHub repositories, fetched from canonical `https://github.com/OWNER/REPOSITORY.git` without credentials. `digest` is exactly `sha256-bytes-v1:<lowercase-sha256>` over the raw file bytes; filenames and JSON content are UTF-8-safe and are not normalized before hashing.
58
62
- `EXTERNAL_PACKAGE_SOURCE_POLICY`: required reusable-workflow secret, supplied by the caller's operator-controlled secret configuration. Its strict version 1 JSON shape is `{"version":1,"repositories":{"owner/repository":["agents/example.agent.json"]}}`. Every entry is an exact standalone `.agent.json` path. The policy is validated in runner memory, is never part of task input, and is not uploaded.
0 commit comments