Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 54 additions & 41 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,78 @@
---
"C:x/auth":
- x/auth/**/*
- changed-files:
- any-glob-to-any-file: x/auth/**/*
"C:x/authz":
- x/authz/**/*
- changed-files:
- any-glob-to-any-file: x/authz/**/*
"C:x/bank":
- x/bank/**/*
- changed-files:
- any-glob-to-any-file: x/bank/**/*
"C:x/capability":
- x/capability/**/*
- changed-files:
- any-glob-to-any-file: x/capability/**/*
"C:x/crisis":
- x/crisis/**/*
- changed-files:
- any-glob-to-any-file: x/crisis/**/*
"C:x/distribution":
- x/distribution/**/*
- changed-files:
- any-glob-to-any-file: x/distribution/**/*
"C:x/evidence":
- x/evidence/**/*
- changed-files:
- any-glob-to-any-file: x/evidence/**/*
"C:x/feegrant":
- x/feegrant/**/*
- changed-files:
- any-glob-to-any-file: x/feegrant/**/*
"C:x/genutil":
- x/genutil/**/*
- changed-files:
- any-glob-to-any-file: x/genutil/**/*
"C:x/gov":
- x/gov/**/*
"C:x/group":
- x/group/**/*
- changed-files:
- any-glob-to-any-file: x/gov/**/*
"C:x/mint":
- x/mint/**/*
"C:x/nft":
- x/nft/**/*
- changed-files:
- any-glob-to-any-file: x/mint/**/*
"C:x/params":
- x/params/**/*
- changed-files:
- any-glob-to-any-file: x/params/**/*
"C:Simulations":
- x/simulation/**/*
- x/*/simulation/**/*
- changed-files:
- any-glob-to-any-file: x/simulation/**/*
- any-glob-to-any-file: x/*/simulation/**/*
"C:x/slashing":
- x/slashing/**/*
- changed-files:
- any-glob-to-any-file: x/slashing/**/*
"C:x/staking":
- x/staking/**/*
- changed-files:
- any-glob-to-any-file: x/staking/**/*
"C:x/upgrade":
- x/upgrade/**/*
- changed-files:
- any-glob-to-any-file: x/upgrade/**/*
"C:Cosmovisor":
- tools/cosmovisor/**/*
- changed-files:
- any-glob-to-any-file: cosmovisor/**/*
"C:Rosetta":
- contrib/rosetta/**/*
- tools/rosetta/**/*
- changed-files:
- any-glob-to-any-file: contrib/rosetta/**/*
"C:Keys":
- client/keys/**/*
- changed-files:
- any-glob-to-any-file: client/keys/**/*
"Type: Build":
- Makefile
- Dockerfile
- docker-compose.yml
- scripts/*
- changed-files:
- any-glob-to-any-file: Makefile
- any-glob-to-any-file: Dockerfile
- any-glob-to-any-file: docker-compose.yml
- any-glob-to-any-file: scripts/*
"Type: CI":
- .github/**/*.yml
- buf.yaml
- .mergify.yml
- .golangci.yml
- changed-files:
- any-glob-to-any-file: .github/**/*.yml
- any-glob-to-any-file: buf.yaml
- any-glob-to-any-file: .mergify.yml
- any-glob-to-any-file: .golangci.yml
"C:CLI":
- client/**/*
- changed-files:
- any-glob-to-any-file: client/**/*
- x/*/client/**/*
"Type: ADR":
- docs/architecture/**/*
"C:container":
- container/**/*
"C:Store":
- store/**/*
"C:orm":
- orm/**/*
- changed-files:
- any-glob-to-any-file: docs/architecture/**/*
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ jobs:
matrix:
go-arch: ["amd64", "arm", "arm64"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- run: |-
go_version=$(grep -E '^go [0-9]{1,}.[0-9]{1,}(.[0-9]{1,})?$' "go.mod" | cut -d ' ' -f 2 | tr -d '\n')
echo "GOVERSION=${go_version}" >> $GITHUB_ENV
- uses: actions/setup-go@v5
with:
go-version: "1.19"
go-version: "${{ env.GOVERSION }}"
check-latest: true
- uses: technote-space/get-diff-action@v6.1.1
id: git_diff
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: actions/setup-go@v3
uses: actions/checkout@v4
- run: |-
go_version=$(grep -E '^go [0-9]{1,}.[0-9]{1,}(.[0-9]{1,})?$' "go.mod" | cut -d ' ' -f 2 | tr -d '\n')
echo "GOVERSION=${go_version}" >> $GITHUB_ENV
- uses: actions/setup-go@v5
with:
go-version: "1.19"
go-version: "${{ env.GOVERSION }}"
check-latest: true
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/dependabot-update-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
# Secret to be added in the repo under Settings > Secrets > Dependabot
token: ${{ secrets.PRBOT_PAT }}
- uses: actions/setup-go@v3
- run: |-
go_version=$(grep -E '^go [0-9]{1,}.[0-9]{1,}(.[0-9]{1,})?$' "go.mod" | cut -d ' ' -f 2 | tr -d '\n')
echo "GOVERSION=${go_version}" >> $GITHUB_ENV
- uses: actions/setup-go@v5
with:
go-version: "1.19"
go-version: "${{ env.GOVERSION }}"
check-latest: true
- name: Extract updated dependency
id: deps
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/dependencies-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- name: "Checkout Repository"
uses: actions/checkout@v4
- run: |-
go_version=$(grep -E '^go [0-9]{1,}.[0-9]{1,}(.[0-9]{1,})?$' "go.mod" | cut -d ' ' -f 2 | tr -d '\n')
echo "GOVERSION=${go_version}" >> $GITHUB_ENV
- uses: actions/setup-go@v5
with:
go-version: "1.21"
go-version: "${{ env.GOVERSION }}"
check-latest: true
- name: "Checkout Repository"
uses: actions/checkout@v3
- name: "Dependency Review"
uses: actions/dependency-review-action@v3
- name: "Dependency audit"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fork-cherry-pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
if: github.event.pull_request.merged == true
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Create PR Patch Branch
shell: bash
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run Gosec Security Scanner
uses: securego/gosec@master
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
name: "Pull Request Labeler"
on:
- pull_request_target

permissions:
contents: read
- pull_request

jobs:
labeler:
permissions:
contents: read # for actions/labeler to determine modified files
pull-requests: write # for actions/labeler to add labels to PRs
contents: read
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4 # v5 is broken, ref https://github.com/actions/labeler/issues/712. Do not bump.
- uses: actions/checkout@v4
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Lint PR"

on:
pull_request_target:
pull_request:
types:
- opened
- edited
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ jobs:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- run: |-
go_version=$(grep -E '^go [0-9]{1,}.[0-9]{1,}(.[0-9]{1,})?$' "go.mod" | cut -d ' ' -f 2 | tr -d '\n')
echo "GOVERSION=${go_version}" >> $GITHUB_ENV
- uses: actions/setup-go@v5
with:
go-version: "1.19"
go-version: "${{ env.GOVERSION }}"
check-latest: true
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v8
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.50.1
version: v2.1.0
2 changes: 1 addition & 1 deletion .github/workflows/md-link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.14
with:
folder-path: "docs"
2 changes: 1 addition & 1 deletion .github/workflows/proto-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
packages: write
steps:
# set VERSION to new version when making changes, when merged to main the image will automatically be pushed
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/proto-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1.9.0
- uses: bufbuild/buf-push-action@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1.9.0
- uses: bufbuild/buf-lint-action@v1
with:
Expand All @@ -23,7 +23,7 @@ jobs:
break-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1.9.0
- uses: bufbuild/buf-breaking-action@v1
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release-cosmovisor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ jobs:
contents: write # for goreleaser/goreleaser-action to create a GitHub release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- run: |-
go_version=$(grep -E '^go [0-9]{1,}.[0-9]{1,}(.[0-9]{1,})?$' "go.mod" | cut -d ' ' -f 2 | tr -d '\n')
echo "GOVERSION=${go_version}" >> $GITHUB_ENV
- uses: actions/setup-go@v5
with:
go-version: "1.19"
go-version: "${{ env.GOVERSION }}"
check-latest: true
# get 'v*.*.*' part from 'cosmovisor/v*.*.*' and save to $GITHUB_ENV
- name: Set env
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release-rosetta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ jobs:
contents: write # for goreleaser/goreleaser-action to create a GitHub release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@v4
- run: |-
go_version=$(grep -E '^go [0-9]{1,}.[0-9]{1,}(.[0-9]{1,})?$' "go.mod" | cut -d ' ' -f 2 | tr -d '\n')
echo "GOVERSION=${go_version}" >> $GITHUB_ENV
- uses: actions/setup-go@v5
with:
go-version: "1.19"
go-version: "${{ env.GOVERSION }}"
check-latest: true
# get 'v*.*.*' part from 'rosetta/v*.*.*' and save to $GITHUB_ENV
- name: Set env
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ jobs:
contents: write # for goreleaser/goreleaser-action to create a GitHub release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
- uses: actions/checkout@v4
- run: |-
go_version=$(grep -E '^go [0-9]{1,}.[0-9]{1,}(.[0-9]{1,})?$' "go.mod" | cut -d ' ' -f 2 | tr -d '\n')
echo "GOVERSION=${go_version}" >> $GITHUB_ENV
- uses: actions/setup-go@v5
with:
go-version: "1.19"
go-version: "${{ env.GOVERSION }}"
check-latest: true
- name: Unshallow
run: git fetch --prune --unshallow
Expand Down
Loading
Loading