Skip to content

add optional working-directory input to specify .git location#353

Open
goon94 wants to merge 1 commit intobridgecrewio:mainfrom
goon94:main
Open

add optional working-directory input to specify .git location#353
goon94 wants to merge 1 commit intobridgecrewio:mainfrom
goon94:main

Conversation

@goon94
Copy link

@goon94 goon94 commented Apr 30, 2025

Existing directory input allows the users to specify the target directory(ies) for the yor command.
However, when handling different checked out repos in GHAs, we may want to specify the .git location (repo's root directory) so that git blame works properly. Otherwise, the git blame will fail due to not finding the .git config files.

This PR adds the optional working-directory input, with default value '.', that will change the action's working dir to the repo's root folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant