Repository navigation
ci: add Dependabot and dependency review, pin GitHub Actions - #178
Open
testableapple wants to merge 1 commit into
Open
testableapple wants to merge 1 commit into
testableapple wants to merge 1 commit 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 |
This branch has not been deployed
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.
Problem
Nothing in this repo checks a pull request for dependencies with known vulnerabilities, and nothing keeps the GitHub Actions the workflows use up to date. The workflows also refer to actions by tag, and a tag can be moved to different code later.
Part of CHA-7207. The process is described in DevSecOps for SDK repositories. The client SDK repos get the same setup, for example in stream-chat-swift#4446.
Solution
dependency_review.yml): a check on every pull request that fails when the PR adds or changes a dependency to a version with a known vulnerability. It also shows the OpenSSF Scorecard of each changed dependency and warns below 3. It calls the GitHub API, so it runs on thegithub-public-amd64runner group.dependabot.yml): weekly updates of the GitHub Actions in one grouped PR, with achoretitle so it passes the PR title check. A release must be 4 days old before it is proposed. Ruby gems get security updates only: their entry setsopen-pull-requests-limit: 0, which switches the routine version updates off and leaves the security ones.actions/checkoutv4 and v5 to v7.0.1. Every other action stays on the major version it had and only moves to its latest release.github-public-amd64runner group toubuntu-26.04:ci.yml(tests-passed). Jobs that call the GitHub API, and every job in the release workflow, stay where they were.How to verify
Dependency Reviewruns on this PR.regen.ymlandrelease.ymlchanged too and do not run on a PR. Watch their next run.