diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 1a254df14..0f1f7038b 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -11,7 +11,7 @@ jobs: name: Git push main -> dev runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # the push step needs a full repo, not shallow - name: Push main branch to dev branch diff --git a/.github/workflows/docker-release.yml b/.github/workflows/docker-release.yml index e1bc442d0..e13be4584 100644 --- a/.github/workflows/docker-release.yml +++ b/.github/workflows/docker-release.yml @@ -17,7 +17,7 @@ jobs: packages: write steps: - name: Check out the repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to DockerHub uses: docker/login-action@v3 with: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d7a3f5495..71547960f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,9 +25,9 @@ jobs: echo github.head_ref: ${{ github.head_ref }} echo github.base_ref: ${{ github.base_ref }} - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go environment - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.22' - name: Tidy go module @@ -61,7 +61,7 @@ jobs: - name: Run staticcheck run: | ./staticcheck/staticcheck ./... 2> staticcheck/stderr - - name: Check staticcheck stderr (this step isn't needed because we are using actions/setup-go@v3 on GitHub hosted runner) + - name: Check staticcheck stderr (this step isn't needed because we are using actions/setup-go@v5 on GitHub hosted runner) run: | if cat staticcheck/stderr | grep "matched no packages" ; then echo "staticcheck step did nothing, due to https://github.com/vocdoni/vocdoni-node/issues/444" @@ -81,9 +81,9 @@ jobs: env: LOG_PANIC_ON_INVALIDCHARS: true # check that log lines contains no invalid chars (evidence of format mismatch) steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: benjlevesque/short-sha@v2.2 # sets env.SHA to the first 7 chars of github.sha - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: '1.22' - run: mkdir -p "$PWD/gocoverage-unit/" @@ -105,7 +105,7 @@ jobs: run: go test ./... -cover -coverpkg=./... -covermode=count -args -test.gocoverdir="$PWD/gocoverage-unit/" - name: Store code coverage artifact (unit) - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: gocoverage-unit@${{ env.SHA }} path: gocoverage-unit/ @@ -113,7 +113,7 @@ jobs: job_compose_test: runs-on: [self-hosted, ci2-1] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: benjlevesque/short-sha@v2.2 # sets env.SHA to the first 7 chars of github.sha - name: Run compose script env: @@ -128,7 +128,7 @@ jobs: run: | cd dockerfiles/testsuite && ./start_test.sh - name: Store code coverage artifact (integration) - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: gocoverage-integration@${{ env.SHA }} path: dockerfiles/testsuite/gocoverage-integration/ @@ -137,8 +137,8 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release') steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: '1.22' - name: Run go build for Mac @@ -162,10 +162,10 @@ jobs: needs: [job_go_test, job_compose_test] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: benjlevesque/short-sha@v2.2 # sets env.SHA to the first 7 chars of github.sha - - uses: actions/download-artifact@v3 - - uses: actions/setup-go@v4 + - uses: actions/download-artifact@v4 + - uses: actions/setup-go@v5 with: go-version: '1.22' cache: false @@ -188,7 +188,7 @@ jobs: rm -f gocoverage-unit@${{ env.SHA }}.tmp - name: Store code coverage artifact (all, textfmt) if: ${{ always() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: gocoverage-all-textfmt@${{ env.SHA }} path: gocoverage-*.txt @@ -199,9 +199,9 @@ jobs: needs: [job_gocoverage_textfmt] continue-on-error: true # never mark the whole CI as failed because of this job steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: benjlevesque/short-sha@v2.2 # sets env.SHA to the first 7 chars of github.sha - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: gocoverage-all-textfmt@${{ env.SHA }} - name: Send coverage to coveralls.io (unit) diff --git a/.github/workflows/scan_vulns_deps.yml b/.github/workflows/scan_vulns_deps.yml index df36c2ae7..296eb7d43 100644 --- a/.github/workflows/scan_vulns_deps.yml +++ b/.github/workflows/scan_vulns_deps.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set myvars id: myvars @@ -49,7 +49,7 @@ jobs: echo "CONTAINER_TAG=$containertag" >> $GITHUB_OUTPUT - name: Set up Go environment - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.22' @@ -99,7 +99,7 @@ jobs: outputs: type=docker,dest=${{ steps.myvars.outputs.CONTAINER_NAME }}-${{ steps.myvars.outputs.CONTAINER_TAG }}-oci-tar - name: Upload Container Img Tarball as Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: success() || failure() with: name: ${{ steps.myvars.outputs.CONTAINER_NAME }}-${{ steps.myvars.outputs.CONTAINER_TAG }}-docker-img @@ -113,10 +113,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go environment - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: '1.22' @@ -148,7 +148,7 @@ jobs: TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} - name: Publish Repo Scan Results as Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: success() || failure() with: name: trivy-results-repo-${{ needs.build-and-deploy.outputs.DATE_IN_SECS }} @@ -170,10 +170,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download Container Img Tarball as Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 id: container_img_tar with: name: ${{ needs.build-and-deploy.outputs.CONTAINER_NAME }}-${{ needs.build-and-deploy.outputs.CONTAINER_TAG }}-docker-img @@ -235,7 +235,7 @@ jobs: TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} - name: Publish Docker Scan Results as Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: success() || failure() with: name: trivy-results-docker-${{ needs.build-and-deploy.outputs.DATE_IN_SECS }} diff --git a/.github/workflows/swagger.yml b/.github/workflows/swagger.yml index b929df81a..ee2d91a27 100644 --- a/.github/workflows/swagger.yml +++ b/.github/workflows/swagger.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install swag run: | curl -L https://github.com/swaggo/swag/releases/download/v1.8.12/swag_1.8.12_Linux_x86_64.tar.gz | tar -xzf - @@ -29,7 +29,7 @@ jobs: yq '.components.schemas."api.GenericTransactionWithInfo".properties.tx = load("api/docs/models/transactions.yaml").target' \ api/docs/oas3.yaml > api/docs/vocdoni-api.yaml - name: Publish Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: vocdoni-api.yaml path: api/docs/vocdoni-api.yaml @@ -39,7 +39,7 @@ jobs: run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Checkout developer-portal repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: vocdoni/developer-portal ref: main