Skip to content

Repo Audit fixes - #161

Merged
fif7y merged 1 commit into
fif7y:rosterfrom
mr-steveryan:repo-audit-fixes
Nov 18, 2026
Merged

fif7y merged 1 commit into
fif7y:rosterfrom
mr-steveryan:repo-audit-fixes

Conversation

@mr-steveryan

@mr-steveryan mr-steveryan commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Closes #160.

Before / After

Before:

the CLA workflow loaded contributor-assistant/[email protected]. A tag can be moved, so the code that runs with the workflow's write token could change without anyone here reviewing it. The engine also carried capability fields and a message-port helper that nothing reads.

After:

Must fix: .github/workflows/cla.yml pins the action to ca4a40a7d1004f18d9960b404b97e5f30a505a08, the commit v2.6.1 points to today, with # v2.6.1 as a comment, the same way release.yml pins its actions. Contributors see no difference: the bot and the signing comment are unchanged. It takes effect for PRs into a branch once this is merged into that branch.

Nice to have

  1. EngineCapabilities keeps canHide, the only field anything reads 1. 1. (AppState.swift). hideGranularity, canReorder and the HideGranularity enum are removed. The MenuBarEngine protocol is left as is.
  2. Nice to have: MessagePortLink.isListening(_:) is removed; nothing calls it.

No behavior change in the app.

Verified

  • swift test passes in PelmetCore (721 tests) and PelmetEngine (60 tests), and swift build builds PelmetEngine including pelmet-probe. The app's xcodebuild test passes (124 tests), using local ad-hoc signing.
  • Before removing anything, I searched the whole tree (app, helpers, packages, tests, scripts) for every use of the removed names.
  • The pinned hash is what gh api repos/contributor-assistant/github-action/git/ref/tags/v2.6.1 returns.

Based on roster at 15810b6. It touches none of the files in #158, so the two can merge in either order.

)

The CLA workflow runs on every pull request with a token that can write
to the repo. It now loads contributor-assistant/github-action by commit
hash (v2.6.1), like release.yml does, so a moved tag can't change the
code it runs.

EngineCapabilities keeps canHide, the one field anything reads:
hideGranularity, canReorder and the HideGranularity enum go. So does
MessagePortLink.isListening, which nothing calls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01K2Tob8ntdHRKY4nmNpUHpK
Copilot AI balanced review requested due to automatic review settings November 18, 2026 04:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@mr-steveryan mr-steveryan mentioned this pull request Nov 18, 2026
@fif7y
fif7y merged commit 304fbc6 into fif7y:roster Nov 18, 2026
1 check passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 18, 2026
@fif7y

fif7y commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Hey @mr-steveryan,

Thanks for this, the CLA pin is a really good catch! I checked the hash against the v2.6.1 tag and it matches.

The two cleanups look good too, I couldn't find anything reading those fields either. Merged it into roster so it lands with the next beta.

@mr-steveryan
mr-steveryan deleted the repo-audit-fixes branch November 18, 2026 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants