From 65865d2fb8be483ad5a12aa201f5a9f286310344 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Sat, 25 Jul 2026 16:12:25 -0400 Subject: [PATCH] chore(deps): github actions use pin SHAs for security --- .github/workflows/lint-pr-title.yml | 2 +- .github/workflows/main.yml | 10 +++++----- .github/workflows/release.yml | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml index f6cbb20..6d582be 100644 --- a/.github/workflows/lint-pr-title.yml +++ b/.github/workflows/lint-pr-title.yml @@ -13,6 +13,6 @@ jobs: name: conventional-commit runs-on: ubuntu-latest steps: - - uses: amannn/action-semantic-pull-request@v6 + - uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6801854..a0e80bf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,17 +29,17 @@ jobs: run: echo ${{ env.START_TIME }} - name: Clone repository - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 3 - name: Install pnpm - uses: pnpm/action-setup@v6 + uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6 with: run_install: false - name: Set NodeJS - uses: actions/setup-node@v7 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: node-version: 24 cache: 'pnpm' @@ -65,7 +65,7 @@ jobs: run: pnpm test - name: Upload test coverage to Codecov - uses: codecov/codecov-action@v7 + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} @@ -76,7 +76,7 @@ jobs: if: | github.ref == 'refs/heads/main' && (contains(github.event.head_commit.message, 'chore(release)') || contains(github.event.head_commit.message, '[refresh gh-pages]')) - uses: peaceiris/actions-gh-pages@v4 + uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./packages/demo/dist diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da4b484..5114cd9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: run: echo ${{ env.START_TIME }} - name: Clone repository - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 0 @@ -40,12 +40,12 @@ jobs: exit 1 - name: Install pnpm - uses: pnpm/action-setup@v6 + uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6 with: run_install: false - name: Set NodeJS - uses: actions/setup-node@v7 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 with: registry-url: 'https://registry.npmjs.org/' node-version: 24 @@ -102,7 +102,7 @@ jobs: # and the commit message contains the text "chore: release" - name: Deploy to gh-pages if: ${{ inputs.dryrun != true }} - uses: peaceiris/actions-gh-pages@v4 + uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./packages/demo/dist