Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ RUN pip install .
WORKDIR /data
VOLUME [ "/data" ]

ENTRYPOINT ["/app/docker/entrypoint.sh"]
CMD ["ggshield"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!--
A new scriv changelog fragment.

Uncomment the section that is right (remove the HTML comment wrapper).
For top level release notes, leave all the headers commented out.
-->

<!--
### Removed

- A bullet item for the Removed category.

-->
<!--
### Added

- A bullet item for the Added category.

-->

### Fixed

- Bypass git dubious ownership errors by default.

<!--
### Deprecated

- A bullet item for the Deprecated category.

-->
<!--
### Fixed

- A bullet item for the Fixed category.

-->
<!--
### Security

- A bullet item for the Security category.

-->
2 changes: 1 addition & 1 deletion docker/actions-secret-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail
args=("$@")
exec /app/docker/entrypoint.sh ggshield secret scan -v ${args[@]} ci
exec ggshield secret scan -v ${args[@]} ci
12 changes: 0 additions & 12 deletions docker/entrypoint.sh

This file was deleted.

8 changes: 7 additions & 1 deletion ggshield/utils/git_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,13 @@ def git(
logger.debug("command=%s timeout=%d", command, timeout)
result = subprocess.run(
(
[_get_git_path(), "-c", "core.quotePath=false"]
[
_get_git_path(),
"-c",
"core.quotePath=false",
"-c",
"safe.directory=*",
]
+ (
["-c", "core.longpaths=true"]
if platform.system() == "Windows"
Expand Down