Respect CI timeout value by all the expensive operations in SAST analyzers.
Problem
All SAST analyzers are running independently of the job timeout set at the project level. This causes some of the expensive operations inside analyzers to continue to run beyond the specified timeout.
Proposal
Respect CI timeout value by all the expensive operations in SAST analyzers such that they cancel beyond the specified timeout value. Expensive operations include any actions that involve external/internal system resources. The suggested implementation would be to use context.Context containing cancellation signals and pass it around to all the expensive operations.
Reference issues
CC: @connorgilbert
Edited by Vishwa Bhat