// Apply license key string licenseKey = config["IronPdf:LicenseKey"]; if (string.IsNullOrEmpty(licenseKey)) { Console.WriteLine("ERROR: License key missing from appsettings.json"); return; }

using Microsoft.Extensions.Configuration; using IronPdf; var config = new ConfigurationBuilder() .AddJsonFile("appsettings.json") .Build();

- name: Run IronPDF Tests env: IRONPDF_LICENSE: ${{ secrets.IRONPDF_LICENSE }} run: dotnet test Add this to your application startup logs: