Skip to content

Add gitleaks secret scanning to CI#3

Merged
klamb merged 5 commits into
mainfrom
standards-fix
May 4, 2026
Merged

Add gitleaks secret scanning to CI#3
klamb merged 5 commits into
mainfrom
standards-fix

Conversation

@qiuz-cz
Copy link
Copy Markdown
Contributor

@qiuz-cz qiuz-cz commented May 1, 2026

Scans full git history on every PR and push to main via gitleaks-action v2. Action pinned to immutable commit SHA per existing workflow conventions.

qiuz-cz added 5 commits April 30, 2026 21:00
Scans full git history on every PR and push to main via gitleaks-action v2.
Action pinned to immutable commit SHA per existing workflow conventions.
M1: Cap HTTP response bodies at 64 KiB and strip control characters
    before embedding in error messages to prevent log injection and
    unbounded diagnostics output.

M2: Validate the host provider attribute with url.Parse — require
    https:// (http:// allowed for localhost only), reject any path or
    query component. Add explicit TLS MinVersion=1.2 to http.Transport.

M3: Restrict 5xx retries to idempotent methods (GET/HEAD/PUT/DELETE)
    so non-idempotent POSTs never duplicate on transient server errors.
    Honor Retry-After header on 429 responses.

M4: Replace tflog.Warn in aws_account Delete with
    resp.Diagnostics.AddWarning so the deregistration notice is visible
    in terraform destroy output without requiring TF_LOG=WARN.

M5: Pin tfplugindocs from @latest to @v0.25.0 in the generate CI job
    to restore supply-chain pinning lost in eafcff5.
@klamb
Copy link
Copy Markdown
Collaborator

klamb commented May 4, 2026

LGTM

@klamb klamb merged commit 208a4d1 into main May 4, 2026
5 checks passed
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.

2 participants