From c2fd93f5018bdac5d16dac8246d761c214cd5e21 Mon Sep 17 00:00:00 2001 From: Ompragash Viswanathan Date: Mon, 24 Mar 2025 21:27:11 +0530 Subject: [PATCH] Updated cmd/drone-acr/main.go --- cmd/drone-acr/main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/drone-acr/main.go b/cmd/drone-acr/main.go index 5a7e0f0..aa6676f 100644 --- a/cmd/drone-acr/main.go +++ b/cmd/drone-acr/main.go @@ -28,7 +28,7 @@ type subscriptionUrlResponse struct { } const ( - acrCertPath = "/tmp/acr-cert.pem" + acrCertFile = "acr-cert.pem" azSubscriptionApiVersion = "2021-04-01" azSubscriptionBaseUrl = "https://management.azure.com/subscriptions/" basePublicUrl = "https://portal.azure.com/#view/Microsoft_Azure_ContainerRegistries/TagMetadataBlade/registryId/" @@ -41,6 +41,10 @@ const ( certPathEnv = "AZURE_CLIENT_CERTIFICATE_PATH" ) +var ( + acrCertPath = filepath.Join(os.TempDir(), acrCertFile) +) + func main() { // Load env-file if it exists first if env := os.Getenv("PLUGIN_ENV_FILE"); env != "" {