diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 69f88670a..0d6eaa6df 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -34,12 +34,12 @@ jobs: -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ "${{ github.event.pull_request.statuses_url }}" if: github.event_name == 'pull_request' - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.3.0 if: github.event_name == 'push' && steps.setup.outputs.has_token == 'true' with: fetch-depth: 0 token: '${{ secrets.GO_TOKEN }}' - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.3.0 if: github.event_name == 'pull_request' || steps.setup.outputs.has_token != 'true' with: fetch-depth: 0