diff --git a/.github/workflows/lint-build-test.yml b/.github/workflows/lint-build-test.yml index c9833e1c9c..ad8dab6ffe 100644 --- a/.github/workflows/lint-build-test.yml +++ b/.github/workflows/lint-build-test.yml @@ -12,7 +12,7 @@ jobs: node-version: [22.x, 24.x] steps: - name: Checkout and setup environment - uses: MetaMask/action-checkout-and-setup@v2 + uses: MetaMask/action-checkout-and-setup@v3 with: cache-node-modules: true is-high-risk-environment: false @@ -27,7 +27,7 @@ jobs: node-version: [24.x] steps: - name: Checkout and setup environment - uses: MetaMask/action-checkout-and-setup@v2 + uses: MetaMask/action-checkout-and-setup@v3 with: is-high-risk-environment: false node-version: ${{ matrix.node-version }} @@ -49,7 +49,7 @@ jobs: node-version: [24.x] steps: - name: Checkout and setup environment - uses: MetaMask/action-checkout-and-setup@v2 + uses: MetaMask/action-checkout-and-setup@v3 with: is-high-risk-environment: false node-version: ${{ matrix.node-version }} @@ -71,7 +71,7 @@ jobs: node-version: [24.x] steps: - name: Checkout and setup environment - uses: MetaMask/action-checkout-and-setup@v2 + uses: MetaMask/action-checkout-and-setup@v3 with: is-high-risk-environment: false node-version: ${{ matrix.node-version }} @@ -93,7 +93,7 @@ jobs: node-version: [22.x, 24.x] steps: - name: Checkout and setup environment - uses: MetaMask/action-checkout-and-setup@v2 + uses: MetaMask/action-checkout-and-setup@v3 with: is-high-risk-environment: false node-version: ${{ matrix.node-version }} @@ -124,7 +124,7 @@ jobs: node-version: [22.x, 24.x] steps: - name: Checkout and setup environment - uses: MetaMask/action-checkout-and-setup@v2 + uses: MetaMask/action-checkout-and-setup@v3 with: is-high-risk-environment: false node-version: ${{ matrix.node-version }} @@ -148,7 +148,7 @@ jobs: package: [omnium-gatherum, nodejs, extension] steps: - name: Checkout and setup environment - uses: MetaMask/action-checkout-and-setup@v2 + uses: MetaMask/action-checkout-and-setup@v3 with: is-high-risk-environment: false node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 6471c52dee..3583f1eebf 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -36,7 +36,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.issue.number }} - name: Checkout and setup environment - uses: MetaMask/action-checkout-and-setup@v2 + uses: MetaMask/action-checkout-and-setup@v3 with: is-high-risk-environment: true - name: Get commit SHA diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 7c07bb4272..119eaa1b03 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout and setup environment - uses: MetaMask/action-checkout-and-setup@v2 + uses: MetaMask/action-checkout-and-setup@v3 with: is-high-risk-environment: true - uses: MetaMask/action-publish-release@v3 @@ -38,7 +38,7 @@ jobs: needs: publish-release steps: - name: Checkout and setup environment - uses: MetaMask/action-checkout-and-setup@v2 + uses: MetaMask/action-checkout-and-setup@v3 with: is-high-risk-environment: true ref: ${{ github.sha }} @@ -59,7 +59,7 @@ jobs: needs: publish-npm-dry-run steps: - name: Checkout and setup environment - uses: MetaMask/action-checkout-and-setup@v2 + uses: MetaMask/action-checkout-and-setup@v3 with: is-high-risk-environment: true ref: ${{ github.sha }} diff --git a/scripts/pre-commit.sh b/scripts/pre-commit.sh index e512c833df..431b699015 100755 --- a/scripts/pre-commit.sh +++ b/scripts/pre-commit.sh @@ -10,4 +10,3 @@ fi yarn lint-staged yarn dedupe --check - diff --git a/scripts/rebuild-native.sh b/scripts/rebuild-native.sh index 810b9c1d64..36465db5d6 100755 --- a/scripts/rebuild-native.sh +++ b/scripts/rebuild-native.sh @@ -4,9 +4,9 @@ # This checks if artifacts already exist to avoid unnecessary rebuilds. # Pass --force or -f to rebuild even if build artifacts already exist. -# Skip in Dependabot environments (native builds aren't needed and may fail) +# Skip in Dependabot updater environments (native builds aren't needed and may fail) if "$(dirname "$0")/utils/check-dependabot.sh"; then - echo "⏭️ Skipping native rebuild in Dependabot environment" + echo "⏭️ Skipping native rebuild in Dependabot updater environment" exit 0 fi diff --git a/scripts/utils/check-dependabot.sh b/scripts/utils/check-dependabot.sh index 1ae64fb3bf..c03da36268 100755 --- a/scripts/utils/check-dependabot.sh +++ b/scripts/utils/check-dependabot.sh @@ -5,10 +5,9 @@ # # Environment variables checked: # - DEPENDABOT: Set in the Dependabot updater environment -# - GITHUB_ACTOR: Set to "dependabot[bot]" in Dependabot PR workflows is_dependabot_env() { - [ -n "$DEPENDABOT" ] || [ "$GITHUB_ACTOR" = "dependabot[bot]" ] + [ -n "$DEPENDABOT" ] } is_dependabot_env