Repository navigation
Repo Audit fixes - #161
Merged
Merged
Repo Audit fixes#161
Conversation
) 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
Closed
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.ymlpins the action toca4a40a7d1004f18d9960b404b97e5f30a505a08, the commitv2.6.1points to today, with# v2.6.1as a comment, the same wayrelease.ymlpins 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
EngineCapabilitieskeepscanHide, the only field anything reads 1. 1. (AppState.swift).hideGranularity,canReorderand theHideGranularityenum are removed. TheMenuBarEngineprotocol is left as is.MessagePortLink.isListening(_:)is removed; nothing calls it.No behavior change in the app.
Verified
swift testpasses inPelmetCore(721 tests) andPelmetEngine(60 tests), andswift buildbuildsPelmetEngineincludingpelmet-probe. The app'sxcodebuild testpasses (124 tests), using local ad-hoc signing.gh api repos/contributor-assistant/github-action/git/ref/tags/v2.6.1returns.Based on
rosterat15810b6. It touches none of the files in #158, so the two can merge in either order.