Small, transparent checks for common repository security mistakes.
A browser-based scanner and reusable GitHub Actions workflow maintained by PauzeX Developments.
- Exposed credentials: recognises common GitHub, GitLab, npm, Slack, Google, AWS-style, bearer-token, and private-key patterns. Evidence is redacted in reports.
- GitHub Actions risks: flags broad workflow permissions, privileged
pull_request_targettriggers, unsafe interpolation of event text into shell commands, mutable action references, persisted checkout credentials, and risky pull-request head checkouts. - Suspicious code patterns: looks for patterns such as piping remote scripts directly to a shell, encoded PowerShell commands, and some forms of encoded dynamic execution.
- Install-time supply-chain risks: reviews npm
preinstall,install,postinstall, andpreparehooks for risky shell/download execution, and flags Git, URL, or local-path dependencies for source review. - Workflow attack paths: flags direct interpolation of workflow inputs into shell commands and highlights
workflow_runartifact trust boundaries for manual review. - Pinned dependencies: checks supported npm
package-lock.jsonand exact-pinned Pythonrequirements*.txtentries against the public OSV advisory service. - Actionable findings: provides severity, file and line references where applicable, source links, remediation guidance, and coverage warnings.
Paste a public GitHub repository URL into the web app and start a scan. The browser fetches public repository files from GitHub; files are not uploaded to a RepoShield backend. No personal access token or account is required.
Create .github/workflows/reposhield.yml in the repository you want to scan:
name: RepoShield
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
scan:
uses: PauzeDevs/RepoShield/.github/workflows/reposhield-scan.yml@a0b672753c5bfa5493a0312f72afc9addf721734
with:
fail-on: highThe example pins the reusable workflow to a commit SHA. Update the pin deliberately when adopting a newer reviewed version.
fail-on value |
Behaviour |
|---|---|
critical |
Fail if a critical finding is reported. This is the default. |
high |
Fail on high or critical findings. |
medium, low, info |
Fail at that severity or above. |
never |
Report findings without failing due to their severity. |
The job needs only contents: read. It checks out the target revision and a separate pinned copy of the scanner, then reads files as data. RepoShield does not execute code or install scripts from the target repository, and it does not require repository secrets. Results are written to the GitHub Actions job summary.
| Path | Purpose |
|---|---|
index.html |
Static app shell and accessible page structure |
assets/styles.css |
Layout, responsive styling, and visual components |
assets/ambient-field.js |
Lightweight animated perspective grid and pointer-reactive particle field |
assets/threeui-motion.css |
Depth styling and reduced-motion-aware visual treatment |
advanced-rules.js |
Additional supply-chain and workflow attack-path heuristics |
tests/advanced-rules.test.cjs |
Regression tests for the added heuristics |
browser-scan.js |
GitHub API access, scan orchestration, and UI rendering |
scanner-core.js |
Shared static pattern detection, redaction, and dependency parsing |
tools/reposhield-ci.cjs |
Local-filesystem scanner used by GitHub Actions |
.github/workflows/reposhield-scan.yml |
Reusable workflow for other repositories |
.github/workflows/self-scan.yml |
Runs RepoShield against its own repository |
tests/scanner-core.test.cjs |
Regression tests for scanner behaviour |
Use Node.js and run:
node --check browser-scan.js
node --check scanner-core.js
node --check tools/reposhield-ci.cjs
node --check advanced-rules.js
node --check assets/ambient-field.js
node --test tests/scanner-core.test.cjs tests/advanced-rules.test.cjsRepoShield is a bounded static scanner, not an antivirus tool or proof that a repository is safe.
- Scans up to 180 supported files.
- Skips supported files at or above 250 KB.
- Inspects approximately 3 MB of source per scan.
- Checks up to 60 unique pinned dependency versions against OSV.
- Supports npm
package-lock.jsonand pinned entries inrequirements*.txtfor dependency checks. - Depends on GitHub and OSV availability and rate limits; incomplete coverage is surfaced as a warning.
Findings can be false positives, and a clean scan can miss vulnerabilities. Review results and advisories before making security decisions. If a real credential is exposed, revoke or rotate it and consider removing it from Git history.
RepoShield is licensed under the GNU Affero General Public License v3.0 only (AGPL-3.0-only). See LICENSE for the complete license text. In brief, this is a strong copyleft license: if you distribute modified versions, or make a modified version available for users to interact with over a network, the license has source-code disclosure requirements. Review the full license to understand the exact obligations before reusing or deploying modified versions.
PauzeX Developments · GitHub repository · Live scanner