Skip to content

Commit 1aa0305

Browse files
Merge branch 'main' into saikumarvasa100-hash-patch-1
2 parents 86bd0c1 + ec91377 commit 1aa0305

File tree

16 files changed

+508
-229
lines changed

16 files changed

+508
-229
lines changed

.github/workflows/build_release_assets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
sha256sum:
6060
python: e8d7ed8c6f8c6f85cd083d5051cafd8c6c01d09eca340d1da74d0c00ff1cb897
6161
- os: windows-2022
62-
- os: macos-13
62+
- os: macos-15-intel
6363
arch: x86_64
6464
sha256sum:
6565
python: 6378dfd22f58bb553ddb02be28304d739cd730c1f95c15c74955c923a1bc3d6a

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
strategy:
7979
fail-fast: false
8080
matrix:
81-
os: [ubuntu-22.04, macos-13, windows-2022]
81+
os: [ubuntu-22.04, macos-15-intel, windows-2022]
8282
python-version: ['3.9', '3.10', '3.11', '3.12']
8383
steps:
8484
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ repos:
8585
stages: [pre-push]
8686

8787
- repo: https://github.com/gitguardian/ggshield
88-
rev: v1.44.1
88+
rev: v1.45.0
8989
hooks:
9090
- id: ggshield
9191
language_version: python3

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
<a id='changelog-1.45.0'></a>
4+
5+
## 1.45.0 — 2025-11-14
6+
7+
### Fixed
8+
9+
- ggshield no longer crashes when scanning invalid symlinks, it emits a warning instead.
10+
11+
- Handle unmerged files in pre-commit scanning during an ongoing merge.
12+
13+
- Fixed crash when ggshield received missing tags.
14+
315
<a id='changelog-1.44.1'></a>
416

517
## 1.44.1 — 2025-10-28

actions/secret/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ inputs:
1616

1717
runs:
1818
using: 'docker'
19-
image: 'docker://gitguardian/ggshield:v1.44.1'
19+
image: 'docker://gitguardian/ggshield:v1.45.0'
2020
entrypoint: '/app/docker/actions-secret-entrypoint.sh'
2121
args:
2222
- ${{ inputs.args }}

ggshield/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.44.1"
1+
__version__ = "1.45.0"

ggshield/core/scan/commit_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ def from_string(line: str) -> "PatchFileInfo":
160160

161161
if "M" in status: # modify
162162
mode = Filemode.MODIFY
163+
elif "U" in status: # unmerged
164+
mode = Filemode.UNMERGED
163165
elif "C" in status: # copy
164166
mode = Filemode.NEW
165167
elif "A" in status: # add

ggshield/utils/git_shell.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class Filemode(Enum):
5656
NEW = "new file"
5757
RENAME = "renamed file"
5858
FILE = "file"
59+
UNMERGED = "unmerged file"
5960
UNKNOWN = "unknown"
6061

6162

ggshield/verticals/secret/secret_scanner.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ def _start_scans(
161161
except NonSeekableFileError:
162162
scanner_ui.on_skipped(scannable, "file cannot be seeked")
163163
continue
164+
except FileNotFoundError:
165+
scanner_ui.on_skipped(scannable, "file not found")
166+
continue
164167

165168
if content:
166169
if (

pdm.lock

Lines changed: 221 additions & 221 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)