diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..af5c88dd66 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +version: 2 +updates: + # Enable version updates for github-actions + - package-ecosystem: "github-actions" + # Look for a `Dockerfile` in the `root` directory + directory: "/" + # Check for updates once a month + schedule: + interval: "monthly" + labels: + - "ci" + - "B0-silent" + - "D2-notlive" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1199a77e5c..37d43cc43e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,7 +60,7 @@ jobs: echo "repo.full_name: ${{ github.event.pull_request.head.repo.full_name }}" echo "github.repository: ${{ github.repository }}" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ steps.check-git-ref.outputs.git_ref }} - name: Get Latest RT Release @@ -119,7 +119,7 @@ jobs: needs: ["set-tags"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - name: Find un-copyrighted files @@ -137,7 +137,7 @@ jobs: needs: ["set-tags"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - uses: gaurav-nelson/github-action-markdown-link-check@v1 @@ -151,7 +151,7 @@ jobs: needs: ["set-tags"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - name: Setup editorconfig checker @@ -171,7 +171,7 @@ jobs: needs: ["set-tags"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - uses: oven-sh/setup-bun@v1 @@ -194,7 +194,7 @@ jobs: needs: ["set-tags"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - name: Use pnpm @@ -220,7 +220,7 @@ jobs: needs: ["set-tags"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} # With rustup's nice new toml format, we just need to run rustup show to install the toolchain @@ -236,7 +236,7 @@ jobs: needs: ["set-tags"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - name: Setup Rust toolchain @@ -250,7 +250,7 @@ jobs: needs: ["set-tags"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} # With rustup's nice new toml format, we just need to run rustup show to install the toolchain @@ -268,7 +268,7 @@ jobs: needs: ["set-tags"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - name: Install Protoc @@ -291,7 +291,7 @@ jobs: needs: ["set-tags"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - name: Cargo build @@ -317,7 +317,7 @@ jobs: SCCACHE_CACHE_SIZE: "100GB" steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - name: Run sccache-cache @@ -361,7 +361,7 @@ jobs: DEBUG_COLORS: 1 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - run: | @@ -408,7 +408,7 @@ jobs: needs: ["set-tags", "build"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - uses: actions/download-artifact@v3.0.2 @@ -466,7 +466,7 @@ jobs: if: ${{ needs.set-tags.outputs.image_exists == 'false' && !github.event.pull_request.head.repo.fork }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - uses: actions/download-artifact@v3.0.2 @@ -489,7 +489,7 @@ jobs: driver-opts: | image=moby/buildkit:master - name: Login to DockerHub - uses: docker/login-action@v2.2.0 + uses: docker/login-action@v3 with: username: ${{ secrets.MBF_DOCKERHUB_USERNAME }} password: ${{ secrets.MBF_DOCKERHUB_PASSWORD }} @@ -511,7 +511,7 @@ jobs: org.opencontainers.image.revision=${{ github.sha }} org.opencontainers.image.licenses=${{ github.event.repository.license.spdx_id }} - name: Login to DockerHub - uses: docker/login-action@v2.2.0 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -535,7 +535,7 @@ jobs: DEBUG_COLORS: 1 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - uses: pnpm/action-setup@v2 @@ -583,7 +583,7 @@ jobs: DEBUG_COLORS: 1 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - uses: pnpm/action-setup@v2 diff --git a/.github/workflows/check-licenses.yml b/.github/workflows/check-licenses.yml index 3c53edb1b8..a9ee829133 100644 --- a/.github/workflows/check-licenses.yml +++ b/.github/workflows/check-licenses.yml @@ -8,7 +8,7 @@ jobs: verify: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Rust toolchain uses: actions-rs/toolchain@v1 with: diff --git a/.github/workflows/client-release-issue.yml b/.github/workflows/client-release-issue.yml index 59a2440517..104078db3d 100644 --- a/.github/workflows/client-release-issue.yml +++ b/.github/workflows/client-release-issue.yml @@ -13,7 +13,7 @@ jobs: setup-scripts: runs-on: bare-metal steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Upload tools uses: actions/upload-artifact@v3 with: @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.js uses: actions/setup-node@v3 with: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index a9edafe991..7e72ece033 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -54,7 +54,7 @@ jobs: echo "coverage_report=false" >> $GITHUB_OUTPUT fi - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ steps.check-git-ref.outputs.git_ref }} - name: Get Latest RT Release @@ -99,7 +99,7 @@ jobs: CARGO_TERM_COLOR: always steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.set-tags.outputs.git_ref }} - name: Setup Variables diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b41d593e24..e2a535a84e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -17,7 +17,7 @@ jobs: - name: Check tooling run: protoc --version - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # With rustup's nice new toml format, we just need to run rustup show to install the toolchain # https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659 diff --git a/.github/workflows/prepare-binary.yml b/.github/workflows/prepare-binary.yml index addf99115f..856cbff596 100644 --- a/.github/workflows/prepare-binary.yml +++ b/.github/workflows/prepare-binary.yml @@ -20,7 +20,7 @@ jobs: RUSTFLAGS: "-C target-cpu=${{ matrix.cpu }}" steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.sha }} - name: Setup Rust toolchain @@ -49,7 +49,7 @@ jobs: needs: ["build-binary"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.sha }} - uses: actions/download-artifact@v3.0.2 @@ -73,7 +73,7 @@ jobs: driver-opts: | image=moby/buildkit:master - name: Login to DockerHub - uses: docker/login-action@v2.2.0 + uses: docker/login-action@v3 with: username: ${{ secrets.MBF_DOCKERHUB_USERNAME }} password: ${{ secrets.MBF_DOCKERHUB_PASSWORD }} @@ -95,7 +95,7 @@ jobs: org.opencontainers.image.revision=${{ github.sha }} org.opencontainers.image.licenses=${{ github.event.repository.license.spdx_id }} - name: Login to DockerHub - uses: docker/login-action@v2.2.0 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/publish-binary.yml b/.github/workflows/publish-binary.yml index 03f0152c16..1143b1ac93 100644 --- a/.github/workflows/publish-binary.yml +++ b/.github/workflows/publish-binary.yml @@ -16,7 +16,7 @@ jobs: setup-scripts: runs-on: bare-metal steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Upload tools uses: actions/upload-artifact@v3.1.2 with: @@ -31,7 +31,7 @@ jobs: cpu: ["", "skylake", "znver3"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.to }} - name: Build production moonbeam @@ -79,7 +79,7 @@ jobs: asset_upload_url: ${{ steps.create-release.outputs.upload_url }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.to }} fetch-depth: 0 @@ -157,7 +157,7 @@ jobs: needs: ["build-binary", "publish-draft-release"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.to }} - uses: actions/download-artifact@v3.0.2 @@ -165,15 +165,16 @@ jobs: name: binaries path: build - name: Login to DockerHub - uses: docker/login-action@v2.2.0 + uses: docker/login-action@v3 with: username: ${{ secrets.MBF_DOCKERHUB_USERNAME }} password: ${{ secrets.MBF_DOCKERHUB_PASSWORD }} - registry: index.docker.io - run: | DOCKER_IMAGE=moonbeamfoundation/moonbeam COMMIT=`git rev-list -n 1 '${{ github.event.inputs.to }}'` SHA=sha-${COMMIT::8} + echo using "${DOCKER_IMAGE}:${SHA} as base image" + TAG="${{ github.event.inputs.to }}-rc" echo building "${DOCKER_IMAGE}:${TAG}" diff --git a/.github/workflows/publish-docker-runtime.yml b/.github/workflows/publish-docker-runtime.yml index 99e5674b49..3ad9da0b97 100644 --- a/.github/workflows/publish-docker-runtime.yml +++ b/.github/workflows/publish-docker-runtime.yml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Login to DockerHub - uses: docker/login-action@v2.2.0 + uses: docker/login-action@v3 with: username: ${{ secrets.MBF_DOCKERHUB_USERNAME }} password: ${{ secrets.MBF_DOCKERHUB_PASSWORD }} @@ -32,7 +32,7 @@ jobs: docker push "${DOCKER_IMAGE}:${DOCKER_TAG}" - name: Login to Purestake DockerHub - uses: docker/login-action@v2.2.0 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 9797f2ab85..814d4baf59 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Login to DockerHub - uses: docker/login-action@v2.2.0 + uses: docker/login-action@v3 with: username: ${{ secrets.MBF_DOCKERHUB_USERNAME }} password: ${{ secrets.MBF_DOCKERHUB_PASSWORD }} @@ -58,7 +58,7 @@ jobs: docker push "${DOCKER_IMAGE}:latest" fi - name: Login to Purestake DockerHub - uses: docker/login-action@v2.2.0 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/publish-runtime.yml b/.github/workflows/publish-runtime.yml index eb45780c00..6b9322fa03 100644 --- a/.github/workflows/publish-runtime.yml +++ b/.github/workflows/publish-runtime.yml @@ -17,7 +17,7 @@ jobs: setup-scripts: runs-on: bare-metal steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Upload scripts uses: actions/upload-artifact@v3 with: @@ -40,11 +40,11 @@ jobs: srtool_image_tag: - 1.74.0 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.to }} - name: Login to DockerHub - uses: docker/login-action@v2.2.0 + uses: docker/login-action@v3 if: github.repository == 'moonbeam-foundation/moonbeam' with: username: ${{ secrets.MBF_DOCKERHUB_USERNAME }} @@ -116,7 +116,7 @@ jobs: asset_upload_url: ${{ steps.create-release.outputs.upload_url }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.to }} fetch-depth: 0 diff --git a/.github/workflows/publish-typescript-api.yml b/.github/workflows/publish-typescript-api.yml index 739066b06f..ab59aa0763 100644 --- a/.github/workflows/publish-typescript-api.yml +++ b/.github/workflows/publish-typescript-api.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.sha }} - name: Use Node.js @@ -34,7 +34,7 @@ jobs: needs: ["publish-typescript-api"] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.inputs.sha }} - name: Use pnpm diff --git a/.github/workflows/runtime-release-issue.yml b/.github/workflows/runtime-release-issue.yml index 5f9dcf842e..f4dcfb2510 100644 --- a/.github/workflows/runtime-release-issue.yml +++ b/.github/workflows/runtime-release-issue.yml @@ -16,7 +16,7 @@ jobs: setup-scripts: runs-on: bare-metal steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Upload tools uses: actions/upload-artifact@v3 with: @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.js uses: actions/setup-node@v3 with: diff --git a/.github/workflows/upgrade-typescript-api.yml b/.github/workflows/upgrade-typescript-api.yml index 1a530574ac..771b985497 100644 --- a/.github/workflows/upgrade-typescript-api.yml +++ b/.github/workflows/upgrade-typescript-api.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: runtime-${{ github.event.inputs.spec_version }} - name: Retrieve moonbeam binary diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index 186d0ce251..55bcf9bffe 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.js uses: actions/setup-node@v3 with: