pact-foundation / pact-ruby-cli

Amalgamated Pact Ruby CLI
https://pact.io
MIT License
12 stars 13 forks source link

fix: branch detection fix in response git cve fix #79

Closed YOU54F closed 2 years ago

YOU54F commented 2 years ago

git branch detection command fails due to cve fix https://github.blog/2022-04-12-git-security-vulnerability-announced/

fatal: unsafe repository (REPO is owned by someone else) in other workflow steps after running checkout

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

fixes #78

Failing run from latest of the official image

https://github.com/pactflow/actions/actions/runs/3201040361/jobs/5228627393#step:3:98

Passing run with the fix from this branch, built and uploaded as you54f:pact-cli:latest

https://github.com/pactflow/actions/actions/runs/3204506236/jobs/5235884881#step:3:101

diff:- https://github.com/pactflow/actions/compare/main...test_git_safe_dir_issue