test.sh: add repo dir as safe directory
test.sh: add repo dir as safe directory

Workaround for https://github.com/actions/checkout/issues/766

When running in github actions, the user that clones the repository is
different than the user inside the container created by test.sh.

A recent release of git to address a CVE [1] makes it so that git
refuses to work with a repository owned by a different user by default.
This breaks the Bandit action, because bandit runs git commands.

Configure the repo directory as safe to make git ignore the different
user problem. Do so in the common setup_osbs() function for consistency.

[1]: https://github.blog/2022-04-12-git-security-vulnerability-announced

Signed-off-by: Adam Cmiel <1217f9865bd733d1bcad0d0d64be310272c5592c@redhat.com>

projectatomic/atomic-reactor,fr34k8/atomic-reactor,fr34k8/atomic-reactor,projectatomic/atomic-reactor