Skip to content
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ steps:

![Offing pull request comment showing severity counts and the top lifecycle findings with file locations](https://raw.githubusercontent.com/velella-sh/offing/main/docs/assets/screenshots/pr-comment.webp)

Offing annotates the pull request at the exact line, posts one summary comment with the evidence, suppresses accepted findings with a baseline, fails on the severity you choose, and uploads the complete JSON report or SARIF. Scans run on the runner, so repository contents never leave it. Pin a full commit SHA instead of a tag when you need an immutable reference. Setup, inputs, permissions and artifacts are in the [GitHub Action guide](docs/GITHUB_ACTION.md).
Offing annotates the pull request at the exact line, posts one summary comment with the evidence, suppresses accepted findings with a baseline, fails on the severity you choose, and uploads the complete JSON report or SARIF. Scans run on the runner, so repository contents never leave it. Pin a full commit SHA instead of a tag when you need an immutable reference. Setup, inputs, permissions and artifacts are in the [GitHub Action guide](docs/GITHUB_ACTION.md). The [onboarding GitHub App](docs/ONBOARDING_APP.md) can open that workflow as one reviewed pull request per repository.

## Why not just Renovate?

Expand Down
6 changes: 5 additions & 1 deletion docs/INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Install
description: One page for every Offing install channel — npm, Action, MCP, plugins, and Docker.
description: One page for every Offing install channel — npm, Action, onboarding GitHub App, MCP, plugins, and Docker.
---

# Install
Expand Down Expand Up @@ -43,6 +43,10 @@ Add the Action to a pull-request workflow:

**Verify.** Open a pull request that changes a dependency. The job runs, writes annotations for findings, and exits non-zero when a finding meets the severity gate. Details: [GitHub Action](GITHUB_ACTION.md).

## Onboarding GitHub App

Prefer a reviewed pull request that adds the Action for you? The Offing GitHub App opens one `offing/onboarding` pull request per selected repository (workflow, config, and optional README badge). Read what it asks for and how to remove it before you install: [Onboarding GitHub App](ONBOARDING_APP.md).

## MCP

Start the local stdio server from the published package (no account or API key):
Expand Down
57 changes: 57 additions & 0 deletions docs/ONBOARDING_APP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
title: Onboarding GitHub App
description: What the Offing onboarding app does before you install it — permissions, the pull request it opens, how to uninstall, and privacy.
---

# Onboarding GitHub App

The Offing GitHub App opens one reviewed pull request per selected repository. That pull request adds a SHA-pinned Offing workflow and config so lifecycle scans run in your own Actions. Read this page before you install: it covers the permissions GitHub will show, what lands in the pull request, how to remove everything, and what the app does with your code.

Install when a public listing is available (see [Distribution status](DISTRIBUTION.md)). Until then, the source and operator notes live under [`integrations/github-app/`](https://github.com/velella-sh/offing/tree/main/integrations/github-app). For a workflow you add by hand, use the [GitHub Action](GITHUB_ACTION.md) instead.

## What happens on install

1. You install the app on an account or organization and pick the repositories it may access.
2. For each selected repository that does not already have `.github/workflows/offing.yml`, the app opens one pull request from the branch `offing/onboarding`.
3. You review and merge (or close) that pull request. Nothing is pushed to the default branch without your review.
4. After merge, scans run in *your* repository's GitHub Actions. The app does not run the scan itself.

If the workflow file is already present, the app skips that repository. Adding more repositories to an existing install opens the same pull request for each new one that still lacks the workflow.

## Permissions

GitHub shows these permissions at install time. They match [`integrations/github-app/manifest.json`](https://github.com/velella-sh/offing/blob/main/integrations/github-app/manifest.json):

| Permission | Access | Why |
| --- | --- | --- |
| Contents | Read and write | Create the `offing/onboarding` branch and the proposed files |
| Pull requests | Read and write | Open the onboarding pull request |
| Metadata | Read | Required for repository identity |

The app listens only for `installation` and `installation_repositories` events. It does not ask for issues, checks, Actions, or organization administration. A later decision may tighten this set; until then, treat the table above as the contract you accept when you install.

## What the pull request contains

Title: **Add Offing lifecycle scan**. Branch: `offing/onboarding`.

| Path | Role |
| --- | --- |
| `.github/workflows/offing.yml` | Pull-request and `main` workflow with SHA-pinned `actions/checkout` and `velella-sh/offing`, `contents: read`, and a `high` severity gate |
| `.offing.json` | Config that points at `.offing-baseline.json` and sets the same gate; monorepos also ignore common generated trees |
| `README.md` | Optional Offing badge snippet merged in when a README exists |

The first Action run on that pull request proposes a baseline so existing findings do not fail the gate on day one. Offing never writes the baseline into your repository for you; you add it from the pull request comment if you want those findings accepted. Details: [GitHub Action](GITHUB_ACTION.md).

## How to uninstall

**Before merge.** Close or decline the onboarding pull request. Uninstall the app from the repository or organization settings so it does not open another one.

**After merge.** Delete `.github/workflows/offing.yml` and `.offing.json`, remove any Offing badge line from `README.md`, and uninstall the Offing GitHub App from the repository settings.

Uninstalling the app stops future onboarding pull requests. It does not delete files already merged; remove those yourself if you no longer want the scan.

## Privacy

- The handler is **stateless**: it verifies the webhook signature, uses a short-lived installation token, writes the proposed files through the GitHub API, and keeps no repository contents after the request ends.
- Scans still run on GitHub-hosted (or your self-hosted) runners in *this* repository. The app does not store your code, run detectors, or send findings to an Offing service.
- Repository analysis stays offline inside the Action, the same as a workflow you add by hand. See [Privacy](PRIVACY.md) and [GitHub Action — permissions and privacy](GITHUB_ACTION.md#permissions-and-privacy).
Loading