From 969b4b678b551b46b81ad34ad84651cb9b0bf598 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Fri, 27 Dec 2024 00:42:42 +0900 Subject: [PATCH] Fix not found error for attestation build summary URL --- app/models/attestation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/attestation.rb b/app/models/attestation.rb index 0328cba3345..20b4164a095 100644 --- a/app/models/attestation.rb +++ b/app/models/attestation.rb @@ -40,7 +40,7 @@ def display_data # rubocop:disable Metrics/MethodLength source_commit_string: "#{repo}@#{commit[0, 7]}", source_commit_url: "https://github.com/#{repo}/tree/#{commit}", build_file_string:, build_file_url:, - build_summary_url: "https://github.com/#{repo}/actions/runs/#{build_file_string}" + build_summary_url: "https://github.com/#{repo}/actions/#{build_file_string.delete_prefix(".github/")}" } else raise "Unhandled issuer: #{issuer.inspect}"