Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/check-merge-queue-changelogs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ runs:
using: composite
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0
persist-credentials: false

- name: Get pull request number
id: pr-number
uses: actions/github-script@v8
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
HEAD_REF: ${{ github.event.pull_request.head.ref || github.event.merge_group.head_ref }}
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/check-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runs:
using: composite
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: false
skip-install: true
Expand Down Expand Up @@ -79,7 +79,7 @@ runs:

- name: Check if the commit or pull request is a release
id: is-release
uses: MetaMask/action-is-release@v2
uses: MetaMask/action-is-release@3cd51b98fa98d1347d06f5961299b0172ee31ae8 # v2.3.0
with:
commit-starts-with: ${{ inputs.commit-starts-with }}
commit-message: ${{ github.event.pull_request.title }}
Expand Down Expand Up @@ -198,7 +198,7 @@ runs:

- name: Hide previous comments
if: steps.is-release.outputs.IS_RELEASE == 'true'
uses: actions/github-script@v8
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
PR_NUMBER: ${{ steps.pr-number.outputs.PR_NUMBER }}
with:
Expand Down Expand Up @@ -228,7 +228,7 @@ runs:

- name: Reply on pull request
if: steps.check-release.outputs.has-conflicts == 'true'
uses: actions/github-script@v8
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
PACKAGE_NAMES: ${{ steps.check-release.outputs.package-names }}
PR_NUMBER: ${{ steps.pr-number.outputs.PR_NUMBER }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
pull-requests: read
steps:
- name: Check changelog
uses: MetaMask/github-tools/.github/actions/check-changelog@v1
uses: MetaMask/github-tools/.github/actions/check-changelog@7e0d74bc7b79ce9601e52f58d5e4d36c19591df9 # v1.19.0
with:
base-branch: ${{ github.event.pull_request.base.ref }}
head-ref: ${{ github.head_ref }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/close-stale-release-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
pull-requests: write
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: false
- name: Close inactive release PRs
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/create-update-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
id-token: write
steps:
- name: Checkout head
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Fetch tags
run: git fetch --prune --unshallow --tags
- name: Get extension token
id: extension-token
uses: MetaMask/github-tools/.github/actions/get-token@v1
uses: MetaMask/github-tools/.github/actions/get-token@7e0d74bc7b79ce9601e52f58d5e4d36c19591df9 # v1.19.0
with:
token-exchange-url: ${{ vars.TOKEN_EXCHANGE_URL }}
target-repository: 'MetaMask/metamask-extension'
Expand All @@ -32,7 +32,7 @@ jobs:
metadata: read
- name: Get mobile token
id: mobile-token
uses: MetaMask/github-tools/.github/actions/get-token@v1
uses: MetaMask/github-tools/.github/actions/get-token@7e0d74bc7b79ce9601e52f58d5e4d36c19591df9 # v1.19.0
with:
token-exchange-url: ${{ vars.TOKEN_EXCHANGE_URL }}
target-repository: 'MetaMask/metamask-mobile'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-platform-api-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
contents: read
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: true
persist-credentials: false
Expand All @@ -29,7 +29,7 @@ jobs:

- name: Get access token
id: get-token
uses: MetaMask/github-tools/.github/actions/get-token@v1
uses: MetaMask/github-tools/.github/actions/get-token@7e0d74bc7b79ce9601e52f58d5e4d36c19591df9 # v1.19.0
with:
token-exchange-url: ${{ vars.TOKEN_EXCHANGE_URL }}
permissions: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ensure-blocking-pr-labels-absent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
pull-requests: read
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: false
persist-credentials: false
- name: Run command
uses: actions/github-script@v8
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
if (context.payload.pull_request.labels.some((label) => label.name === 'DO-NOT-MERGE')) {
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/lint-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
changed-paths: ${{ steps.packages.outputs.changed-paths }}
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: false
persist-credentials: false
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
- readme-content:check
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: false
persist-credentials: false
Expand All @@ -119,7 +119,7 @@ jobs:
node-version: [24.x]
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: false
persist-credentials: false
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
package-name: ${{ fromJson(needs.prepare.outputs.package-names) }}
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: false
persist-credentials: false
Expand All @@ -183,7 +183,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Validate changelog diffs
Expand All @@ -198,7 +198,7 @@ jobs:
node-version: [24.x]
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: false
persist-credentials: false
Expand All @@ -222,7 +222,7 @@ jobs:
node-version: [24.x]
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: false
persist-credentials: false
Expand Down Expand Up @@ -251,7 +251,7 @@ jobs:
package-name: ${{ fromJson(needs.prepare.outputs.package-names) }}
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: false
persist-credentials: false
Expand All @@ -278,7 +278,7 @@ jobs:
package-name: ${{ fromJson(needs.prepare.outputs.package-names) }}
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: false
persist-credentials: false
Expand All @@ -302,7 +302,7 @@ jobs:
contents: read
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: false
persist-credentials: false
Expand All @@ -325,7 +325,7 @@ jobs:
node-version: [22.x, 24.x]
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: false
persist-credentials: false
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Check pull request merge queue status
id: check-skip-merge-queue
if: github.event_name == 'merge_group'
uses: MetaMask/github-tools/.github/actions/check-skip-merge-queue@v1
uses: MetaMask/github-tools/.github/actions/check-skip-merge-queue@7e0d74bc7b79ce9601e52f58d5e4d36c19591df9 # v1.19.0

check-workflows:
name: Check workflows
Expand All @@ -37,7 +37,7 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Download actionlint
Expand All @@ -54,7 +54,7 @@ jobs:
analyse-code:
name: Analyse code
needs: check-workflows
uses: MetaMask/action-security-code-scanner/.github/workflows/security-scan.yml@v2
uses: MetaMask/action-security-code-scanner/.github/workflows/security-scan.yml@becb242930b3cc271c26da0280050db9c157e291 # v2.1.1
with:
scanner-ref: v2
paths-ignored: |
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
Expand All @@ -127,7 +127,7 @@ jobs:
IS_RELEASE: ${{ steps.is-release.outputs.IS_RELEASE }}
steps:
- id: is-release
uses: MetaMask/action-is-release@v2
uses: MetaMask/action-is-release@3cd51b98fa98d1347d06f5961299b0172ee31ae8 # v2.3.0
with:
commit-starts-with: ${{ vars.RELEASE_COMMIT_PREFIX }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
jobs:
publish-preview:
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '@metamaskbot publish-preview') }}
uses: MetaMask/github-tools/.github/workflows/publish-preview.yml@v1
uses: MetaMask/github-tools/.github/workflows/publish-preview.yml@7e0d74bc7b79ce9601e52f58d5e4d36c19591df9 # v1.19.0
with:
environment: default-branch
docs-url: 'https://github.com/MetaMask/core/blob/main/docs/processes/preview-builds.md'
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: true
persist-credentials: false
ref: ${{ github.sha }}
- name: Build
run: yarn build
- name: Upload build artifacts
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: publish-release-artifacts-${{ github.sha }}
include-hidden-files: true
Expand All @@ -44,18 +44,18 @@ jobs:
needs: build
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: true
persist-credentials: false
ref: ${{ github.sha }}
skip-install: true
- name: Restore build artifacts
uses: actions/download-artifact@v7
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: publish-release-artifacts-${{ github.sha }}
- name: Dry run publish to NPM
uses: MetaMask/action-npm-publish@v6
uses: MetaMask/action-npm-publish@18df42148c35aabb98e00f9fda127d421af141df # v6.5.0
with:
dry-run: true
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
Expand All @@ -71,18 +71,18 @@ jobs:
id-token: write
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: true
persist-credentials: false
ref: ${{ github.sha }}
skip-install: true
- name: Restore build artifacts
uses: actions/download-artifact@v7
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: publish-release-artifacts-${{ github.sha }}
- name: Publish to NPM
uses: MetaMask/action-npm-publish@v6
uses: MetaMask/action-npm-publish@18df42148c35aabb98e00f9fda127d421af141df # v6.5.0
with:
dry-run: false
npm-token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -95,12 +95,12 @@ jobs:
needs: publish-npm
steps:
- name: Checkout and setup environment
uses: MetaMask/action-checkout-and-setup@v3
uses: MetaMask/action-checkout-and-setup@0543b5929698c71e3ccc6ed24eac87825669b5de # v3.5.0
with:
is-high-risk-environment: true
persist-credentials: false
ref: ${{ github.sha }}
skip-install: true
- uses: MetaMask/action-publish-release@v3
- uses: MetaMask/action-publish-release@f01f1be110d60fb07d86c880ce3d6bdb353524d3 # v3.3.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading
Loading