The POSIX compliance GitHub Actions workflow was overly complex, especially the ubuntu job and the security analysis job.
This change simplifies the workflow by:
- Refactoring long shell scripts in the ubuntu job into shell functions to improve readability.
- Simplifying the gosec installation in the security analysis job to use a single `go install` command.
- Removing complex scripting and fallbacks that made the workflow hard to read and maintain.