diff --git a/.github/workflows/automerge-dependabot.yml b/.github/workflows/automerge-dependabot.yml index 6478d21b4b..342e4c2050 100644 --- a/.github/workflows/automerge-dependabot.yml +++ b/.github/workflows/automerge-dependabot.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: github.actor == 'dependabot[bot]' steps: - - uses: peter-evans/enable-pull-request-automerge@v3 + - uses: peter-evans/enable-pull-request-automerge@a660677d5469627102a1c1e11409dd063606628d # v3 with: token: ${{ secrets.ACTIONS_BOT_TOKEN }} pull-request-number: ${{ github.event.pull_request.number }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 314da31f28..42efbda90c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,7 +80,7 @@ jobs: branch: ci-test-${{ matrix.target }}-${{ github.sha }} - name: Close Pull - uses: peter-evans/close-pull@v3 + uses: peter-evans/close-pull@a192af8d70f2d49c49643134605c3b73d4f80fae # v3 with: pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} comment: '[CI] test ${{ matrix.target }}' @@ -92,7 +92,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Find Comment - uses: peter-evans/find-comment@v4 + uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4 id: fc with: issue-number: ${{ github.event.number }} @@ -101,7 +101,7 @@ jobs: - if: steps.fc.outputs.comment-id == '' name: Create comment - uses: peter-evans/create-or-update-comment@v5 + uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5 with: issue-number: ${{ github.event.number }} body: | @@ -124,7 +124,7 @@ jobs: name: dist path: dist - name: Create Pull Request - uses: peter-evans/create-pull-request@v8 + uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8 with: token: ${{ secrets.ACTIONS_BOT_TOKEN }} commit-message: 'build: update distribution' diff --git a/.github/workflows/cpr-example-command.yml b/.github/workflows/cpr-example-command.yml index c9ef268190..85b6bdea7a 100644 --- a/.github/workflows/cpr-example-command.yml +++ b/.github/workflows/cpr-example-command.yml @@ -42,7 +42,7 @@ jobs: echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" - name: Add reaction - uses: peter-evans/create-or-update-comment@v5 + uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5 with: repository: ${{ github.event.client_payload.github.payload.repository.full_name }} comment-id: ${{ github.event.client_payload.github.payload.comment.id }} diff --git a/.github/workflows/slash-command-dispatch.yml b/.github/workflows/slash-command-dispatch.yml index f67effb1eb..5cc782b4f6 100644 --- a/.github/workflows/slash-command-dispatch.yml +++ b/.github/workflows/slash-command-dispatch.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Slash Command Dispatch - uses: peter-evans/slash-command-dispatch@v5 + uses: peter-evans/slash-command-dispatch@9bdcd7914ec1b75590b790b844aa3b8eee7c683a # v5 with: token: ${{ secrets.ACTIONS_BOT_TOKEN }} config: > diff --git a/.github/workflows/update-major-version.yml b/.github/workflows/update-major-version.yml index bc53fada59..c55d430e62 100644 --- a/.github/workflows/update-major-version.yml +++ b/.github/workflows/update-major-version.yml @@ -27,6 +27,11 @@ jobs: git config user.name actions-bot git config user.email actions-bot@users.noreply.github.com - name: Tag new target - run: git tag -f ${{ github.event.inputs.main_version }} ${{ github.event.inputs.target }} + run: git tag -f "${INPUT_MAIN_VERSION}" "${INPUT_TARGET}" + env: + INPUT_MAIN_VERSION: ${{ github.event.inputs.main_version }} + INPUT_TARGET: ${{ github.event.inputs.target }} - name: Push new tag - run: git push origin ${{ github.event.inputs.main_version }} --force + run: git push origin "${INPUT_MAIN_VERSION}" --force + env: + INPUT_MAIN_VERSION: ${{ github.event.inputs.main_version }}