diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af7fd23..1525622 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: private-key: ${{ secrets.BOT_PRIVATE_KEY }} - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: token: ${{ steps.bot_token.outputs.token || secrets.PAT || secrets.GITHUB_TOKEN }} ref: ${{ github.head_ref }} @@ -68,7 +68,7 @@ jobs: private-key: ${{ secrets.BOT_PRIVATE_KEY }} - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: token: ${{ steps.bot_token.outputs.token || secrets.PAT || secrets.GITHUB_TOKEN }} ref: ${{ github.head_ref }} @@ -195,7 +195,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: token: ${{ secrets.GITHUB_TOKEN }} ref: ${{ github.head_ref }} diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml index a4d635c..721765a 100644 --- a/.github/workflows/semantic-release.yml +++ b/.github/workflows/semantic-release.yml @@ -37,7 +37,7 @@ jobs: echo "# :warning: GITHUB_TOKEN is used" >> $GITHUB_STEP_SUMMARY echo "The GITHUB_TOKEN is used instead of a bot token or PAT that will not emit the released publish event for triggering a released workflow." >> $GITHUB_STEP_SUMMARY - - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 with: fetch-depth: 0 token: ${{ steps.bot_token.outputs.token || secrets.PAT || secrets.GITHUB_TOKEN }}