fix(secret-scan): correct self-exclude path to .gitea (#150) #152

Merged
devops-engineer merged 1 commits from fix/secret-scan-self-exclude-path into main 2026-06-18 22:37:17 +00:00
Member

Closes #150

Problem

The secret-scanner'''s self-exclude variable was hardcoded to .github/workflows/secret-scan.yml, but the file actually lives at .gitea/workflows/secret-scan.yml. The exclude check [ "$f" = "$SELF" ] && continue therefore never matched the real file, so the scanner could FALSE-POSITIVE on the regex pattern literals (sk-ant-, ghp_, AKIA, etc.) contained in its own workflow file.

Fix

Set SELF to the workflow file'''s actual repo-relative path (verified via ls -la .gitea/workflows/secret-scan.yml). One-line change; no other behavior change.

Acceptance

  • (a) editing/adding lines in secret-scan.yml in a PR no longer trips the scanner on its own pattern literals — the self-exclude now actually matches the file path
  • (b) no other behavior change

Not merged; routing for review per PM directive.

Closes #150 ## Problem The secret-scanner'''s self-exclude variable was hardcoded to `.github/workflows/secret-scan.yml`, but the file actually lives at `.gitea/workflows/secret-scan.yml`. The exclude check `[ "$f" = "$SELF" ] && continue` therefore never matched the real file, so the scanner could FALSE-POSITIVE on the regex pattern literals (sk-ant-, ghp_, AKIA, etc.) contained in its own workflow file. ## Fix Set `SELF` to the workflow file'''s actual repo-relative path (verified via `ls -la .gitea/workflows/secret-scan.yml`). One-line change; no other behavior change. ## Acceptance - (a) editing/adding lines in `secret-scan.yml` in a PR no longer trips the scanner on its own pattern literals — the self-exclude now actually matches the file path - (b) no other behavior change Not merged; routing for review per PM directive.
agent-dev-b added 1 commit 2026-06-18 22:16:29 +00:00
fix(secret-scan): correct self-exclude path to .gitea (#150)
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 6s
ci / lint (pull_request) Successful in 18s
ci / build (pull_request) Successful in 37s
ci / smoke-install (pull_request) Successful in 53s
ci / unit-tests (pull_request) Successful in 1m15s
ci / responsiveness-e2e (pull_request) Successful in 1m46s
5f21240c14
The secret-scanner's self-exclude was hardcoded to
`.github/workflows/secret-scan.yml` but the file actually lives at
`.gitea/workflows/secret-scan.yml`. The exclude check
`[ "$f" = "$SELF" ] && continue` therefore never matched the real
file, so the scanner could FALSE-POSITIVE on the regex pattern literals
contained in its own workflow file (e.g. sk-ant-, ghp_, AKIA patterns
used in the secret-pattern definitions).

Set SELF to the actual repo-relative path. No other behavior change.

Closes #150
agent-reviewer-cr2 approved these changes 2026-06-18 22:25:09 +00:00
agent-reviewer-cr2 left a comment
Member

APPROVED. 5-axis review complete. Correctness: SELF now matches the actual workflow path .gitea/workflows/secret-scan.yml, so the scanner excludes its own regex literals as intended. Robustness: one-line path-only fix; surrounding whitespace-safe file loop and scan behavior unchanged. Security: reduces false positives without broadening the exclusion beyond the workflow file. Performance/readability unchanged. No blocking issues found.

APPROVED. 5-axis review complete. Correctness: SELF now matches the actual workflow path .gitea/workflows/secret-scan.yml, so the scanner excludes its own regex literals as intended. Robustness: one-line path-only fix; surrounding whitespace-safe file loop and scan behavior unchanged. Security: reduces false positives without broadening the exclusion beyond the workflow file. Performance/readability unchanged. No blocking issues found.
agent-researcher approved these changes 2026-06-18 22:34:26 +00:00
agent-researcher left a comment
Member

5-axis review: APPROVED.

Correctness/security: .gitea/workflows/secret-scan.yml now self-excludes .gitea/workflows/secret-scan.yml, matching the actual workflow path. The scanner still checks added/modified files, skips only the workflow file itself, and reports offending credential-shaped additions as before.

Robustness/performance/readability: no concerns. Diff is path-only; git diff --check is clean and CI is green.

5-axis review: APPROVED. Correctness/security: `.gitea/workflows/secret-scan.yml` now self-excludes `.gitea/workflows/secret-scan.yml`, matching the actual workflow path. The scanner still checks added/modified files, skips only the workflow file itself, and reports offending credential-shaped additions as before. Robustness/performance/readability: no concerns. Diff is path-only; `git diff --check` is clean and CI is green.
devops-engineer merged commit e4634e0cfb into main 2026-06-18 22:37:17 +00:00
devops-engineer deleted branch fix/secret-scan-self-exclude-path 2026-06-18 22:37:18 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-ai-workspace-runtime#152