From 539c028a7dffff8de689aa21744506dc7c426909 Mon Sep 17 00:00:00 2001 From: Vasilev Dmitrii Date: Tue, 15 Sep 2026 18:43:09 +0700 Subject: [PATCH] fix(security): read AMD credentials from environment variables Co-Authored-By: Claude Opus 5 --- fpga/fly-vivado/setup_and_synth.exp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fpga/fly-vivado/setup_and_synth.exp b/fpga/fly-vivado/setup_and_synth.exp index ca690c67ab..ef138506f8 100644 --- a/fpga/fly-vivado/setup_and_synth.exp +++ b/fpga/fly-vivado/setup_and_synth.exp @@ -1,4 +1,5 @@ #!/usr/bin/expect -f +# Credentials come from the AMD_USER and AMD_PASS environment variables. Never commit them. # Vivado AuthTokenGen automation (auth only) set timeout 300 @@ -6,9 +7,9 @@ set timeout 300 puts "=== Generating Auth Token ===" spawn /vivado/installer/xsetup -b AuthTokenGen expect "E-mail Address:" -send "999aigents@gmail.com\r" +send "$env(AMD_USER)\r" expect "Password:" -send "TNzL7xAn0GpbwUcHsDwLYsVD4DReIQDm4d!\r" +send "$env(AMD_PASS)\r" expect { "Saved authentication token file successfully" { puts "\n=== AUTH TOKEN GENERATED ==="