diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index d62a087ea..b0f9a88a1 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -52,7 +52,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 575a84031..1ba57cfbb 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -46,7 +46,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v4 with: fetch-depth: 1 diff --git a/.github/workflows/gen-docs.yml b/.github/workflows/gen-docs.yml index 5bcfb6d74..55cd99900 100644 --- a/.github/workflows/gen-docs.yml +++ b/.github/workflows/gen-docs.yml @@ -28,12 +28,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Push GH Pages run: | + git config pull.rebase false git config --global user.name "apigeecli Publish Action" git config --global user.email "apigeecli-bot@noreply.apigee.com" + git pull origin main --allow-unrelated-histories + GOBIN=/tmp/ go install github.com/google/go-licenses@v1.0.0 /tmp/go-licenses csv ./cmd/apigeecli > third-party-licenses.txt || echo "Ignore warnings" /tmp/go-licenses save ./cmd/apigeecli --save_path=third-party --force || echo "Ignore warnings" diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 4b7403712..3b9ce68db 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -31,7 +31,7 @@ jobs: with: go-version: '1.21' cache: false - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: diff --git a/.github/workflows/gorelease-action.yml b/.github/workflows/gorelease-action.yml index 4694662da..53dd0987e 100644 --- a/.github/workflows/gorelease-action.yml +++ b/.github/workflows/gorelease-action.yml @@ -27,8 +27,8 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: #go-version: '>=1.18.0' go-version-file: './go.mod'