Skip to content

BUGFIX sops pre-commit, don't fail if no sops.yaml config is found#5

Merged
dskatz merged 4 commits into
mainfrom
sops_bugfix
Mar 13, 2026
Merged

BUGFIX sops pre-commit, don't fail if no sops.yaml config is found#5
dskatz merged 4 commits into
mainfrom
sops_bugfix

Conversation

@dskatz

@dskatz dskatz commented Mar 12, 2026

Copy link
Copy Markdown
Member

If a sops-precommit hook is run on a repository without sops configuration; it fails and tries to decrypt every yaml it finds.

This adjusts the behavior to only attempt decryption if a sops configuration has been loaded.

The PR also includes updates:

  • linting enforcement
  • go.mod 1.25 update

@dskatz dskatz added the ai-generated This change was primarily generated using AI tooling. label Mar 12, 2026
@dskatz
dskatz requested a review from colinhoglund March 12, 2026 19:27
@dskatz
dskatz merged commit af745de into main Mar 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated This change was primarily generated using AI tooling.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants