code-foundry 1.44.4 → 1.44.5
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/.github/workflows/release.yml +22 -4
- package/CHANGELOG.md +8 -8
- package/package.json +1 -1
|
@@ -187,17 +187,35 @@ jobs:
|
|
|
187
187
|
# with HTTP 403 even on REST, so the configured automation token is
|
|
188
188
|
# validated against the current repository before any write. gh api
|
|
189
189
|
# authenticates through the GH_TOKEN environment variable and never
|
|
190
|
-
# prints the token; the
|
|
191
|
-
#
|
|
192
|
-
#
|
|
190
|
+
# prints the token; the response body is discarded and only the exit
|
|
191
|
+
# status selects the credential for the rest of the job.
|
|
192
|
+
#
|
|
193
|
+
# Reading the repository does not imply the write this workflow
|
|
194
|
+
# needs: fine-grained tokens can pass the read probe and even create
|
|
195
|
+
# draft releases while the git-refs endpoint still rejects them, and
|
|
196
|
+
# release-please creates the release tag through that endpoint when
|
|
197
|
+
# the manifest config enables force-tag-creation. Probe the write
|
|
198
|
+
# directly with a throwaway tag on the current commit; delete it on
|
|
199
|
+
# success so the probe leaves no trace. Any failure falls back to
|
|
200
|
+
# the short-lived workflow token, whose integration role creates
|
|
201
|
+
# refs without this limitation.
|
|
202
|
+
write_ok=false
|
|
193
203
|
if [ "$HAS_AUTOMATION_TOKEN" = true ] && gh api "repos/${GITHUB_REPOSITORY}" --jq '.full_name' >/dev/null 2>&1; then
|
|
204
|
+
probe_ref="refs/tags/token-write-probe-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
|
|
205
|
+
if gh api -X POST "repos/${GITHUB_REPOSITORY}/git/refs" \
|
|
206
|
+
-f "ref=$probe_ref" -f "sha=${GITHUB_SHA}" >/dev/null 2>&1; then
|
|
207
|
+
gh api -X DELETE "repos/${GITHUB_REPOSITORY}/git/refs/tags/token-write-probe-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}" >/dev/null 2>&1 || true
|
|
208
|
+
write_ok=true
|
|
209
|
+
fi
|
|
210
|
+
fi
|
|
211
|
+
if [ "$write_ok" = true ]; then
|
|
194
212
|
echo "auto_merge=true" >> "$GITHUB_OUTPUT"
|
|
195
213
|
echo "token_source=configured" >> "$GITHUB_OUTPUT"
|
|
196
214
|
else
|
|
197
215
|
echo "auto_merge=false" >> "$GITHUB_OUTPUT"
|
|
198
216
|
echo "token_source=fallback" >> "$GITHUB_OUTPUT"
|
|
199
217
|
if [ "$HAS_AUTOMATION_TOKEN" = true ]; then
|
|
200
|
-
echo "::warning title=Release token fallback::The configured CODE_FOUNDRY_TOKEN was rejected by GitHub; failing over to the short-lived workflow token. The version pull request will be left for manual merge."
|
|
218
|
+
echo "::warning title=Release token fallback::The configured CODE_FOUNDRY_TOKEN was rejected by GitHub for the tag-creation write release-please needs; failing over to the short-lived workflow token. The version pull request will be left for manual merge."
|
|
201
219
|
fi
|
|
202
220
|
fi
|
|
203
221
|
- name: Release Please (automation token)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.44.5](https://github.com/0xPlayerOne/code-foundry/compare/v1.44.4...v1.44.5) (2026-10-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **release:** probe the tag-creation write before trusting the automation token ([#716](https://github.com/0xPlayerOne/code-foundry/issues/716)) ([fabaddc](https://github.com/0xPlayerOne/code-foundry/commit/fabaddcb05d5dc701248b693f91be6ee433f8d39))
|
|
9
|
+
|
|
3
10
|
## [1.44.4](https://github.com/0xPlayerOne/code-foundry/compare/v1.44.3...v1.44.4) (2026-10-03)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -143,16 +150,9 @@
|
|
|
143
150
|
|
|
144
151
|
* **cloudflare:** surface the cf deploy error instead of discarding it ([66de0d1](https://github.com/0xPlayerOne/code-foundry/commit/66de0d1e8238315dbd910abbd907e921cbc6764f))
|
|
145
152
|
|
|
146
|
-
## [1.37.1](https://github.com/0xPlayerOne/code-foundry/compare/v1.37.0...v1.37.1) (2026-09-30)
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
### Bug Fixes
|
|
150
|
-
|
|
151
|
-
* **cloudflare:** build the production Build Output before the prebuilt deploy ([5f2f83c](https://github.com/0xPlayerOne/code-foundry/commit/5f2f83c6d6135c403b520f83469c0c5ca350cdba))
|
|
152
|
-
|
|
153
153
|
<!-- code-foundry: packaged changelog -->
|
|
154
154
|
|
|
155
155
|
---
|
|
156
156
|
|
|
157
|
-
This packaged changelog lists the 20 most recent releases;
|
|
157
|
+
This packaged changelog lists the 20 most recent releases; 225 older releases are omitted to keep the package small.
|
|
158
158
|
See the [full changelog](https://github.com/0xPlayerOne/code-foundry/blob/main/CHANGELOG.md) for the complete history.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "code-foundry",
|
|
3
|
-
"version": "1.44.
|
|
3
|
+
"version": "1.44.5",
|
|
4
4
|
"description": "A fast, language-aware repository factory for agent-ready workflows, testing, security, and release automation.",
|
|
5
5
|
"homepage": "https://github.com/0xPlayerOne/code-foundry#readme",
|
|
6
6
|
"bugs": {
|