Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

ci: fail the build if internal working artifacts or non-executable scripts are ever committed

Jose Ramirezb68420245e69
diff --git a/.github/workflows/ci-public.yml b/.github/workflows/ci-public.yml
index 1b78495cd..91e0703ec 100644
--- a/.github/workflows/ci-public.yml
+++ b/.github/workflows/ci-public.yml
@@ -6,6 +6,36 @@ on:
pull_request:
jobs:
+ repo-hygiene:
+ name: Repo hygiene (no internal working artifacts)
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: No superpowers docs may be tracked
+ # docs/superpowers/ holds per-developer working artifacts (brainstorm
+ # specs, implementation plans) that are gitignored by convention. The
+ # gitignore cannot stop a `git add -f`, so this gate can: any tracked
+ # file under a superpowers directory fails CI. If you hit this, the
+ # file belongs in the brain or your local tree, not the distribution.
+ run: |
+ tracked=$(git ls-files | grep -E '(^|/)(docs/(archive/)?superpowers|superpowers)/' || true)
+ if [ -n "$tracked" ]; then
+ echo "::error::Tracked superpowers working artifacts found:"
+ echo "$tracked"
+ exit 1
+ fi
+ - name: Shipped shell scripts must be executable
+ # The sync-to-OSS pipeline has stripped exec bits before (every .sh at
+ # mode 100644), which breaks `make minikube-setup` with Permission
+ # denied on a fresh clone. Regression gate for the PR #93 fix.
+ run: |
+ bad=$(git ls-files -s '*.sh' | awk '$1 != "100755" {print $4}' || true)
+ if [ -n "$bad" ]; then
+ echo "::error::Non-executable shell scripts (mode must be 100755):"
+ echo "$bad"
+ exit 1
+ fi
+
test:
name: Build / test / typecheck (${{ matrix.service }})
runs-on: ubuntu-latest
diff --git a/.gitignore b/.gitignore
index df0920432..0dfbe5d61 100644
--- a/.gitignore
+++ b/.gitignore
@@ -111,6 +111,9 @@ docs/diagrams/
docs/security/
docs/superpowers/
docs/archive/superpowers/
+# Belt-and-braces: a superpowers working-artifact directory is local no matter
+# where it appears (CI also fails the build if one is ever force-added).
+**/superpowers/
# Git worktrees — isolated feature workspaces, never tracked.
.worktrees/