Skip to content

Commit d628203

Browse files
hyperpolymathclaude
andcommitted
fix(submit): use git add -f to bypass findings gitignore
shared-context/findings/ is gitignored for local dev hygiene to prevent accidental commits of scan output. The automated submission workflow must force-add generated findings files to the findings-submissions branch. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5f7a450 commit d628203

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/submit-finding.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ ln -sf "$(basename "$TARGET_FILE")" "shared-context/findings/${REPO_SLUG}/latest
9191
FINDING_COUNT=$(jq '.findings | length' "$TARGET_FILE" 2>/dev/null || echo 0)
9292

9393
# Commit and push
94-
git add "$TARGET_FILE" "shared-context/findings/${REPO_SLUG}/latest.json"
94+
# -f: shared-context/findings/ is gitignored for local dev hygiene;
95+
# force-add is required for automated submission from CI.
96+
git add -f "$TARGET_FILE" "shared-context/findings/${REPO_SLUG}/latest.json"
9597
git config user.name "Hypatia Finding Submitter"
9698
git config user.email "hypatia@reposystem.dev"
9799

0 commit comments

Comments
 (0)