SAST gosec analyzer should not access environment variables directly
Description
The gosec analyzer accesses environment variables directly when it should be getting the value from the cli configuration.
Proposal
Replace all code that accesses environment variable with code that get the configuration from the cli options.
Edited by Zach Rice