diff --git a/.github/actions/ruby-cache/action.yml b/.github/actions/ruby-cache/action.yml index c3639b05cb..64965c14f0 100644 --- a/.github/actions/ruby-cache/action.yml +++ b/.github/actions/ruby-cache/action.yml @@ -12,7 +12,7 @@ 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 if: runner.os != 'macOS' || runner.environment != 'self-hosted' with: ruby-version: ${{ inputs.ruby-version }} 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..b24fde080d --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,37 @@ +version: 2 + +updates: + - package-ecosystem: github-actions + directories: + - / + - /.github/actions/* + schedule: + interval: weekly + cooldown: + default-days: 4 + groups: + github-actions: + patterns: ["*"] + commit-message: + prefix: chore + include: scope + + # Version updates are off for npm packages: only security updates are proposed. + - package-ecosystem: npm + directory: / + schedule: + interval: weekly + 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 + open-pull-requests-limit: 0 + commit-message: + prefix: chore + include: scope diff --git a/.github/workflows/build-ios-spm.yml b/.github/workflows/build-ios-spm.yml index b154366e1e..1a32a643f2 100644 --- a/.github/workflows/build-ios-spm.yml +++ b/.github/workflows/build-ios-spm.yml @@ -36,14 +36,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 @@ -74,7 +74,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..f04cc058ab --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,20 @@ +name: Dependency Review + +on: + pull_request: + +permissions: + contents: read + +jobs: + dependency-review: + name: Dependency Review + runs-on: + group: github-public-amd64 + timeout-minutes: 5 + steps: + - name: Dependency Review + 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 3e5a806010..5003346163 100644 --- a/.github/workflows/e2e-test-cron.yml +++ b/.github/workflows/e2e-test-cron.yml @@ -68,13 +68,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 @@ -103,7 +103,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') }} @@ -111,7 +111,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 }} @@ -119,13 +119,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 @@ -136,7 +136,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') }} @@ -152,7 +152,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 }} @@ -162,7 +162,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') }} @@ -173,7 +173,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 }} @@ -181,7 +181,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 }} @@ -215,7 +215,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 }} @@ -231,7 +231,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 @@ -241,7 +241,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/* @@ -271,7 +271,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/* @@ -296,21 +296,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') }} @@ -318,7 +318,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 }} @@ -330,7 +330,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 }} @@ -370,26 +370,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 @@ -405,7 +405,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 }} @@ -449,7 +449,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 }} @@ -472,7 +472,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 }} @@ -490,9 +490,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 @@ -505,7 +505,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 @@ -519,11 +519,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 d75132dee3..b875ab18a8 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 @@ -85,13 +85,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. @@ -110,7 +110,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') }} @@ -118,7 +118,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 }} @@ -126,13 +126,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 @@ -143,7 +143,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') }} @@ -159,7 +159,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 }} @@ -169,7 +169,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') }} @@ -180,7 +180,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 }} @@ -188,7 +188,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 }} @@ -209,7 +209,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 @@ -224,7 +224,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 @@ -245,26 +245,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') }} @@ -272,7 +272,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 }} @@ -280,7 +280,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/**') }} @@ -291,11 +291,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 }} @@ -309,7 +309,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 @@ -340,25 +340,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 @@ -372,14 +372,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 @@ -389,7 +389,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/* @@ -427,7 +427,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 2fd7c05349..42e3c6a10e 100644 --- a/.github/workflows/sample-distribution.yml +++ b/.github/workflows/sample-distribution.yml @@ -38,21 +38,21 @@ 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: # The newest Xcode on the scaleway-macos image. App Store Connect requires the iOS 27 SDK # from April 2027 (ITMS-90725), so the image needs Xcode 27 before then. @@ -61,7 +61,7 @@ jobs: - 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') }} @@ -93,20 +93,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'