From 4fadc539317023e3563fafd70d62ace35ed1ed71 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Mon, 10 Nov 2025 14:04:56 +0100 Subject: [PATCH] trustpub: Fix `verificationUrl` to only return GitHub URLs when GitHub publisher is used --- app/controllers/crate/settings/new-trusted-publisher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/crate/settings/new-trusted-publisher.js b/app/controllers/crate/settings/new-trusted-publisher.js index 47f962a1671..de23bd217d6 100644 --- a/app/controllers/crate/settings/new-trusted-publisher.js +++ b/app/controllers/crate/settings/new-trusted-publisher.js @@ -35,7 +35,7 @@ export default class NewTrustedPublisherController extends Controller { } get verificationUrl() { - if (this.namespace && this.project && this.workflow) { + if (this.publisher === 'GitHub' && this.namespace && this.project && this.workflow) { return `https://raw.githubusercontent.com/${this.namespace}/${this.project}/HEAD/.github/workflows/${this.workflow}`; } }