Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
with:
node-version: "22"

- name: Configure git for private deps
run: git config --global url."https://x-access-token:${{ github.token }}@github.com/".insteadOf "git+ssh://git@github.com/"

- name: Install deps
run: npm ci

Expand All @@ -26,6 +29,9 @@ jobs:
- name: Validate pack manifests
run: node scripts/validate-packs.js

- name: Security scan
run: node scripts/security-scan.js

- name: Test build scripts
run: node --test scripts/*.test.js

Expand Down
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: sync-pack-spec validate validate-packs validate-all validate-manifests build-api generate contracts test clean
.PHONY: sync-pack-spec validate validate-packs scan-packs validate-all validate-manifests build-api generate contracts test clean

# Optional: path to sealed pack YAMLs (private repo).
# Set PRIVATE_PACKS_DIR to include sealed packs in the build.
Expand Down Expand Up @@ -55,8 +55,15 @@ validate-packs: sync-pack-spec generate
@PRIVATE_PACKS_DIR=$(PRIVATE_PACKS_DIR) node scripts/validate-packs.js
@echo "Done."

# Security scan all pack YAML files (DD-147).
# Runs SINJ prompt injection detection and cross-pack clone detection.
scan-packs:
@echo "Security scanning pack manifests..."
@node scripts/security-scan.js
@echo "Done."

# Validate everything.
validate-all: validate validate-packs
validate-all: validate validate-packs scan-packs

# Validate manifests in sibling repos.
# Canonical filename: stallari-plugin.yaml
Expand Down
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
},
"dependencies": {
"yaml": "^2.7.0"
},
"devDependencies": {
"stallari-secops-scanner": "github:Groupthink-dev/stallari-secops-scanner"
}
}
Loading