Skip to content

Commit aa3ef67

Browse files
ZeroChaos-arthurzam
authored andcommitted
add safe directory to git target
pkgcheck uses git for some of it's checks, however, the github.workspace directory not being marked safe causes a failure See also: actions/checkout#1169 See also: https://github.com/pentoo/pentoo-overlay/actions/runs/7560749313/job/20587445443 Closes: #18 Signed-off-by: Zero_Chaos <zerochaos@gentoo.org> Closes: #19 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent 2bf6ea9 commit aa3ef67

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ runs:
2525
runner() { echo \"::group::${1}\"; shift 1; \"$@\"; local exit=$?; echo; echo \"::endgroup::\"; return $exit; } ;
2626
runner \"Sync gentoo repo\" pmaint sync gentoo || exit 1 ;
2727
runner \"Update repo metadata\" pmaint regen --dir ~/.cache/pkgcheck/repos . ;
28+
runner \"Marking workspace safe for git\" git config --global --add safe.directory ${{ github.workspace }} ;
2829
runner \"Run pkgcheck\" pkgcheck --color y ci --failures ~/failures.json --exit GentooCI ${{ inputs.args }} ;
2930
scan_exit_status=$? ;
3031
pkgcheck replay --color y ~/failures.json ;

0 commit comments

Comments
 (0)