The personal finance app for everyone (by everyone)
Ruby
chore(ci): pin GitHub Actions to commit SHAs (#1811) (#1870)
Jeff956c27df6b7d
diff --git a/.github/workflows/chart-ci.yml b/.github/workflows/chart-ci.ymlindex 9f3b25958b..8ca9111d4a 100644--- a/.github/workflows/chart-ci.yml+++ b/.github/workflows/chart-ci.yml@@ -20,7 +20,9 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Check version alignmentshell: bash@@ -64,10 +66,12 @@ jobs:runs-on: ubuntu-lateststeps:- name: Checkout- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Install Helm- uses: azure/setup-helm@v5+ uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0- name: Add chart dependencies repositoriesrun: |diff --git a/.github/workflows/chart-release.yml b/.github/workflows/chart-release.ymlindex e09bd94834..ee33ddccec 100644--- a/.github/workflows/chart-release.yml+++ b/.github/workflows/chart-release.yml@@ -18,7 +18,7 @@ jobs:app_version: ${{ steps.tag.outputs.app_version }}steps:- name: Checkout- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1with:fetch-depth: 0@@ -79,13 +79,13 @@ jobs:runs-on: ubuntu-lateststeps:- name: Download Helm chart artifact- uses: actions/download-artifact@v7+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0with:name: helm-chart-packagepath: ${{ runner.temp }}/helm-artifacts- name: Create chart GitHub Release- uses: softprops/action-gh-release@v3+ uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0with:tag_name: ${{ needs.prepare_release.outputs.tag_name }}name: ${{ needs.prepare_release.outputs.tag_name }}diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 02a5a640e9..d9ab5d2c4c 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -9,10 +9,12 @@ jobs:timeout-minutes: 10steps:- name: Checkout code- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Set up Ruby- uses: ruby/setup-ruby@v1+ uses: ruby/setup-ruby@97ecb7b512899eb71ab1bf2310a624c6f1589ac6 # v1.308.0with:ruby-version: .ruby-versionbundler-cache: true@@ -28,10 +30,12 @@ jobs:timeout-minutes: 10steps:- name: Checkout code- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Set up Ruby- uses: ruby/setup-ruby@v1+ uses: ruby/setup-ruby@97ecb7b512899eb71ab1bf2310a624c6f1589ac6 # v1.308.0with:ruby-version: .ruby-versionbundler-cache: true@@ -44,10 +48,12 @@ jobs:timeout-minutes: 10steps:- name: Checkout code- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Set up Ruby- uses: ruby/setup-ruby@v1+ uses: ruby/setup-ruby@97ecb7b512899eb71ab1bf2310a624c6f1589ac6 # v1.308.0with:ruby-version: .ruby-versionbundler-cache: true@@ -60,10 +66,12 @@ jobs:timeout-minutes: 10steps:- name: Checkout code- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Setup Node.js environment- uses: actions/setup-node@v5+ uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0with:node-version: "24"cache: "npm"@@ -107,10 +115,12 @@ jobs:run: sudo apt-get update && sudo apt-get install --no-install-recommends -y google-chrome-stable curl libvips postgresql-client libpq-dev- name: Checkout code- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Set up Ruby- uses: ruby/setup-ruby@v1+ uses: ruby/setup-ruby@97ecb7b512899eb71ab1bf2310a624c6f1589ac6 # v1.308.0with:ruby-version: .ruby-versionbundler-cache: true@@ -156,10 +166,12 @@ jobs:run: sudo apt-get update && sudo apt-get install --no-install-recommends -y google-chrome-stable curl libvips postgresql-client libpq-dev- name: Checkout code- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Set up Ruby- uses: ruby/setup-ruby@v1+ uses: ruby/setup-ruby@97ecb7b512899eb71ab1bf2310a624c6f1589ac6 # v1.308.0with:ruby-version: .ruby-versionbundler-cache: true@@ -174,7 +186,7 @@ jobs:run: DISABLE_PARALLELIZATION=true bin/rails test:system- name: Keep screenshots from failed system tests- uses: actions/upload-artifact@v6+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0if: failure()with:name: screenshotsdiff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.ymlindex 696a8e9f78..5fe42ea5d5 100644--- a/.github/workflows/flutter-build.yml+++ b/.github/workflows/flutter-build.yml@@ -21,16 +21,18 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Set up Java- uses: actions/setup-java@v5+ uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0with:distribution: 'temurin'java-version: '17'- name: Set up Flutter- uses: subosito/flutter-action@v2+ uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0with:flutter-version: '3.32.4'channel: 'stable'@@ -93,7 +95,7 @@ jobs:fi- name: Upload APK artifact- uses: actions/upload-artifact@v6+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0with:name: app-release-apkpath: |@@ -109,7 +111,7 @@ jobs:- name: Upload AAB artifactif: steps.check_secrets.outputs.has_keystore == 'true'- uses: actions/upload-artifact@v6+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0with:name: app-release-aabpath: mobile/build/app/outputs/bundle/release/app-release.aab@@ -122,10 +124,12 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Set up Flutter- uses: subosito/flutter-action@v2+ uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0with:flutter-version: '3.32.4'channel: 'stable'@@ -167,7 +171,7 @@ jobs:echo "For distribution, you need to configure code signing with Apple certificates" >> build/ios-build-info.txt- name: Upload iOS build artifact- uses: actions/upload-artifact@v6+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0with:name: ios-build-unsignedpath: |diff --git a/.github/workflows/google-play-upload.yml b/.github/workflows/google-play-upload.ymlindex efb762e02b..73f8613215 100644--- a/.github/workflows/google-play-upload.yml+++ b/.github/workflows/google-play-upload.yml@@ -56,7 +56,7 @@ jobs:- name: Download Android AAB artifactif: ${{ steps.check_prereqs.outputs.enabled == 'true' }}- uses: actions/download-artifact@v7+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0with:name: app-release-aabpath: ${{ runner.temp }}/android-aab@@ -98,7 +98,7 @@ jobs:- name: Upload to Google Playif: ${{ steps.check_prereqs.outputs.enabled == 'true' }}- uses: r0adkll/upload-google-play@v1+ uses: r0adkll/upload-google-play@e738b9dd8f2476ea806d921b64aacd24f34515a5 # v1.1.5with:serviceAccountJson: ${{ steps.play_creds.outputs.credentials-path }}packageName: am.sure.mobilediff --git a/.github/workflows/helm-publish.yml b/.github/workflows/helm-publish.ymlindex 9f6c6b3b6c..510c640498 100644--- a/.github/workflows/helm-publish.yml+++ b/.github/workflows/helm-publish.yml@@ -29,12 +29,13 @@ jobs:app_version: ${{ steps.version.outputs.app_version }}steps:- name: Checkout- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1with:+ persist-credentials: falsefetch-depth: 0- name: Install Helm- uses: azure/setup-helm@v5+ uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0- name: Resolve chart and app versionsid: version@@ -88,7 +89,7 @@ jobs:helm package charts/sure -d .cr-release-packages- name: Upload packaged chart artifact- uses: actions/upload-artifact@v6+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0with:name: helm-chart-packagepath: .cr-release-packages/*.tgz@@ -98,7 +99,7 @@ jobs:- name: Checkout gh-pagesif: ${{ inputs.update_gh_pages }}- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1with:ref: gh-pagespath: gh-pagesdiff --git a/.github/workflows/ios-testflight.yml b/.github/workflows/ios-testflight.ymlindex 6e058642c0..13ae2f52c0 100644--- a/.github/workflows/ios-testflight.yml+++ b/.github/workflows/ios-testflight.yml@@ -28,7 +28,9 @@ jobs:steps:- name: Checkout- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Check TestFlight credentialsid: check_prereqs@@ -91,7 +93,7 @@ jobs:xcrun --sdk iphoneos --show-sdk-version- name: Set up Flutter- uses: subosito/flutter-action@v2+ uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0if: ${{ steps.check_prereqs.outputs.enabled == 'true' }}with:flutter-version: '3.32.4'@@ -293,7 +295,7 @@ jobs:- name: Upload build artifactif: ${{ steps.check_prereqs.outputs.enabled == 'true' }}- uses: actions/upload-artifact@v6+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0with:name: ios-ipa-testflightpath: mobile/build/ios/ipa/*.ipadiff --git a/.github/workflows/llm-evals.yml b/.github/workflows/llm-evals.ymlindex 13b6083364..aaa5a13a1b 100644--- a/.github/workflows/llm-evals.yml+++ b/.github/workflows/llm-evals.yml@@ -101,10 +101,12 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Set up Ruby- uses: ruby/setup-ruby@v1+ uses: ruby/setup-ruby@97ecb7b512899eb71ab1bf2310a624c6f1589ac6 # v1.308.0with:ruby-version: .ruby-versionbundler-cache: true@@ -204,10 +206,12 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Set up Ruby- uses: ruby/setup-ruby@v1+ uses: ruby/setup-ruby@97ecb7b512899eb71ab1bf2310a624c6f1589ac6 # v1.308.0with:ruby-version: .ruby-versionbundler-cache: true@@ -320,7 +324,7 @@ jobs:echo "status=$(jq -r '.status' "$JSON_PATH")" >> "$GITHUB_OUTPUT"- name: Upload eval artifact- uses: actions/upload-artifact@v6+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0with:name: llm-evals-${{ steps.dataset_slug.outputs.slug }}-${{ steps.dataset_slug.outputs.model_slug }}path: |@@ -346,7 +350,7 @@ jobs:steps:- name: Download all artifacts- uses: actions/download-artifact@v7+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0with:path: eval-artifactspattern: llm-evals-*diff --git a/.github/workflows/mobile-build.yml b/.github/workflows/mobile-build.ymlindex fe985bb014..fc19903309 100644--- a/.github/workflows/mobile-build.yml+++ b/.github/workflows/mobile-build.yml@@ -64,21 +64,21 @@ jobs:steps:- name: Checkout- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1with:ref: ${{ github.ref }}fetch-depth: 0- name: Download Android APK artifactcontinue-on-error: true- uses: actions/download-artifact@v7+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0with:name: app-release-apkpath: ${{ runner.temp }}/mobile-artifacts- name: Download iOS build artifactcontinue-on-error: true- uses: actions/download-artifact@v7+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0with:name: ios-build-unsignedpath: ${{ runner.temp }}/ios-build@@ -170,7 +170,7 @@ jobs:${{ runner.temp }}/release-assets/*- name: Checkout gh-pages branch- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1with:ref: gh-pagespath: gh-pagesdiff --git a/.github/workflows/mobile-release.yml b/.github/workflows/mobile-release.ymlindex 0852a72084..dc462ba0a0 100644--- a/.github/workflows/mobile-release.yml+++ b/.github/workflows/mobile-release.yml@@ -23,7 +23,7 @@ jobs:steps:- name: Checkout- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1with:fetch-depth: 0@@ -112,13 +112,13 @@ jobs:echo "Extracted version: $VERSION"- name: Download Android APK artifact- uses: actions/download-artifact@v7+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0with:name: app-release-apkpath: ${{ runner.temp }}/mobile-artifacts- name: Download iOS build artifact- uses: actions/download-artifact@v7+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0with:name: ios-build-unsignedpath: ${{ runner.temp }}/ios-build@@ -258,7 +258,7 @@ jobs:done- name: Checkout gh-pages branch- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1with:ref: gh-pagespath: gh-pagesdiff --git a/.github/workflows/pipelock.yml b/.github/workflows/pipelock.ymlindex 7b3b46af93..f19d3b94fc 100644--- a/.github/workflows/pipelock.yml+++ b/.github/workflows/pipelock.yml@@ -11,13 +11,13 @@ jobs:security-scan:runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v5+ - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1with:fetch-depth: 0persist-credentials: false- name: Pipelock Scan- uses: luckyPipewrench/pipelock@v2+ uses: luckyPipewrench/pipelock@cef4f47eb99ffe00e20fa7d1423bff1a44742dbe # v2.4.0with:scan-diff: 'true'fail-on-findings: 'true'diff --git a/.github/workflows/preview-cleanup.yml b/.github/workflows/preview-cleanup.ymlindex b36c2cba43..8d09aeff53 100644--- a/.github/workflows/preview-cleanup.yml+++ b/.github/workflows/preview-cleanup.yml@@ -30,10 +30,12 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Setup Node.js- uses: actions/setup-node@v5+ uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0with:node-version: "24"@@ -52,7 +54,7 @@ jobs:wrangler delete --name "$WORKER_NAME" --force || echo "Worker may not exist"- name: Delete GitHub Deployment- uses: actions/github-script@v7+ uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0with:script: |const environment = `preview-pr-${{ github.event.pull_request.number }}`;@@ -92,10 +94,12 @@ jobs:steps:- name: Checkout code- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1+ with:+ persist-credentials: false- name: Setup Node.js- uses: actions/setup-node@v5+ uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0with:node-version: "24"diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex 225886deab..9a30609b07 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -73,15 +73,16 @@ jobs:steps:- name: Check out the repo- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1with:+ persist-credentials: falseref: ${{ github.event.inputs.ref || github.ref }}- name: Set up Docker Buildx- uses: docker/setup-buildx-action@v4+ uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0- name: Log in to the container registry- uses: docker/login-action@v4+ uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:registry: ${{ env.REGISTRY }}username: ${{ github.actor }}@@ -118,7 +119,7 @@ jobs:- name: Extract metadata for Dockerid: meta- uses: docker/metadata-action@v6+ uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0with:images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}flavor: latest=false@@ -132,7 +133,7 @@ jobs:org.opencontainers.image.description=A multi-arch Docker image for the Sure Rails app- name: Publish 'linux/${{ matrix.platform }}' image by digest- uses: docker/build-push-action@v7+ uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0id: buildwith:context: .@@ -158,7 +159,7 @@ jobs:- name: Upload the Docker image digestif: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || github.event_name == 'schedule' || github.event.inputs.push }}- uses: actions/upload-artifact@v6+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0with:name: digest-${{ matrix.platform }}path: ${{ runner.temp }}/digests/*@@ -178,17 +179,17 @@ jobs:steps:- name: Set up Docker Buildx- uses: docker/setup-buildx-action@v4+ uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0- name: Download Docker image digests- uses: actions/download-artifact@v7+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0with:path: ${{ runner.temp }}/digestspattern: digest-*merge-multiple: true- name: Log in to the container registry- uses: docker/login-action@v4+ uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0with:registry: ${{ env.REGISTRY }}username: ${{ github.actor }}@@ -275,19 +276,19 @@ jobs:steps:- name: Download Android APK artifact- uses: actions/download-artifact@v7+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0with:name: app-release-apkpath: ${{ runner.temp }}/mobile-artifacts- name: Download iOS build artifact- uses: actions/download-artifact@v7+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0with:name: ios-build-unsignedpath: ${{ runner.temp }}/ios-build- name: Download Helm chart artifact- uses: actions/download-artifact@v7+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0with:name: helm-chart-packagepath: ${{ runner.temp }}/helm-artifacts@@ -338,7 +339,7 @@ jobs:ls -la "${{ runner.temp }}/release-assets/"- name: Create GitHub Release- uses: softprops/action-gh-release@v3+ uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0with:tag_name: ${{ github.ref_name }}name: ${{ github.ref_name }}@@ -425,7 +426,7 @@ jobs:echo "branch=$SOURCE_BRANCH" >> $GITHUB_OUTPUT- name: Check out source branch- uses: actions/checkout@v5+ uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1with:ref: ${{ steps.source_branch.outputs.branch }}token: ${{ github.token }}diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.ymlindex 720651b879..52cbe8d20e 100644--- a/.github/workflows/update-docs.yml+++ b/.github/workflows/update-docs.yml@@ -11,7 +11,7 @@ jobs:permissions: {}runs-on: ubuntu-lateststeps:- - uses: actions/github-script@v8+ - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0env:MINTLIFY_API_KEY: ${{ secrets.MINTLIFY_API_KEY }}PROJECT_ID: ${{ secrets.MINTLIFY_PROJECT_ID }}