Skip to content

Comments

fix: remove keychain from credential type picker grid#4452

Open
elias-ba wants to merge 3 commits intomainfrom
fix/keychain-credential-type-crash
Open

fix: remove keychain from credential type picker grid#4452
elias-ba wants to merge 3 commits intomainfrom
fix/keychain-credential-type-crash

Conversation

@elias-ba
Copy link
Contributor

@elias-ba elias-ba commented Feb 23, 2026

Description

Removes the Keychain option from get_type_options so it no longer appears in the credential type picker grid. To keep it available in the workflow canvas advanced picker, it's conditionally added back to type_options when from_collab_editor is true.

Closes #4453

Validation steps

  1. Go to the user credentials page → click "Add credential" → confirm "Keychain" does not appear in the type picker
  2. Go to project settings → credentials → click "Add credential" → confirm "Keychain" does not appear in the type picker
  3. Go to the workflow canvas → open a job's credential picker → click "Advanced" → confirm "Keychain" does appear and works correctly

Additional notes for the reviewer

AI Usage

  • I have used Claude Code
  • I have used another model
  • I have not used AI

Pre-submission checklist

  • I have performed an AI review of my code (we recommend using /review
    with Claude Code)
  • I have implemented and tested all related authorization policies.
    (e.g., :owner, :admin, :editor, :viewer)
  • I have updated the changelog.
  • I have ticked a box in "AI usage" in this PR

Keychain credentials are only relevant in the workflow canvas context.
Selecting the keychain type from the project or user credentials pages
caused a crash because no keychain.json schema file exists.

Move the keychain option out of get_type_options (shown on all credential
picker pages) and conditionally include it only when from_collab_editor
is true, so it remains available in the canvas advanced picker.
@github-project-automation github-project-automation bot moved this to New Issues in v2 Feb 23, 2026
@codecov
Copy link

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.38%. Comparing base (dc5f4dd) to head (8d0b54a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4452      +/-   ##
==========================================
+ Coverage   89.37%   89.38%   +0.01%     
==========================================
  Files         425      425              
  Lines       20194    20196       +2     
==========================================
+ Hits        18048    18053       +5     
+ Misses       2146     2143       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@elias-ba elias-ba force-pushed the fix/keychain-credential-type-crash branch from a089550 to 9b57c38 Compare February 24, 2026 10:18
@elias-ba elias-ba force-pushed the fix/keychain-credential-type-crash branch from 9b57c38 to 33481c1 Compare February 24, 2026 10:19
@elias-ba elias-ba changed the title fix: hide keychain credential type outside workflow canvas fix: remove keychain from credential type picker grid Feb 24, 2026
@elias-ba
Copy link
Contributor Author

Don't merge yet. Let me add a regression test.

@elias-ba
Copy link
Contributor Author

Can be merged now. Test is added. Thanks @taylordowns2000 for the review

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

Labels

None yet

Projects

Status: New Issues

Development

Successfully merging this pull request may close these issues.

Keychain incorrectly appears in credential type picker grid

2 participants