From 9667c706149628b3266c5a6df3280e52c80eacc2 Mon Sep 17 00:00:00 2001 From: irfanuddinahmad Date: Tue, 19 May 2026 09:52:47 +0500 Subject: [PATCH] chore: pin GitHub Actions workflows to full commit SHAs --- .github/workflows/ci.yml | 6 +++--- .github/workflows/release.yml | 4 ++-- .github/workflows/sync-master-alpha.yml | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5fca08657..0f0f4ec23 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,11 +11,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 - name: Setup Nodejs - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version-file: '.nvmrc' - name: Install dependencies @@ -25,7 +25,7 @@ jobs: - name: Test run: npm run test - name: Upload coverage to Codecov - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 245ead850..92006640a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,11 +17,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version-file: '.nvmrc' - name: Install dependencies diff --git a/.github/workflows/sync-master-alpha.yml b/.github/workflows/sync-master-alpha.yml index c5fa347c9..583203853 100644 --- a/.github/workflows/sync-master-alpha.yml +++ b/.github/workflows/sync-master-alpha.yml @@ -11,25 +11,25 @@ jobs: name: Syncing branches steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Set up Node - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: 18 - name: Create Pull Request id: cpr - uses: tretuna/sync-branches@1.4.0 + uses: tretuna/sync-branches@ea58ab6e406fd3ad016a064b31270bbb41127f41 # 1.4.0 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} FROM_BRANCH: master TO_BRANCH: alpha - name: Auto-approve pull request for dependent project usages - uses: hmarr/auto-approve-action@v2 + uses: hmarr/auto-approve-action@b40d6c9ed2fa10c9a2749eca7eb004418a705501 # v2 with: pull-request-number: ${{ steps.cpr.outputs.PULL_REQUEST_NUMBER }} github-token: ${{ secrets.requirements_bot_github_token }} - name: Enable Pull Request Automerge - uses: peter-evans/enable-pull-request-automerge@v3 + uses: peter-evans/enable-pull-request-automerge@a660677d5469627102a1c1e11409dd063606628d # v3.0.0 with: pull-request-number: ${{ steps.cpr.outputs.PULL_REQUEST_NUMBER }} token: ${{ secrets.requirements_bot_github_token }}