Skip to content

Porchlight 0.12.0

Latest

Choose a tag to compare

@github-actions github-actions released this 21 Nov 17:27
· 3 commits to main since this release
v0.12.0

Porchlight 0.12.0. Changes since 0.11.0: risks in GitHub Actions workflows found by every scan, and a read-only audit of GitHub repository settings.

Installation

Platform Form Installation
Linux, macOS Command line and web interface git clone --branch v0.12.0 https://github.com/AES256Afro/Porchlight.git, then npm install -g ./cli and porchlight ui. Requires Node.js 22.18 or later, git, gitleaks and osv-scanner. porchlight doctor lists anything missing
Any host that runs Linux containers (amd64, arm64) Container image ghcr.io/aes256afro/porchlight:0.12.0. Also published as ghcr.io/aes256afro/securityx:0.12.0, the path BoxPilot servers pin
macOS 13.5 or later on Apple silicon Desktop app Porchlight-0.12.0-arm64.dmg, below
Windows Not supported in this release. Planned in docs/PLAN-WINDOWS.md

Desktop app for macOS

  1. Open the DMG and drag Porchlight into Applications. It replaces 0.11.0; scans and settings are kept.
  2. The app is not notarized by Apple. On first open, macOS reports "Porchlight Not Opened". Choose Done, then System Settings → Privacy & Security → Open Anyway beside "Porchlight was blocked".

SHA-256: ed4205c24087f612869dfb7520c47e4702d6f4adb161660b3d61cb43b59a9e87

To check a download, see "Verify a download" in the README: SHA256SUMS and gh attestation verify.

Upgrade steps

  • No database migration and nothing to redeploy: the monitor is unchanged since 0.11.0.
  • Data in ~/.porchlight carries over unchanged.
  • To use the GitHub settings audit fully, give the GitHub token Porchlight uses these read-only permissions: Administration, Secret scanning alerts, Dependabot alerts and Webhooks (a classic token: repo, security_events and read:repo_hook). Without them, those checks say "Could not check" and name the permission. No write permission is needed.

Changes

GitHub Actions workflows

Every scan that looks for secrets now reads the repository's workflows (.github/workflows/*.yml and *.yaml) from git's index, as text, with no YAML library, for four patterns:

Finding Severity
A pull_request_target workflow that checks out the pull request's own code, so anyone's pull request runs with the repository's secrets Critical
Text an outsider writes (an issue's or a pull request's title or body, a branch name) placed in a run: step with ${{ }} High
A third-party action named by a tag or a branch its owner can move Medium
permissions: write-all Medium
  • The roadmap gives one repair per workflow file.
  • Workflows are read again on every scan, even when an unchanged history is reused. Nothing is sent anywhere and no request is made to GitHub.

GitHub repository settings

porchlight github audit [--json] [--fail-on <severity>], and a GitHub settings section on the page, read for each repository the token administers (up to 100, most recently pushed first):

  • the default branch: a required review, force pushes blocked, deletion blocked, from branch protection or rulesets;
  • secret scanning and push protection, with open alerts counted by type (asked with hide_secret=true; no value is kept);
  • Dependabot alerts, with open alerts counted by severity;
  • the Actions workflow token's default permission, whether workflows may approve pull requests, and fork approval on public repositories;
  • deploy keys that can write, by title; webhooks on plain http or with the certificate check off, by host.

It only reads. A read the token was refused is "Could not check", naming the permission; a feature a plan or an empty repository lacks is "Not available"; a check passes only on a list read in full. The token goes only to api.github.com, as a header. Invariant 24 states these limits.

Demo

The demo at porchlight.theengineers.xyz shows 0.12.0's pages on made-up data.

Verification

  • CI for tag v0.12.0, on Ubuntu (amd64 and arm64) and macOS: npm run check, npm test for both packages with the real scanners, scripts/container-smoke.sh on each published platform, the DMG build with its search for the build machine's paths and names, and the attestations, all passed (run 44929666155).
  • Image digest: sha256:99037dd99bdb1d101ebdea2654808d11d24d7974429ee6edf72d87ffbc876e7e, the same under both names, for linux/amd64 and linux/arm64, attested.
  • The DMG's checksum matches SHA256SUMS, gh attestation verify confirms it was built by this repository's workflow from refs/tags/v0.12.0, and a search of every file in it found no path, name, host name or monitor address of the computer that released it.