From be0af45d71a91aefce2842f45a6f6e4952fd6cf5 Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Thu, 3 Dec 2026 12:09:09 +0000 Subject: [PATCH 1/3] ci: add Dependabot and dependency review, pin and align GitHub Actions --- .github/actions/ruby-cache/action.yml | 4 +- .github/actions/setup-ios-runtime/action.yml | 4 +- .github/dependabot.yml | 43 ++++++++++ .github/workflows/build-ios-spm.yml | 8 +- .github/workflows/changelog-preview.yml | 8 +- .github/workflows/check-pr.yml | 4 +- .github/workflows/dependency-review.yml | 17 ++++ .github/workflows/e2e-test-cron.yml | 87 ++++++++++---------- .github/workflows/e2e-test.yml | 70 ++++++++-------- .github/workflows/lint-pr-title.yml | 2 +- .github/workflows/release.yml | 4 +- .github/workflows/sample-distribution.yml | 18 ++-- .github/workflows/sdk-size-metrics.yml | 6 +- 13 files changed, 170 insertions(+), 105 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/dependency-review.yml diff --git a/.github/actions/ruby-cache/action.yml b/.github/actions/ruby-cache/action.yml index 0636077792..cb1aca834a 100644 --- a/.github/actions/ruby-cache/action.yml +++ b/.github/actions/ruby-cache/action.yml @@ -7,8 +7,8 @@ runs: # runner can't write to. Ruby 3.1 used ~/.local/share. Keep the spec cache in the job's temp dir. - shell: bash run: echo "GEM_SPEC_CACHE=${{ runner.temp }}/gem-specs" >> "$GITHUB_ENV" - - uses: ruby/setup-ruby@v1 + - uses: ruby/setup-ruby@13841a643d859a0b8166ebb0211afbf488121be4 # v1.346.0 with: - ruby-version: 3.3 + ruby-version: 3.3.14 bundler-cache: true working-directory: examples/SampleApp diff --git a/.github/actions/setup-ios-runtime/action.yml b/.github/actions/setup-ios-runtime/action.yml index b116785d20..5013eaa286 100644 --- a/.github/actions/setup-ios-runtime/action.yml +++ b/.github/actions/setup-ios-runtime/action.yml @@ -14,9 +14,11 @@ runs: shell: bash run: | IPSW_VERSION=3.1.592 + IPSW_SHA256=ea808b07a5f871f5cc86f86a49d907bc0b6a9e8e92efcacd4adb9e453509b1c4 FILE="ipsw_${IPSW_VERSION}_macOS_universal.tar.gz" if ! command -v ipsw >/dev/null; then - wget -q "https://github.com/blacktop/ipsw/releases/download/v${IPSW_VERSION}/${FILE}" + wget -q "https://github.com/blacktop/ipsw/releases/download/v${IPSW_VERSION}/${FILE}" -O "$FILE" + shasum -a 256 -c - <<< "$IPSW_SHA256 $FILE" tar -xzf "$FILE" chmod +x ipsw sudo mv ipsw /usr/local/bin/ diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..df7c15f73e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,43 @@ +version: 2 + +updates: + - package-ecosystem: github-actions + directories: + - / + - /.github/actions/* + schedule: + interval: weekly + cooldown: + default-days: 7 + groups: + github-actions: + patterns: ["*"] + commit-message: + prefix: chore + include: scope + + - package-ecosystem: npm + directory: / + schedule: + interval: weekly + cooldown: + default-days: 7 + groups: + npm: + patterns: ["*"] + commit-message: + prefix: chore + include: scope + + - package-ecosystem: bundler + directory: /examples/SampleApp + schedule: + interval: weekly + cooldown: + default-days: 7 + groups: + bundler: + patterns: ["*"] + commit-message: + prefix: chore + include: scope diff --git a/.github/workflows/build-ios-spm.yml b/.github/workflows/build-ios-spm.yml index f7d7d0a0c3..6381fe9bf8 100644 --- a/.github/workflows/build-ios-spm.yml +++ b/.github/workflows/build-ios-spm.yml @@ -35,14 +35,14 @@ jobs: LANG: en_US.UTF-8 LC_ALL: en_US.UTF-8 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Use Node.js 24.x - uses: actions/setup-node@v6 + uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0 with: node-version: 24.x cache: 'yarn' cache-dependency-path: 'yarn.lock' - - uses: maxim-lobanov/setup-xcode@v1 + - uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1.7.0 with: xcode-version: '26.2' - uses: ./.github/actions/ruby-cache @@ -73,7 +73,7 @@ jobs: build 2>&1 | tee build-Release.log - name: Upload logs if: failure() - uses: actions/upload-artifact@v6 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: ios-spm-SampleApp-logs path: | diff --git a/.github/workflows/changelog-preview.yml b/.github/workflows/changelog-preview.yml index ac08c070c5..0593f9e0af 100644 --- a/.github/workflows/changelog-preview.yml +++ b/.github/workflows/changelog-preview.yml @@ -20,7 +20,7 @@ jobs: matrix: node-version: [ 24.x ] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: develop # pulls all commits (needed for semantic release to correctly version) @@ -28,7 +28,7 @@ jobs: # pulls all tags (needed for semantic release to correctly version) - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v6 + uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0 with: node-version: ${{ matrix.node-version }} registry-url: 'https://registry.npmjs.org' @@ -60,12 +60,12 @@ jobs: echo "CHANGELOG_PREVIEW_EOF" } >> "$GITHUB_OUTPUT" fi - - uses: marocchino/sticky-pull-request-comment@v3 + - uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5 if: steps.generate_changelog.outputs.exists == 'true' with: header: changelog_preview message: ${{ steps.generate_changelog.outputs.preview }} - - uses: marocchino/sticky-pull-request-comment@v3 + - uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5 if: steps.generate_changelog.outputs.exists != 'true' with: header: changelog_preview diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml index 04ed34cfed..83d000b232 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml @@ -22,12 +22,12 @@ jobs: matrix: node-version: [24.x] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: # Disabling shallow clone is recommended for improving relevancy of reporting fetch-depth: 0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v6 + uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0 with: node-version: ${{ matrix.node-version }} cache: 'yarn' diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml new file mode 100644 index 0000000000..28464e0458 --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,17 @@ +name: Dependency Review + +on: + pull_request: + +permissions: + contents: read + +jobs: + dependency-review: + name: Dependency Review + runs-on: { group: github-public-amd64 } + steps: + - uses: actions/dependency-review-action@bbc44d14a204704ccc493733616cd1e93a0321ec # v5.0.1 + with: + show-openssf-scorecard: true + warn-on-openssf-scorecard-level: 3 diff --git a/.github/workflows/e2e-test-cron.yml b/.github/workflows/e2e-test-cron.yml index 3cae59cb48..f214dcdd8e 100644 --- a/.github/workflows/e2e-test-cron.yml +++ b/.github/workflows/e2e-test-cron.yml @@ -66,13 +66,13 @@ jobs: APP_PATH: examples/E2ETestApp/ios/build/detox/Build/Products/Release-iphonesimulator/E2ETestApp.app MOCK_SERVER_BUNDLE_PATH: ${{ github.workspace }}/../mock-server-gems steps: - - uses: actions/checkout@v6 - - uses: actions/setup-node@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0 with: node-version: 24.x cache: "yarn" cache-dependency-path: "yarn.lock" - - uses: maxim-lobanov/setup-xcode@v1 + - uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1.7.0 with: xcode-version: ${{ env.XCODE_VERSION }} - uses: ./.github/actions/ruby-cache @@ -101,7 +101,7 @@ jobs: - name: Restore node_modules id: node-modules - uses: actions/cache/restore@v5 + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.NODE_MODULES_PATHS }} key: ${{ runner.os }}-e2e-node-modules-${{ hashFiles('yarn.lock') }} @@ -109,7 +109,7 @@ jobs: run: yarn workspaces focus e2etestapp - name: Save node_modules if: steps.node-modules.outputs.cache-hit != 'true' - uses: actions/cache/save@v5 + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.NODE_MODULES_PATHS }} key: ${{ steps.node-modules.outputs.cache-primary-key }} @@ -117,13 +117,13 @@ jobs: # --- App binary: rebuilt only when the app or SDK sources change, not for test-only changes --- - name: Restore app id: app - uses: actions/cache/restore@v5 + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.APP_PATH }} key: e2e-ios-app-xcode${{ env.XCODE_VERSION }}-${{ hashFiles('yarn.lock', 'package/package.json', 'package/src/**', 'package/shared-native/**', 'package/native-package/package.json', 'package/native-package/src/**', 'package/native-package/ios/**', 'package/native-package/*.podspec', 'examples/SampleApp/Gemfile.lock', 'examples/E2ETestApp/*.js', '!examples/E2ETestApp/.detoxrc.js', 'examples/E2ETestApp/*.json', 'examples/E2ETestApp/*.tsx', 'examples/E2ETestApp/src/**', 'examples/E2ETestApp/ios/**', '!examples/E2ETestApp/ios/build/**', '!examples/E2ETestApp/ios/Pods/**') }} - name: Set up ccache if: steps.app.outputs.cache-hit != 'true' - uses: hendrikmuhs/ccache-action@v1.2 + uses: hendrikmuhs/ccache-action@e91f31892a1d1b8c44424b1a94c0b7f52d337168 # v1.2.26 with: key: e2e-ios-xcode${{ env.XCODE_VERSION }} max-size: 1500M @@ -134,7 +134,7 @@ jobs: run: echo "CCACHE_BINARY=$(which ccache)" >> "$GITHUB_ENV" - name: Cache pods if: steps.app.outputs.cache-hit != 'true' - uses: actions/cache@v5 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: examples/E2ETestApp/ios/Pods key: ${{ runner.os }}-e2e-pods-${{ hashFiles('examples/E2ETestApp/ios/Podfile.lock') }} @@ -150,7 +150,7 @@ jobs: run: yarn e2e:build -c ios.sim.release - name: Save app if: steps.app.outputs.cache-hit != 'true' - uses: actions/cache/save@v5 + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.APP_PATH }} key: ${{ steps.app.outputs.cache-primary-key }} @@ -160,7 +160,7 @@ jobs: run: brew tap wix/brew && brew trust --formula wix/brew/applesimutils && brew install wix/brew/applesimutils - name: Restore Detox framework id: detox-framework - uses: actions/cache/restore@v5 + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/Library/Detox key: ${{ runner.os }}-detox-framework-xcode${{ env.XCODE_VERSION }}-${{ hashFiles('yarn.lock') }} @@ -171,7 +171,7 @@ jobs: run: yarn detox build-framework-cache - name: Save Detox framework if: steps.detox-framework.outputs.cache-hit != 'true' - uses: actions/cache/save@v5 + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/Library/Detox key: ${{ steps.detox-framework.outputs.cache-primary-key }} @@ -179,7 +179,7 @@ jobs: id: mock-server run: echo "sha=$(git ls-remote https://github.com/GetStream/stream-chat-test-mock-server "refs/heads/$MOCK_SERVER_BRANCH" | cut -f1)" >> "$GITHUB_OUTPUT" - name: Cache mock server gems - uses: actions/cache@v5 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.MOCK_SERVER_BUNDLE_PATH }} key: ${{ runner.os }}-mock-server-gems-${{ steps.mock-server.outputs.sha }} @@ -213,7 +213,7 @@ jobs: if: env.LAUNCH_ID != '' && cancelled() working-directory: examples/SampleApp run: bundle exec fastlane allure_launch_removal launch_id:"$LAUNCH_ID" - - uses: actions/upload-artifact@v6 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 if: failure() with: name: e2e-ios-nightly-logs-${{ matrix.ios }} @@ -229,7 +229,7 @@ jobs: runs-on: { group: github-public-amd64 } timeout-minutes: 30 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Enable KVM run: | echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules @@ -239,7 +239,7 @@ jobs: id: sdk - name: Look up the AVD id: avd - uses: actions/cache/restore@v5 + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: | ~/.android/avd/* @@ -269,7 +269,7 @@ jobs: run: while pgrep -f qemu-system > /dev/null; do sleep 1; done - name: Save the AVD if: steps.avd.outputs.cache-hit != 'true' - uses: actions/cache/save@v5 + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: | ~/.android/avd/* @@ -294,21 +294,21 @@ jobs: # The emulator is x86_64: skip compiling native code for the other ABIs. ORG_GRADLE_PROJECT_reactNativeArchitectures: x86_64 steps: - - uses: actions/checkout@v6 - - uses: actions/setup-node@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0 with: node-version: 24.x cache: "yarn" cache-dependency-path: "yarn.lock" - - uses: actions/setup-java@v5 + - uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0 with: distribution: "zulu" java-version: "21" - - uses: gradle/actions/setup-gradle@v4 + - uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2 - name: Restore node_modules id: node-modules - uses: actions/cache/restore@v5 + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.NODE_MODULES_PATHS }} key: ${{ runner.os }}-e2e-node-modules-${{ hashFiles('yarn.lock') }} @@ -316,7 +316,7 @@ jobs: run: yarn workspaces focus e2etestapp - name: Save node_modules if: steps.node-modules.outputs.cache-hit != 'true' - uses: actions/cache/save@v5 + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.NODE_MODULES_PATHS }} key: ${{ steps.node-modules.outputs.cache-primary-key }} @@ -328,7 +328,7 @@ jobs: run: yarn e2e:build -c android.att.release || { sleep 60; yarn e2e:build -c android.att.release; } env: E2E_COVERAGE: ${{ matrix.coverage && '1' || '0' }} - - uses: actions/upload-artifact@v6 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: e2e-android-apks-${{ matrix.coverage && 'coverage' || 'plain' }} path: ${{ env.APK_PATHS }} @@ -368,26 +368,26 @@ jobs: DETOX_ADB_NAME: "emulator-5554" MOCK_SERVER_BUNDLE_PATH: ${{ github.workspace }}/../mock-server-gems steps: - - uses: actions/checkout@v6 - - uses: actions/setup-node@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0 with: node-version: 24.x cache: "yarn" cache-dependency-path: "yarn.lock" - - uses: actions/setup-java@v5 + - uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0 with: distribution: "zulu" java-version: "21" - uses: ./.github/actions/ruby-cache - name: Restore node_modules - uses: actions/cache/restore@v5 + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.NODE_MODULES_PATHS }} key: ${{ runner.os }}-e2e-node-modules-${{ hashFiles('yarn.lock') }} - name: Install dependencies run: yarn workspaces focus e2etestapp - - uses: actions/download-artifact@v7 + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: e2e-android-apks-${{ matrix.coverage && 'coverage' || 'plain' }} path: examples/E2ETestApp/android/app/build/outputs/apk @@ -403,7 +403,7 @@ jobs: id: mock-server run: echo "sha=$(git ls-remote https://github.com/GetStream/stream-chat-test-mock-server "refs/heads/$MOCK_SERVER_BRANCH" | cut -f1)" >> "$GITHUB_OUTPUT" - name: Cache mock server gems - uses: actions/cache@v5 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.MOCK_SERVER_BUNDLE_PATH }} key: ${{ runner.os }}-mock-server-gems-${{ steps.mock-server.outputs.sha }} @@ -447,7 +447,7 @@ jobs: if: ${{ !cancelled() && steps.failed-tests.outcome == 'success' }} working-directory: examples/E2ETestApp run: tar -czf e2e-coverage-batch-${{ matrix.batch }}.tgz e2e-coverage - - uses: actions/upload-artifact@v6 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 if: ${{ !cancelled() && steps.failed-tests.outcome == 'success' }} with: name: e2e-coverage-batch-${{ matrix.batch }} @@ -470,7 +470,7 @@ jobs: free -m df -h ls -la /tmp/android-runner 2>/dev/null || true - - uses: actions/upload-artifact@v6 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 if: failure() with: name: e2e-nightly-android-${{ matrix.api-level }}-batch-${{ matrix.batch }} @@ -488,9 +488,9 @@ jobs: runs-on: { group: github-public-amd64 } timeout-minutes: 15 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: ./.github/actions/ruby-cache - - uses: actions/download-artifact@v7 + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: pattern: e2e-coverage-batch-* path: examples/E2ETestApp/batches @@ -503,7 +503,7 @@ jobs: - name: Build the coverage map working-directory: examples/SampleApp run: bundle exec fastlane build_e2e_coverage_map batch_count:4 - - uses: actions/upload-artifact@v6 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: e2e-coverage-map path: examples/E2ETestApp/e2e_coverage_map.json @@ -517,11 +517,14 @@ jobs: # always(): a job that hit its timeout is `cancelled`, which failure() alone doesn't see. if: always() && github.event_name == 'schedule' && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) steps: - - uses: 8398a7/action-slack@v3 - with: - status: cancelled - text: 'You shall not pass!' - job_name: '${{ github.workflow }}: ${{ github.job }}' - fields: repo,commit,author,workflow - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_NIGHTLY_CHECKS }} + - uses: slackapi/slack-github-action@0bc3581177d9a0f8d555e07689384b376528e8fa # v4.1.0 + with: + webhook: ${{ secrets.SLACK_WEBHOOK_NIGHTLY_CHECKS }} + webhook-type: incoming-webhook + payload: | + text: ${{ toJSON('You shall not pass!') }} + attachments: + - color: danger + title: ${{ toJSON(format('{0} failed', github.workflow)) }} + text: ${{ toJSON(format('Repository: {0} | Commit: {1} | Actor: {2}', github.repository, github.sha, github.actor)) }} + footer: ${{ toJSON(format('{0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id)) }} diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index d46c72f325..4cf08e48b0 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -56,7 +56,7 @@ jobs: required: ${{ steps.check.outputs.required }} e2e_batches: ${{ steps.check.outputs.e2e_batches }} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: # The pull request's merge commit and its base, which the impact analysis diffs. fetch-depth: 2 @@ -65,7 +65,7 @@ jobs: id: check working-directory: examples/SampleApp run: bundle exec fastlane e2e_check_required - - uses: actions/upload-artifact@v6 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 if: steps.check.outputs.required == 'true' with: name: e2e-selection @@ -83,13 +83,13 @@ jobs: APP_PATH: examples/E2ETestApp/ios/build/detox/Build/Products/Release-iphonesimulator/E2ETestApp.app MOCK_SERVER_BUNDLE_PATH: ${{ github.workspace }}/../mock-server-gems steps: - - uses: actions/checkout@v6 - - uses: actions/setup-node@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0 with: node-version: 24.x cache: "yarn" cache-dependency-path: "yarn.lock" - - uses: maxim-lobanov/setup-xcode@v1 + - uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1.7.0 with: xcode-version: ${{ env.XCODE_VERSION }} # A fresh simulator takes minutes to boot on CI; boot it now so that overlaps with setup. @@ -108,7 +108,7 @@ jobs: - name: Restore node_modules id: node-modules - uses: actions/cache/restore@v5 + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.NODE_MODULES_PATHS }} key: ${{ runner.os }}-e2e-node-modules-${{ hashFiles('yarn.lock') }} @@ -116,7 +116,7 @@ jobs: run: yarn workspaces focus e2etestapp - name: Save node_modules if: steps.node-modules.outputs.cache-hit != 'true' - uses: actions/cache/save@v5 + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.NODE_MODULES_PATHS }} key: ${{ steps.node-modules.outputs.cache-primary-key }} @@ -124,13 +124,13 @@ jobs: # --- App binary: rebuilt only when the app or SDK sources change, not for test-only changes --- - name: Restore app id: app - uses: actions/cache/restore@v5 + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.APP_PATH }} key: e2e-ios-app-xcode${{ env.XCODE_VERSION }}-${{ hashFiles('yarn.lock', 'package/package.json', 'package/src/**', 'package/shared-native/**', 'package/native-package/package.json', 'package/native-package/src/**', 'package/native-package/ios/**', 'package/native-package/*.podspec', 'examples/SampleApp/Gemfile.lock', 'examples/E2ETestApp/*.js', '!examples/E2ETestApp/.detoxrc.js', 'examples/E2ETestApp/*.json', 'examples/E2ETestApp/*.tsx', 'examples/E2ETestApp/src/**', 'examples/E2ETestApp/ios/**', '!examples/E2ETestApp/ios/build/**', '!examples/E2ETestApp/ios/Pods/**') }} - name: Set up ccache if: steps.app.outputs.cache-hit != 'true' - uses: hendrikmuhs/ccache-action@v1.2 + uses: hendrikmuhs/ccache-action@e91f31892a1d1b8c44424b1a94c0b7f52d337168 # v1.2.26 with: key: e2e-ios-xcode${{ env.XCODE_VERSION }} max-size: 1500M @@ -141,7 +141,7 @@ jobs: run: echo "CCACHE_BINARY=$(which ccache)" >> "$GITHUB_ENV" - name: Cache pods if: steps.app.outputs.cache-hit != 'true' - uses: actions/cache@v5 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: examples/E2ETestApp/ios/Pods key: ${{ runner.os }}-e2e-pods-${{ hashFiles('examples/E2ETestApp/ios/Podfile.lock') }} @@ -157,7 +157,7 @@ jobs: run: yarn e2e:build -c ios.sim.release - name: Save app if: steps.app.outputs.cache-hit != 'true' - uses: actions/cache/save@v5 + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.APP_PATH }} key: ${{ steps.app.outputs.cache-primary-key }} @@ -167,7 +167,7 @@ jobs: run: brew tap wix/brew && brew trust --formula wix/brew/applesimutils && brew install wix/brew/applesimutils - name: Restore Detox framework id: detox-framework - uses: actions/cache/restore@v5 + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/Library/Detox key: ${{ runner.os }}-detox-framework-xcode${{ env.XCODE_VERSION }}-${{ hashFiles('yarn.lock') }} @@ -178,7 +178,7 @@ jobs: run: yarn detox build-framework-cache - name: Save Detox framework if: steps.detox-framework.outputs.cache-hit != 'true' - uses: actions/cache/save@v5 + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/Library/Detox key: ${{ steps.detox-framework.outputs.cache-primary-key }} @@ -186,7 +186,7 @@ jobs: id: mock-server run: echo "sha=$(git ls-remote https://github.com/GetStream/stream-chat-test-mock-server "refs/heads/$MOCK_SERVER_BRANCH" | cut -f1)" >> "$GITHUB_OUTPUT" - name: Cache mock server gems - uses: actions/cache@v5 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.MOCK_SERVER_BUNDLE_PATH }} key: ${{ runner.os }}-mock-server-gems-${{ steps.mock-server.outputs.sha }} @@ -207,7 +207,7 @@ jobs: env: # Names the launch after the pull request and tags it with its labels. GITHUB_EVENT: ${{ toJson(github.event) }} - - uses: actions/download-artifact@v7 + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: e2e-selection path: examples/E2ETestApp @@ -222,7 +222,7 @@ jobs: if: env.LAUNCH_ID != '' && cancelled() working-directory: examples/SampleApp run: bundle exec fastlane allure_launch_removal launch_id:"$LAUNCH_ID" - - uses: actions/upload-artifact@v6 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 if: failure() with: name: e2e-ios-logs @@ -243,26 +243,26 @@ jobs: # The emulator is x86_64: skip compiling native code for the other ABIs. ORG_GRADLE_PROJECT_reactNativeArchitectures: x86_64 steps: - - uses: actions/checkout@v6 - - uses: actions/setup-node@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0 with: node-version: 24.x cache: "yarn" cache-dependency-path: "yarn.lock" - - uses: actions/setup-java@v5 + - uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0 with: distribution: "zulu" java-version: "21" # Caches Gradle's dependencies, wrapper and build cache. It only writes on the default branch by # default, and this workflow doesn't run there, so let PR runs write: their reruns reuse it. - - uses: gradle/actions/setup-gradle@v4 + - uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2 with: cache-read-only: false - uses: ./.github/actions/ruby-cache - name: Restore node_modules id: node-modules - uses: actions/cache/restore@v5 + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.NODE_MODULES_PATHS }} key: ${{ runner.os }}-e2e-node-modules-${{ hashFiles('yarn.lock') }} @@ -270,7 +270,7 @@ jobs: run: yarn workspaces focus e2etestapp - name: Save node_modules if: steps.node-modules.outputs.cache-hit != 'true' - uses: actions/cache/save@v5 + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.NODE_MODULES_PATHS }} key: ${{ steps.node-modules.outputs.cache-primary-key }} @@ -278,7 +278,7 @@ jobs: # --- App binaries: rebuilt only when the app or SDK sources change, not for test-only changes --- - name: Restore APKs id: apk - uses: actions/cache/restore@v5 + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.APK_PATHS }} key: e2e-android-apk-${{ hashFiles('yarn.lock', 'package/package.json', 'package/src/**', 'package/shared-native/**', 'package/native-package/package.json', 'package/native-package/src/**', 'package/native-package/android/**', '!package/native-package/android/build/**', 'examples/E2ETestApp/*.js', '!examples/E2ETestApp/.detoxrc.js', 'examples/E2ETestApp/*.json', 'examples/E2ETestApp/*.tsx', 'examples/E2ETestApp/src/**', 'examples/E2ETestApp/android/**', '!examples/E2ETestApp/android/**/build/**', '!examples/E2ETestApp/android/.gradle/**') }} @@ -289,11 +289,11 @@ jobs: run: yarn e2e:build -c android.att.release || { sleep 60; yarn e2e:build -c android.att.release; } - name: Save APKs if: steps.apk.outputs.cache-hit != 'true' - uses: actions/cache/save@v5 + uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.APK_PATHS }} key: ${{ steps.apk.outputs.cache-primary-key }} - - uses: actions/upload-artifact@v6 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: e2e-android-apks path: ${{ env.APK_PATHS }} @@ -307,7 +307,7 @@ jobs: outputs: launch_id: ${{ steps.launch.outputs.launch_id }} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 2 - uses: ./.github/actions/ruby-cache @@ -338,25 +338,25 @@ jobs: MOCK_SERVER_BUNDLE_PATH: ${{ github.workspace }}/../mock-server-gems LAUNCH_ID: ${{ needs.android-allure-launch.outputs.launch_id }} steps: - - uses: actions/checkout@v6 - - uses: actions/setup-node@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0 with: node-version: 24.x cache: "yarn" cache-dependency-path: "yarn.lock" - - uses: actions/setup-java@v5 + - uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0 with: distribution: "zulu" java-version: "21" - uses: ./.github/actions/ruby-cache - name: Restore node_modules - uses: actions/cache/restore@v5 + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.NODE_MODULES_PATHS }} key: ${{ runner.os }}-e2e-node-modules-${{ hashFiles('yarn.lock') }} - name: Install dependencies run: yarn workspaces focus e2etestapp - - uses: actions/download-artifact@v7 + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: e2e-android-apks path: examples/E2ETestApp/android/app/build/outputs/apk @@ -370,14 +370,14 @@ jobs: id: mock-server run: echo "sha=$(git ls-remote https://github.com/GetStream/stream-chat-test-mock-server "refs/heads/$MOCK_SERVER_BRANCH" | cut -f1)" >> "$GITHUB_OUTPUT" - name: Cache mock server gems - uses: actions/cache@v5 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ${{ env.MOCK_SERVER_BUNDLE_PATH }} key: ${{ runner.os }}-mock-server-gems-${{ steps.mock-server.outputs.sha }} restore-keys: | ${{ runner.os }}-mock-server-gems- - - uses: actions/download-artifact@v7 + - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: e2e-selection path: examples/E2ETestApp @@ -387,7 +387,7 @@ jobs: # Saved by the nightly run. A miss (e.g. after an emulator update) cold boots as before. - name: Restore the AVD id: avd - uses: actions/cache/restore@v5 + uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: | ~/.android/avd/* @@ -425,7 +425,7 @@ jobs: free -m df -h ls -la /tmp/android-runner 2>/dev/null || true - - uses: actions/upload-artifact@v6 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 if: failure() with: name: e2e-android-logs-${{ matrix.batch }} diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml index d375563605..50a4e6962a 100644 --- a/.github/workflows/lint-pr-title.yml +++ b/.github/workflows/lint-pr-title.yml @@ -13,7 +13,7 @@ jobs: permissions: pull-requests: read steps: - - uses: amannn/action-semantic-pull-request@v6 + - uses: amannn/action-semantic-pull-request@66e72920af32222769c386d81f89656ebcb6d6d5 # v6.1.4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d62281edbc..017aaecb2a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,7 @@ jobs: node-version: [24.x] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: '0' @@ -35,7 +35,7 @@ jobs: run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v6 + uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0 with: node-version: ${{ matrix.node-version }} registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/sample-distribution.yml b/.github/workflows/sample-distribution.yml index 1320739a87..1b94107776 100644 --- a/.github/workflows/sample-distribution.yml +++ b/.github/workflows/sample-distribution.yml @@ -37,28 +37,28 @@ jobs: # Short-lived, read-only token for fastlane match to clone ios-certificates. - name: Create certificates token id: certificates-token - uses: actions/create-github-app-token@v3 + uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0 with: client-id: ${{ vars.JS_CI_BOT_CLIENT_ID }} private-key: ${{ secrets.JS_CI_BOT_PRIVATE_KEY }} owner: GetStream repositories: ios-certificates permission-contents: read - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v6 + uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0 with: node-version: ${{ matrix.node-version }} cache: 'yarn' cache-dependency-path: 'yarn.lock' - - uses: maxim-lobanov/setup-xcode@v1 + - uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1.7.0 with: xcode-version: '27.2' # Update as needed - uses: ./.github/actions/ruby-cache - name: Install && Build - SDK and Sample App uses: ./.github/actions/install-and-build-sdk - name: Cache iOS pods - uses: actions/cache@v5 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: examples/SampleApp/ios/Pods key: ${{ runner.os }}-pods-${{ hashFiles('examples/SampleApp/ios/Podfile.lock') }} @@ -90,20 +90,20 @@ jobs: matrix: node-version: [24.x] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v6 + uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0 with: node-version: ${{ matrix.node-version }} cache: 'yarn' cache-dependency-path: 'yarn.lock' - - uses: actions/setup-java@v5 + - uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0 with: distribution: 'zulu' java-version: '21' check-latest: true - name: Setup Android SDK - uses: amyu/setup-android@v5 + uses: amyu/setup-android@3fe49086b1abd7c9ef865120d5d4d486fe55ba98 # v5 - uses: ./.github/actions/ruby-cache - name: Install && Build - SDK and Sample App diff --git a/.github/workflows/sdk-size-metrics.yml b/.github/workflows/sdk-size-metrics.yml index ffa97f75f2..5abf024dc1 100644 --- a/.github/workflows/sdk-size-metrics.yml +++ b/.github/workflows/sdk-size-metrics.yml @@ -31,7 +31,7 @@ jobs: # Short-lived token for pushing the size benchmark to stream-internal-metrics. - name: Create metrics token id: metrics-token - uses: actions/create-github-app-token@v3 + uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0 with: client-id: ${{ vars.JS_CI_BOT_CLIENT_ID }} private-key: ${{ secrets.JS_CI_BOT_PRIVATE_KEY }} @@ -39,11 +39,11 @@ jobs: repositories: stream-internal-metrics permission-contents: write - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: ./.github/actions/ruby-cache - - uses: actions/setup-node@v6 + - uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0 with: node-version: 24.x cache: 'yarn' From fa3b74830aebe054493369bd3f08963dfe2a6c34 Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Thu, 3 Dec 2026 15:13:51 +0000 Subject: [PATCH 2/3] ci: shorten the Dependabot cooldown and keep npm to security updates --- .github/dependabot.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index df7c15f73e..b24fde080d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,7 +8,7 @@ updates: schedule: interval: weekly cooldown: - default-days: 7 + default-days: 4 groups: github-actions: patterns: ["*"] @@ -16,28 +16,22 @@ updates: prefix: chore include: scope + # Version updates are off for npm packages: only security updates are proposed. - package-ecosystem: npm directory: / schedule: interval: weekly - cooldown: - default-days: 7 - groups: - npm: - patterns: ["*"] + open-pull-requests-limit: 0 commit-message: prefix: chore include: scope + # Version updates are off for Ruby gems: only security updates are proposed. - package-ecosystem: bundler directory: /examples/SampleApp schedule: interval: weekly - cooldown: - default-days: 7 - groups: - bundler: - patterns: ["*"] + open-pull-requests-limit: 0 commit-message: prefix: chore include: scope From 09f5ad1ad074976dd86070c74b5433949dfb1cd2 Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Thu, 3 Dec 2026 17:22:30 +0000 Subject: [PATCH 3/3] ci: add a timeout and a step name to the dependency review workflow --- .github/workflows/dependency-review.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 28464e0458..f04cc058ab 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -9,9 +9,12 @@ permissions: jobs: dependency-review: name: Dependency Review - runs-on: { group: github-public-amd64 } + runs-on: + group: github-public-amd64 + timeout-minutes: 5 steps: - - uses: actions/dependency-review-action@bbc44d14a204704ccc493733616cd1e93a0321ec # v5.0.1 - with: - show-openssf-scorecard: true - warn-on-openssf-scorecard-level: 3 + - name: Dependency Review + uses: actions/dependency-review-action@bbc44d14a204704ccc493733616cd1e93a0321ec # v5.0.1 + with: + show-openssf-scorecard: true + warn-on-openssf-scorecard-level: 3