-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #970 from GitGuardian/agateau/ignore-git-config
Fix parsing patches when the diff.noprefix git config option is set
- Loading branch information
Showing
7 changed files
with
16 additions
and
49 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
changelog.d/20240927_093833_aurelien.gateau_ignore_git_config.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### Fixed | ||
|
||
- Fixed a case where ggshield commit parser could fail because of the local git configuration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,4 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
# AUTOGENERATED FILE, DO NOT EDIT! | ||
# This file has been generated by the `action-entrypoint-generator` script | ||
# defined in `scripts/action-entrypoint-generator`. To make changes to this | ||
# file, modify the script and rerun it. | ||
|
||
|
||
# Mark the current directory as safe. If we don't do this, git commands fail | ||
# because the source in $PWD is owned by a different user than our `app` user. | ||
git config --global --add safe.directory "$PWD" | ||
|
||
|
||
args=("$@") | ||
ggshield iac scan ci ${args[@]} | ||
exec /app/docker/entrypoint.sh ggshield iac scan ci ${args[@]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,4 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
# AUTOGENERATED FILE, DO NOT EDIT! | ||
# This file has been generated by the `action-entrypoint-generator` script | ||
# defined in `scripts/action-entrypoint-generator`. To make changes to this | ||
# file, modify the script and rerun it. | ||
|
||
|
||
# Mark the current directory as safe. If we don't do this, git commands fail | ||
# because the source in $PWD is owned by a different user than our `app` user. | ||
git config --global --add safe.directory "$PWD" | ||
|
||
|
||
args=("$@") | ||
ggshield sca scan ci -v ${args[@]} | ||
exec /app/docker/entrypoint.sh ggshield sca scan ci -v ${args[@]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,4 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
# AUTOGENERATED FILE, DO NOT EDIT! | ||
# This file has been generated by the `action-entrypoint-generator` script | ||
# defined in `scripts/action-entrypoint-generator`. To make changes to this | ||
# file, modify the script and rerun it. | ||
|
||
|
||
# Mark the current directory as safe. If we don't do this, git commands fail | ||
# because the source in $PWD is owned by a different user than our `app` user. | ||
git config --global --add safe.directory "$PWD" | ||
|
||
|
||
args=("$@") | ||
ggshield secret scan -v ${args[@]} ci | ||
exec /app/docker/entrypoint.sh ggshield secret scan -v ${args[@]} ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
export GG_GIT_CONFIG=/tmp/ggshield-git-config | ||
|
||
# Mark the current directory as safe. If we don't do this, git commands fail | ||
# because the source in $PWD is owned by a different user than our `app` user. | ||
git config --global --add safe.directory "$PWD" | ||
# | ||
# We use our own git config because ggshield ignores the global git configuration file. | ||
git config --file "$GG_GIT_CONFIG" --add safe.directory "$PWD" | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters