Repository navigation
Add Dependabot and dependency review - #125
Open
testableapple wants to merge 6 commits into
Open
testableapple wants to merge 6 commits into
testableapple wants to merge 6 commits into
Conversation
👋 Hi Alexey, want a second pair of eyes on this?I'm Jeffery, Stream's review agent. I look for bugs, regressions, missing tests and slow paths, and I only post findings I've checked against the code.
Or comment |
Public Interface🚀 No changes affecting the public interface. |
SDK Size
|
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🔗 Issue Links
🎯 Goal
Keep the repo's dependencies up to date and stop PRs from adding known-vulnerable ones. Same setup as stream-chat-swift #4446.
📝 Summary
Updates run weekly, and a new version must be 7 days old before it is proposed. Except for Swift, each ecosystem's updates arrive as one grouped PR.
.github/approved-dependencies.txt, pointing out names that look like an approved package..github/approved-dependencies.txtand the checks that enforce it are owned by@GetStream/sdk-managersin CODEOWNERS, so approving a new dependency needs an SDK manager.Package.resolvedis committed, so CI runs the reviewed versions of StreamCore and StreamLogsUI instead of the newest release in range.🛠 Implementation
rubocop: it is pinned exactly in the Gemfile, and a new version brings cops that would fail the lint and block the grouped Bundler PR.Package.resolvedwas resolved with a clean package cache..gitignorekeeps ignoring every otherPackage.resolved..github/approved-dependencies.txtlists package URLs without versions, so version bumps pass and only new packages need approval. It was generated from the current dependency graph plus what this PR adds, and it includes transitive dependencies (such as gems fromGemfile.lock), because a malicious package can arrive through one..github/scripts/dependency_check.pyuses only the Python standard library. The PR check reads the base and head dependency graphs from the API itself. For a package that is not approved, it reports a look-alike of an approved package of the same type (including the same name under another owner), a repo or package published less than 90 days ago, fewer than 10,000 downloads and an OpenSSF Scorecard below 3. For approved packages, the weekly check only looks for what can change after approval: the source disappeared, moved to another owner (accepted once the new location is on the list too) or was recreated in the last 90 days, which is how a repo is hijacked after its owner renames their account. Rate limits, server errors and timeouts are retried, then reported as "couldn't check".🧪 Manual Testing Notes
Dependency Checkin apple-internal-testing-pipeline from the Actions tab once every iOS repo has its approved list on the default branch.☑️ Contributor Checklist
docs-contentrepo