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
Copy file name to clipboardExpand all lines: docs/agent-task-reusable-workflow.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,22 @@ public native package, invokes the package-declared agent through the native cha
30
30
in a credential-free verification environment, and returns actual runtime and
31
31
publication data.
32
32
33
+
## Helper Source Revision
34
+
35
+
The workflow checks out its helper scripts from one immutable WP Codebox commit
36
+
configured as `WP_CODEBOX_HELPER_REVISION`. This source revision is independent
37
+
of the caller repository, caller commit, and future revisions of
38
+
`run-agent-task.yml`; no GitHub workflow SHA context selects helper source.
39
+
40
+
Helper changes land first. A subsequent commit that updates this reusable
41
+
workflow advances the helper revision to the full SHA containing those merged
42
+
files. The workflow validates the full-SHA shape and `actions/checkout` fetches
43
+
that exact source before running helpers. The regression test reads the required
44
+
helper files at the pinned revision and checks their SHA-256 digests.
45
+
46
+
This pin fixes [#1755](https://github.com/Automattic/wp-codebox/issues/1755) and the failed Build callers [29281470179](https://github.com/Automattic/build-with-wordpress/actions/runs/29281470179)
47
+
and [29281470159](https://github.com/Automattic/build-with-wordpress/actions/runs/29281470159), where a foreign caller SHA was incorrectly used as a WP Codebox checkout ref.
48
+
33
49
## Inputs
34
50
35
51
- `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.
0 commit comments