Skip to content

harden: .gitattributes (eol=lf) + UTF-8 Encoding Guard - #6

Merged
marcohost33-maker merged 1 commit into
mainfrom
harden/encoding-guard-gitattributes
May 24, 2026
Merged

harden: .gitattributes (eol=lf) + UTF-8 Encoding Guard#6
marcohost33-maker merged 1 commit into
mainfrom
harden/encoding-guard-gitattributes

Conversation

@marcohost33-maker

Copy link
Copy Markdown
Owner

Präventiv-Härtung gegen zwei in der Welle 2026-05-24 gefundene Muster: (1) .gitattributes (* text=auto eol=lf) gegen CRLF-Churn auf Windows-Clones; (2) Encoding-Guard-Workflow, der CI rot macht wenn eine .github/-Datei kein valides UTF-8 ist — fängt das 0x97-CP-1252-Byte, das zizmors Audit auf HexGol still abbrechen ließ. Guard SHA-gepinnt + permissions:{} + persist-credentials:false.

Prevents two recurring issues found in the 2026-05-24 hardening wave:
- .gitattributes `* text=auto eol=lf`: stops the CRLF churn that appeared on
  Windows clones (dozens of phantom-modified files).
- Encoding Guard: a CI check that fails if any .github/ file is not valid
  UTF-8, catching the CP-1252 0x97 em-dash byte that silently broke zizmor's
  audit on HexGol (the audit aborted before reporting any findings).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@marcohost33-maker
marcohost33-maker merged commit 8541f68 into main May 24, 2026
8 checks passed
@marcohost33-maker
marcohost33-maker deleted the harden/encoding-guard-gitattributes branch May 24, 2026 15:36
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