You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] FILE_PATHS '.' includes .git paths and breaks createTree with malformed path component #15
commit-action fails when called with FILE_PATHS: . because recursive file discovery includes .git/* files. Those paths are sent to the GitHub Trees API and fail with tree.path contains a malformed path component.
Steps to Reproduce
In any workflow using vig-os/commit-action, set:
FILE_PATHS: .
Run the job in a checked-out repository (with .git directory present).
Observe the action log printing committed files, including .git/HEAD, .git/config, .git/hooks/*, .git/objects/*.
Action fails at tree creation with:
tree.path contains a malformed path component
Expected Behavior
When FILE_PATHS points to a directory, the action should only include valid repository working-tree files and exclude VCS internals like .git.
Actual Behavior
The action recursively collects .git/* entries and passes them to octokit.rest.git.createTree, causing a hard failure.
Activity
fix: exclude .git paths when expanding FILE_PATHS directories