Skip to content

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Oct 7, 2025

This PR automatically verifies that the specified GitHub Actions workflow file exists when creating a new Trusted Publisher configuration. The verification:

  • Triggers automatically after all required fields are filled (500ms debounce in production, no delay in tests)
  • Uses HEAD request to check workflow file existence at raw.githubusercontent.com
  • Shows one of five states:
    • Initial: "The workflow filename will be verified..."
    • Verifying: "Verifying..."
    • Success (200): Green checkmark with clickable URL
    • Not found (404): Yellow warning with clickable URL
    • Error (5xx/network): Yellow warning with clickable URL
  • Non-blocking: Users can still submit the form even if verification fails
  • URLs are clickable links that open in a new tab

All verification messages are displayed in the same area to prevent layout shifts.

Screenshots

Bildschirmfoto 2025-10-07 um 18 44 49 Bildschirmfoto 2025-10-07 um 18 45 01

@Turbo87 Turbo87 added C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works A-frontend 🐹 labels Oct 7, 2025
@Turbo87 Turbo87 force-pushed the workflow-verification branch from 019f0cd to b43c979 Compare October 7, 2025 17:01
@Turbo87 Turbo87 requested a review from a team October 7, 2025 17:09
Copy link
Contributor

@LawnGnome LawnGnome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good quality of life improvement. 👍

This PR automatically verifies that the specified GitHub Actions workflow file exists when creating a new Trusted Publisher configuration. The
verification:

- Triggers automatically after all required fields are filled (500ms debounce in production, no delay in tests)
- Uses HEAD request to check workflow file existence at raw.githubusercontent.com
- Shows one of five states:
  - Initial: "The workflow filename will be verified..."
  - Verifying: "Verifying..."
  - Success (200): Green checkmark with clickable URL
  - Not found (404): Yellow warning with clickable URL
  - Error (5xx/network): Yellow warning with clickable URL
- Non-blocking: Users can still submit the form even if verification fails
- URLs are clickable links that open in a new tab

All verification messages are displayed in the same area to prevent layout shifts.
@Turbo87 Turbo87 force-pushed the workflow-verification branch from b43c979 to 69ac95f Compare October 9, 2025 11:52
@Turbo87 Turbo87 enabled auto-merge (squash) October 9, 2025 11:52
@Turbo87 Turbo87 merged commit 4ed6220 into rust-lang:main Oct 9, 2025
10 of 11 checks passed
@Turbo87 Turbo87 deleted the workflow-verification branch October 9, 2025 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-frontend 🐹 C-enhancement ✨ Category: Adding new behavior or a change to the way an existing feature works

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants