From 747e003b9ead6bcaf4514675a326df76c3745cdf Mon Sep 17 00:00:00 2001 From: Timothy Kassis Date: Sat, 11 Apr 2026 10:53:44 -0700 Subject: [PATCH] chore: improve security scan workflow by adding git stash commands to handle untracked files --- .github/workflows/security-scan.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/security-scan.yml b/.github/workflows/security-scan.yml index d8f29fd9..0eb66b5a 100644 --- a/.github/workflows/security-scan.yml +++ b/.github/workflows/security-scan.yml @@ -36,7 +36,9 @@ jobs: git diff --quiet SECURITY.md && exit 0 git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git stash --include-untracked + git pull --rebase + git stash pop || true git add SECURITY.md git commit -m "chore: update security scan report [skip ci]" - git pull --rebase git push