code-foundry 1.44.3 → 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.
@@ -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
- # response body is discarded and only the exit status selects the
192
- # credential for the rest of the job.
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)
@@ -75,6 +75,16 @@ on:
75
75
  required: false
76
76
  type: string
77
77
  default: task-result
78
+ e2e-shard-list:
79
+ description: Comma-separated E2E shard indices passed to the test lane's matrix, e.g. "1,2".
80
+ required: false
81
+ type: string
82
+ default: '1'
83
+ e2e-total-shards:
84
+ description: Total E2E shard count passed to the repository script as E2E_TOTAL_SHARDS.
85
+ required: false
86
+ type: string
87
+ default: '1'
78
88
  secrets:
79
89
  TURBO_TOKEN:
80
90
  required: false
@@ -119,6 +129,8 @@ jobs:
119
129
  # smoke, and performance lanes stay in the audit and scheduled lanes.
120
130
  unit-only: ${{ inputs.mode == 'fast' || inputs.mode == 'release' }}
121
131
  artifact-prefix: ${{ inputs.artifact-prefix }}
132
+ e2e-shard-list: ${{ inputs.e2e-shard-list }}
133
+ e2e-total-shards: ${{ inputs.e2e-total-shards }}
122
134
  secrets:
123
135
  TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
124
136
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
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
+
10
+ ## [1.44.4](https://github.com/0xPlayerOne/code-foundry/compare/v1.44.3...v1.44.4) (2026-10-03)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **ci:** declare the e2e shard inputs on the no-codeql orchestrator ([#714](https://github.com/0xPlayerOne/code-foundry/issues/714)) ([7500208](https://github.com/0xPlayerOne/code-foundry/commit/7500208f3b25dfe55c41ea45b382e021cf804012))
16
+
3
17
  ## [1.44.3](https://github.com/0xPlayerOne/code-foundry/compare/v1.44.2...v1.44.3) (2026-10-03)
4
18
 
5
19
 
@@ -136,23 +150,9 @@
136
150
 
137
151
  * **cloudflare:** surface the cf deploy error instead of discarding it ([66de0d1](https://github.com/0xPlayerOne/code-foundry/commit/66de0d1e8238315dbd910abbd907e921cbc6764f))
138
152
 
139
- ## [1.37.1](https://github.com/0xPlayerOne/code-foundry/compare/v1.37.0...v1.37.1) (2026-09-30)
140
-
141
-
142
- ### Bug Fixes
143
-
144
- * **cloudflare:** build the production Build Output before the prebuilt deploy ([5f2f83c](https://github.com/0xPlayerOne/code-foundry/commit/5f2f83c6d6135c403b520f83469c0c5ca350cdba))
145
-
146
- ## [1.37.0](https://github.com/0xPlayerOne/code-foundry/compare/v1.36.4...v1.37.0) (2026-09-30)
147
-
148
-
149
- ### Features
150
-
151
- * preserve repository-owned sections of managed policy documents ([#668](https://github.com/0xPlayerOne/code-foundry/issues/668)) ([26e9f4b](https://github.com/0xPlayerOne/code-foundry/commit/26e9f4bfeaca8b01087626bafbfc5090d891530f)), closes [#667](https://github.com/0xPlayerOne/code-foundry/issues/667)
152
-
153
153
  <!-- code-foundry: packaged changelog -->
154
154
 
155
155
  ---
156
156
 
157
- This packaged changelog lists the 20 most recent releases; 223 older releases are omitted to keep the package small.
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",
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": {