An extensible CLI to run automated checks for Eclipse Foundation Rapid Security Reviews.
uv tool install git+https://github.com/eclipse-csi/rsrrCheck results are printed as JSON to stdout.
# Run all checks
rsrr run [opts]
# Run specific checks
rsrr run --ef-project-id technology.csi -- ef_committers
# List available checks
rsrr list
Several checks require API tokens. Create them with the minimum scopes needed by the checks in this tool:
-
GitHub (classic personal access token) — needed for Dependabot alerts, security advisories, and private-vulnerability-reporting endpoints. Pass via
--gh-tokenorGH_TOKEN:Create token (scopes:
repo,security_events)Alternative: Mint a token from an active
ghsession, and pass it like so:--gh-token $(gh auth token) -
GitLab (eclipse.org instance) — needed to search the
security/vulnerability-reportsproject. Pass via--gl-tokenorGL_TOKEN:Create token (scope:
read_api)
uv run rsrr --verbose run \
--gh-token $(gh auth token) \
--gl-token ${GL_TOKEN} \
--ef-project-id technology.csi \
--gh-repo eclipse-csi/otterdog \
--gl-vuln-kw otterdog --gl-vuln-kw self-service \
--ctx-data otterdog-rsr.json--gh-token: useghsession, as alternative for creating a token--gl-token: redundant use of option for demo purpose,GL_TOKENenv var is enough--ef-project-id: Review "Common Security Infrastructure" project--gh-repo: Focus on Otterdog repo for detailed checks--gl-vuln-kw: Search for vulnerability-reports with 'otterdog' or 'self-service' in title or description--ctx-data: Save output to otterdog-rsr.json
Create a new file in src/rsrr/checks/ with a descriptive name, e.g.
ultimate_answer.py, and add a Check implementation, e.g.
from ..base import BaseCheck
class Check(BaseCheck):
name = "Ultimate Answer"
comment = "Get the answer to the Ultimate Question of Life"
async def run(self) -> int:
return 42Browse existing checks/ for real-world examples.
This project uses uv
for project management, and
just
to run commands. Look up their docs for installation and usage instructions.
# List available commands (recipes)
just -l