AppSec
Pull request checks
A pull request opened, updated or marked ready triggers a scan of its head and base commits; a check run reports pass or fail from your policy and annotates only the findings the change introduces. Push deliveries are acknowledged and not acted on.
What it needs
The deployment's GitHub App on the account that owns the repository: Checks read and write, Contents read, Pull requests read and write, Metadata read, subscribed to Pull request events.
Setup: Pull request checks
AppSec
Private repository scanning
Scans a private repository for vulnerable dependencies, secrets, infrastructure-as-code misconfigurations and, when turned on, SAST rules, with a git credential stored against the host.
What it needs
A personal access token with read access to the repository, for github.com or GitHub Enterprise Server.
Setup: Scan a private repository
AppSec
Fix pull requests
From a vulnerability finding, open a pull request that bumps the package to a fixed version (npm, Go modules, pip requirements on github.com), listing every open finding it clears. No package manager runs against your repository.
What it needs
The same GitHub App with Contents read and write.
Setup: Fix pull requests
AppSec
GitHub Actions gate and SARIF
A composite action requests a scan, waits for the verdict and fails the job when the policy says fail, with one summary comment that updates in place. It can write the findings as SARIF 2.1.0 for GitHub code scanning.
What it needs
A TrustIvan API key with scans:create, scans:read and verdicts:request (findings:read for SARIF); the workflow needs security-events: write to upload SARIF.
Setup: GitHub Actions
NHI Security
GitHub connector
Inventories GitHub App installations, bot accounts and repositories of an organization, with the permissions each installation holds, and names the owner of an App built by another account as a third party. Optionally, on a SAML single sign-on organization, the OAuth app and GitHub App tokens members authorized for it, never a token value.
What it needs
A fine-grained personal access token for the organization with read access to the organization permissions the connector calls.
Setup: NHI connectors: GitHub
How it is verified
Pull request checks and fix pull requests are tested against recorded GitHub API responses served through the same SSRF-guarded transport production uses. The NHI connector: Tested against recorded provider responses; not yet run against a live account of this provider.
See also: Fix pull request, SARIF.