Skip to content

fix(ci): unblock app-hub refresh workflow (duplicate Authorization header)#632

Merged
Agilulfo1820 merged 1 commit into
mainfrom
fix/refresh-app-hub-duplicate-auth-header
Jun 1, 2026
Merged

fix(ci): unblock app-hub refresh workflow (duplicate Authorization header)#632
Agilulfo1820 merged 1 commit into
mainfrom
fix/refresh-app-hub-duplicate-auth-header

Conversation

@Agilulfo1820

@Agilulfo1820 Agilulfo1820 commented Jun 1, 2026

Copy link
Copy Markdown
Member

Summary

  • actions/checkout@v6 writes a basic-auth http.https://github.com/.extraheader and keeps it after the step finishes.
  • peter-evans/create-pull-request@v7 then layers its own credentials on top, so git sends two Authorization headers and GitHub rejects with HTTP 400 on git remote prune origin.
  • Setting persist-credentials: false on the checkout step lets the PR action own auth alone, which is what its own docs recommend.

Failure observed on the scheduled run:

```
remote: Duplicate header: "Authorization"
fatal: unable to access 'https://github.com/vechain/vechain-kit/': The requested URL returned error: 400
Error: The process '/usr/bin/git' failed with exit code 128
```

Test plan

  • Manually trigger Cross-App Connect — Refresh App Hub cache via workflow_dispatch and confirm the job reaches the Open PR if anything changed step without the duplicate-header error.
  • If the registry has diffs, confirm the PR opens against main on the chore/refresh-app-hub-cache branch as before.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Fixed an authentication issue with the scheduled Cross-App Connect App Hub cache refresh workflow. The workflow now completes successfully without encountering authorization errors during automated cache updates.

actions/checkout@v6 persists a basic-auth extraheader that collides
with the credentials peter-evans/create-pull-request sets, producing a
duplicate Authorization header and a 400 from GitHub during
`git remote prune origin`. Disabling credential persistence on
checkout lets the PR action manage auth alone.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Jun 1, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 744b7242-e505-4dd9-b083-31cda3bf6e4f

📥 Commits

Reviewing files that changed from the base of the PR and between 71296de and 05384f2.

📒 Files selected for processing (1)
  • .github/workflows/cross-app-connect-refresh-app-hub.yaml

📝 Walkthrough

Walkthrough

The cross-app-connect-refresh-app-hub workflow's Checkout step now explicitly disables credential persistence by setting persist-credentials: false. This prevents GitHub Actions from leaving an authentication header that would conflict with downstream PR-creation pushes.

Changes

Workflow Credential Persistence

Layer / File(s) Summary
Checkout credential persistence fix
.github/workflows/cross-app-connect-refresh-app-hub.yaml
The Checkout step adds persist-credentials: false with explanatory comments detailing why credential persistence would cause PR creation to fail with a 400 error due to duplicate Authorization headers.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A rabbit hops through workflows bright,
Removing auth that clogs the flight,
No duplicate headers block the way,
The cache refreshes—hip hooray! 🐰✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly addresses the main change: fixing a CI workflow by disabling credential persistence to prevent duplicate Authorization headers.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/refresh-app-hub-duplicate-auth-header

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Agilulfo1820 Agilulfo1820 merged commit a88514d into main Jun 1, 2026
5 of 6 checks passed
@Agilulfo1820 Agilulfo1820 deleted the fix/refresh-app-hub-duplicate-auth-header branch June 1, 2026 12:38
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Size Change: 0 B

Total Size: 8.84 MB

ℹ️ View Unchanged
Filename Size
packages/vechain-kit/dist/assets 4.1 kB
packages/vechain-kit/dist/assets-C0RHiZ9a.mjs 51.4 kB
packages/vechain-kit/dist/assets-C0RHiZ9a.mjs.map 74.6 kB
packages/vechain-kit/dist/assets-CZs6EVH8.cjs 58.9 kB
packages/vechain-kit/dist/assets-CZs6EVH8.cjs.map 76.1 kB
packages/vechain-kit/dist/assets/index.cjs 716 B
packages/vechain-kit/dist/assets/index.d.cts 973 B
packages/vechain-kit/dist/assets/index.d.mts 973 B
packages/vechain-kit/dist/assets/index.mjs 718 B
packages/vechain-kit/dist/index-BYfc-9J5.d.mts 5.63 kB
packages/vechain-kit/dist/index-BYfc-9J5.d.mts.map 2.99 kB
packages/vechain-kit/dist/index-C8Uj8ple.d.cts 5.63 kB
packages/vechain-kit/dist/index-C8Uj8ple.d.cts.map 2.99 kB
packages/vechain-kit/dist/index-CyDL-ZPi.d.mts 185 kB
packages/vechain-kit/dist/index-CyDL-ZPi.d.mts.map 49.2 kB
packages/vechain-kit/dist/index-EaXp4IoS.d.cts 185 kB
packages/vechain-kit/dist/index-EaXp4IoS.d.cts.map 50.3 kB
packages/vechain-kit/dist/index.cjs 1.14 MB
packages/vechain-kit/dist/index.cjs.map 2.83 MB
packages/vechain-kit/dist/index.d.cts 24.5 kB
packages/vechain-kit/dist/index.d.mts 24.5 kB
packages/vechain-kit/dist/index.mjs 1.1 MB
packages/vechain-kit/dist/index.mjs.map 2.77 MB
packages/vechain-kit/dist/utils 4.1 kB
packages/vechain-kit/dist/utils-C4gc1L9t.cjs 27.4 kB
packages/vechain-kit/dist/utils-C4gc1L9t.cjs.map 68.2 kB
packages/vechain-kit/dist/utils-DPIscp9_.mjs 22.2 kB
packages/vechain-kit/dist/utils-DPIscp9_.mjs.map 67.5 kB
packages/vechain-kit/dist/utils/index.cjs 2.02 kB
packages/vechain-kit/dist/utils/index.d.cts 3.1 kB
packages/vechain-kit/dist/utils/index.d.mts 3.1 kB
packages/vechain-kit/dist/utils/index.mjs 2.04 kB

compressed-size-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant