magmamoose/Chargate

MegaLinter-backed security + lint gate with net-new (PR-diff) finding gating.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
checkoutRun actions/checkout first. Net-new gating needs full history (fetch-depth 0).notrue
fetch_depthCheckout fetch-depth. MUST be 0 for net-new gating (merge-base).no0
modeauto | pr (net-new gate) | baseline (full scan, no gate).noauto
fail_onSeverity that blocks: any | critical | high | medium | low | none.noany
precisionNet-new precision: line | file.noline
base_refOverride the base ref/SHA (default: PR base SHA from the event).no""
head_refOverride the head ref/SHA (default: PR head SHA, else github.sha).no""
strictFail the job if MegaLinter itself errors (a tool error, not a finding).nofalse
flavorMegaLinter flavor: all (full image) | security | python | go | ...noall
megalinter_tagMegaLinter image tag or digest to pin.nov8
enable_lintersComma-separated MegaLinter linter keys to enable (others off).no""
disable_lintersComma-separated MegaLinter linter keys to disable.no""
incrementalPR events only: run MegaLinter over just the files the PR changes (VALIDATE_ALL_CODEBASE=false) instead of the whole repo — faster on large repos. The net-new gate still uses chargate's own diff. Baseline (push) scans are always whole-repo. Default off.nofalse
ignore_sops_encryptedIgnore secret-scanner hits on SOPS-encrypted values (ENC[AES256_GCM,...]) — they are already encrypted and are 100% false positives. A plaintext secret in the same file still gates. Set to false to gate on them anyway. Default on.notrue
emit_sarif_artifactUpload the full SARIF as a build artifact.notrue
sarif_artifact_nameArtifact name for the full SARIF.nochargate-sarif
upload_github_sarifUpload the full SARIF to the GitHub Security tab (needs GHAS on private repos).notrue
github_tokenToken for the GitHub Security-tab SARIF upload + PR comments. Needs pull-requests: write on the consumer workflow for comments.no${{ github.token }}
pr_commentPost GHAS-style PR comments for net-new findings (PR events only). Needs pull-requests: write.notrue
pr_comment_modeWhat to post: summary (one updatable comment) | inline (per-line) | both.noboth
pr_comment_max_inlineCap on inline comments per run; the rest are listed in the summary.no50
pr_comment_tokenExplicit override token used ONLY to author the PR comments (BYO GitHub App via actions/create-github-app-token). Usually unset: with id-token: write the token broker provides a Chargate[bot] token automatically.no""
token_broker_urlChargate token-broker base URL. With job permission id-token: write and the Chargate App installed, comments are authored by Chargate[bot]. Set empty to disable (fall back to github-actions[bot]).nohttps://chargate.magmamoose.com
oidc_audienceOIDC audience requested for the token-broker exchange (advanced).nochargate
defectdojo_urlDefectDojo base URL. Set to enable import of the FULL SARIF.no""
defectdojo_tokenDefectDojo API token (pass a secret). Used only if defectdojo_url is set.no""
defectdojo_productDefectDojo product name (auto-created if missing). Defaults to the repo name.no${{ github.event.repository.name }}
defectdojo_product_typeDefectDojo product type name (used to auto-create a new product).noResearch and Development
defectdojo_engagementDefectDojo engagement name (auto-created if missing).noci
defectdojo_close_oldClose findings no longer present on reimport.notrue
dependency_track_urlDependency-Track base URL. Set to enable the CycloneDX BOM upload (pass a Variable).no""
dependency_track_api_keyDependency-Track API key (pass a Secret). Needs BOM_UPLOAD (+ PROJECT_CREATION_UPLOAD for auto-create, + VIEW_PORTFOLIO for the PR-comment project link).no""
dependency_track_project_nameDependency-Track project name (auto-created if missing).no${{ github.repository }}
dependency_track_project_versionDependency-Track project version.no${{ github.ref_name }}
dependency_track_auto_createAuto-create the project/version on first upload.notrue
python_versionPython version used to run the chargate CLI.no3.12
namedescription
modeResolved run mode (pr | baseline).
gate_resultpass | fail.
net_new_countNumber of net-new (PR-introduced) findings.
total_countTotal findings in the full SARIF (net-new + pre-existing).
sarif_pathPath to the full (unfiltered) SARIF report.