Skip to content

ci: add Dependabot and dependency review, pin and align GitHub Actions - #4049

Open
testableapple wants to merge 4 commits into
developfrom
ci/dependabot-dependency-review
Open

testableapple wants to merge 4 commits into
developfrom
ci/dependabot-dependency-review

Conversation

@testableapple

@testableapple testableapple commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

🎯 Goal

Stop pull requests from adding dependencies with known vulnerabilities, keep dependencies and GitHub Actions up to date, and make sure CI runs the actions we reviewed. The iOS repos get the same setup, for example in stream-chat-swift#4446.

Part of CHA-7207. The process is described in DevSecOps for SDK repositories.

🛠 Implementation details

  • Adds a Dependency Review check on every PR. It fails when the PR adds or changes a dependency to a version with a known vulnerability, shows each changed dependency's OpenSSF Scorecard and warns below 3. It calls the GitHub API, so it runs on the github-public-amd64 runner group.
  • Adds Dependabot version updates for GitHub Actions (workflows and composite actions). They run weekly, a new version must be 4 days old before it is proposed, and the updates arrive as one grouped PR. Dependabot's commits use the chore prefix, so they pass the commit lint and do not trigger a release.
  • npm packages and the SampleApp's Ruby gems get security updates only: their Dependabot entries turn version updates off and keep the chore commit prefix.
  • Pins every GitHub Action to a commit SHA, with its release in a comment, and moves the actions to their current releases. A tag that is moved later cannot change what runs, and Dependabot keeps the pins up to date.
  • Replaces the archived 8398a7/action-slack with slackapi/slack-github-action v4 in 1 step. The message text stays the same.
  • setup-ios-runtime checks the ipsw download against a SHA-256 before running it.
  • The Ruby setup is the one from develop (ci: fix the iOS jobs since the move to Scaleway runners #4046), with ruby/setup-ruby pinned to a commit.

🎨 UI Changes

None.

🧪 Testing

  • The checks on this PR are the first CI run of these changes.
  • The release, publish and scheduled workflows changed too and do not run on a PR. Watch their next run.

☑️ Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Documentation is updated
  • New code is tested in main example apps, including all possible scenarios
    • SampleApp iOS and Android
    • Expo iOS and Android

@getstream-metis

Copy link
Copy Markdown

👋 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.

  • Review this PR

Or comment /jeffery review. I'll stay quiet unless you ask.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant