diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac8ecc9450..60300cea21 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,19 +20,19 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v23 + - uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 with: nix_path: nixpkgs=channel:nixos-22.11 extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - id: changed-files - uses: tj-actions/changed-files@v41 + uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5 with: files: | **/*.go *.mod *.sum - - uses: cachix/cachix-action@v12 + - uses: cachix/cachix-action@6a9a34cdd93d0ae4b4b59fd678660efb08109f2f # v12 if: steps.changed-files.outputs.any_changed == 'true' with: name: cronos @@ -53,19 +53,19 @@ jobs: timeout-minutes: 40 steps: - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v23 + - uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 with: nix_path: nixpkgs=channel:nixos-22.11 extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - id: changed-files - uses: tj-actions/changed-files@v41 + uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5 with: files: | **/*.go *.mod *.sum - - uses: cachix/cachix-action@v12 + - uses: cachix/cachix-action@6a9a34cdd93d0ae4b4b59fd678660efb08109f2f # v12 if: steps.changed-files.outputs.any_changed == 'true' with: name: cronos @@ -85,7 +85,7 @@ jobs: sed -i.bak "/$(echo $filename | sed 's/\//\\\//g')/d" coverage.txt done if: steps.changed-files.outputs.any_changed == 'true' - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.txt,./memiavl/coverage.txt,./store/coverage.txt,./versiondb/coverage.txt @@ -98,12 +98,12 @@ jobs: with: fetch-depth: 0 - id: changed-files - uses: tj-actions/changed-files@v41 + uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5 with: files: | go.mod go.sum - - uses: cachix/install-nix-action@v23 + - uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 with: nix_path: nixpkgs=channel:nixos-22.11 extra_nix_config: | @@ -133,17 +133,17 @@ jobs: with: fetch-depth: 0 - id: changed-files - uses: tj-actions/changed-files@v41 + uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5 with: files: | contracts - - uses: cachix/install-nix-action@v23 + - uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 with: nix_path: nixpkgs=channel:nixos-22.11 extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} if: steps.changed-files.outputs.any_changed == 'true' - - uses: cachix/cachix-action@v12 + - uses: cachix/cachix-action@6a9a34cdd93d0ae4b4b59fd678660efb08109f2f # v12 if: steps.changed-files.outputs.any_changed == 'true' with: name: cronos diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 606d5396da..8f0245c660 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -21,12 +21,12 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v23 + - uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 with: nix_path: nixpkgs=channel:nixos-24.05 extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - uses: cachix/cachix-action@v12 + - uses: cachix/cachix-action@6a9a34cdd93d0ae4b4b59fd678660efb08109f2f # v12 with: name: cronos signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" diff --git a/.github/workflows/gosec.yml b/.github/workflows/gosec.yml index f2ce269515..e04c4424ee 100644 --- a/.github/workflows/gosec.yml +++ b/.github/workflows/gosec.yml @@ -17,14 +17,14 @@ jobs: GO111MODULE: on steps: - uses: actions/checkout@v3 - - uses: technote-space/get-diff-action@v3 + - uses: technote-space/get-diff-action@f27caffdd0fb9b13f4fc191c016bb4e0632844af # v3 with: SUFFIX_FILTER: | .go .mod .sum - name: Run Gosec Security Scanner - uses: informalsystems/gosec@master + uses: informalsystems/gosec@f3d05e8e90198e1d4823cf4e8cb36ad490df8677 # v0.10.4 with: # we let the report trigger content trigger a failure using the GitHub Security features. args: '-no-fail -fmt sarif -out results.sarif ./...' diff --git a/.github/workflows/linkchecker.yml b/.github/workflows/linkchecker.yml index 14d1641c96..bf53f38711 100644 --- a/.github/workflows/linkchecker.yml +++ b/.github/workflows/linkchecker.yml @@ -15,11 +15,11 @@ jobs: with: fetch-depth: 0 - id: changed-files - uses: tj-actions/changed-files@v41 + uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5 with: files: | docs/**/*.md - - uses: gaurav-nelson/github-action-markdown-link-check@1.0.13 + - uses: gaurav-nelson/github-action-markdown-link-check@4d5a901466436052915a68d4a856171a50b2c762 # 1.0.13 if: steps.changed-files.outputs.any_changed == 'true' with: folder-path: "docs" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5549333dd2..b85a5e9e25 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -24,13 +24,13 @@ jobs: with: go-version: '1.22.7' - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v23 + - uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 with: nix_path: nixpkgs=channel:nixos-22.11 extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - id: changed-files - uses: tj-actions/changed-files@v41 + uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5 with: files: | **/*.go @@ -64,19 +64,19 @@ jobs: with: fetch-depth: 0 - id: changed-files - uses: tj-actions/changed-files@v41 + uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5 with: files: | **/poetry.lock **/pyproject.toml **/*.py - - uses: cachix/install-nix-action@v23 + - uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 with: nix_path: nixpkgs=channel:nixos-22.11 extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} if: steps.changed-files.outputs.any_changed == 'true' - - uses: cachix/cachix-action@v12 + - uses: cachix/cachix-action@6a9a34cdd93d0ae4b4b59fd678660efb08109f2f # v12 if: steps.changed-files.outputs.any_changed == 'true' with: name: cronos @@ -91,12 +91,12 @@ jobs: with: fetch-depth: 0 - id: changed-files - uses: tj-actions/changed-files@v41 + uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5 with: files: | *.nix **/*.nix - - uses: cachix/install-nix-action@v23 + - uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 with: nix_path: nixpkgs=channel:nixos-22.11 extra_nix_config: | diff --git a/.github/workflows/proto.yml b/.github/workflows/proto.yml index 52e96b1b9e..114bbca237 100644 --- a/.github/workflows/proto.yml +++ b/.github/workflows/proto.yml @@ -14,7 +14,7 @@ jobs: timeout-minutes: 5 steps: - uses: actions/checkout@v3 - - uses: technote-space/get-diff-action@v6 + - uses: technote-space/get-diff-action@f27caffdd0fb9b13f4fc191c016bb4e0632844af # v6 with: PATTERNS: | **/**.proto @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: technote-space/get-diff-action@v6 + - uses: technote-space/get-diff-action@f27caffdd0fb9b13f4fc191c016bb4e0632844af # v6 with: PATTERNS: | **/**.proto @@ -36,7 +36,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: technote-space/get-diff-action@v6 + - uses: technote-space/get-diff-action@f27caffdd0fb9b13f4fc191c016bb4e0632844af # v6 with: PATTERNS: | **/**.proto @@ -46,4 +46,4 @@ jobs: make proto-gen-ci # proto-swagger-gen FIXME swagger-gen result is not reproducible in CI git checkout -- go.mod go.sum # FIXME doc gen not reproducible in CI - name: check working directory is clean - uses: numtide/clean-git-action@main + uses: numtide/clean-git-action@30e3d6d6e2d6e77e73761cf5324467cb74386f87 # v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 017b829b74..3c38e04e7d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,12 +14,12 @@ jobs: environment: release steps: - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v23 + - uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 with: nix_path: nixpkgs=channel:nixos-22.11 extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - uses: cachix/cachix-action@v12 + - uses: cachix/cachix-action@6a9a34cdd93d0ae4b4b59fd678660efb08109f2f # v12 with: name: cronos signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" @@ -40,7 +40,7 @@ jobs: echo 'EOF' >> $GITHUB_ENV cat $GITHUB_ENV - name: upload binaries - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1 with: draft: true files: "${{ env.FILES }}" @@ -55,16 +55,16 @@ jobs: environment: release steps: - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v23 + - uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 with: nix_path: nixpkgs=channel:nixos-22.11 extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - uses: apple-actions/import-codesign-certs@v1 + - uses: apple-actions/import-codesign-certs@253ddeeac23f2bdad1646faac5c8c2832e800071 # v1 with: p12-file-base64: ${{ secrets.MAC_CODE_SIGN_CERT }} p12-password: ${{ secrets.MAC_CODE_SIGN_CERT_PASS }} - - uses: cachix/cachix-action@v12 + - uses: cachix/cachix-action@6a9a34cdd93d0ae4b4b59fd678660efb08109f2f # v12 with: name: cronos signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}" @@ -97,7 +97,7 @@ jobs: echo 'EOF' >> $GITHUB_ENV cat $GITHUB_ENV - name: upload binaries - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1 with: draft: true files: "${{ env.FILES }}" diff --git a/.github/workflows/sims.yml b/.github/workflows/sims.yml index 8745ea98a8..09c92e8497 100644 --- a/.github/workflows/sims.yml +++ b/.github/workflows/sims.yml @@ -31,7 +31,7 @@ jobs: outputs: valid: ${{ steps.setValid.outputs.valid }} steps: - - uses: tspascoal/get-user-teams-membership@v1.0.2 + - uses: tspascoal/get-user-teams-membership@f7435257091e582354c44b55b296edf65be35700 # v1.0.2 id: checkMember if: github.event_name == 'issue_comment' with: @@ -76,7 +76,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Github API Request id: request - uses: octokit/request-action@main + uses: octokit/request-action@bbedc70b1981e610d89f1f8de88311a1fc02fb83 # v2.4.0 if: github.event_name == 'issue_comment' with: route: ${{ github.event.issue.pull_request.url }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 900effbc26..9084070ca5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,19 +29,19 @@ jobs: with: fetch-depth: 0 - id: changed-files - uses: tj-actions/changed-files@v41 + uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5 with: files: | docs *.md **/*.md - - uses: cachix/install-nix-action@v23 + - uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 with: nix_path: nixpkgs=channel:nixos-22.11 extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} if: steps.changed-files.outputs.only_changed == 'false' - - uses: cachix/cachix-action@v12 + - uses: cachix/cachix-action@6a9a34cdd93d0ae4b4b59fd678660efb08109f2f # v12 if: steps.changed-files.outputs.only_changed == 'false' with: name: cronos @@ -68,7 +68,7 @@ jobs: go tool covdata textfmt -i=coverage -o profile.txt - name: Upload coverage report if: steps.changed-files.outputs.only_changed == 'false' - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./profile.txt @@ -86,19 +86,19 @@ jobs: with: fetch-depth: 0 - id: changed-files - uses: tj-actions/changed-files@v41 + uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5 with: files: | docs *.md **/*.md - - uses: cachix/install-nix-action@v23 + - uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 with: nix_path: nixpkgs=channel:nixos-22.11 extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} if: steps.changed-files.outputs.only_changed == 'false' - - uses: cachix/cachix-action@v12 + - uses: cachix/cachix-action@6a9a34cdd93d0ae4b4b59fd678660efb08109f2f # v12 if: steps.changed-files.outputs.only_changed == 'false' with: name: cronos @@ -116,12 +116,12 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: cachix/install-nix-action@v23 + - uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 with: nix_path: nixpkgs=channel:nixos-22.11 extra_nix_config: | access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - uses: cachix/cachix-action@v12 + - uses: cachix/cachix-action@6a9a34cdd93d0ae4b4b59fd678660efb08109f2f # v12 with: name: cronos # github don't pass secrets for pull request from fork repos, diff --git a/CHANGELOG.md b/CHANGELOG.md index 50978c8e05..723fd55262 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ ### Bug Fixes +* [#1724](https://github.com/crypto-org-chain/cronos/pull/1724) Include the fix of nonce management in batch tx in ethermint. * [#1748](https://github.com/crypto-org-chain/cronos/pull/1748) Query with GetCFWithTS to compare both timestamp and key to avoid run fixdata multiple times. * (versiondb) [#1751](https://github.com/crypto-org-chain/cronos/pull/1751) Add missing Destroy for read options to properly hold and release options reference. * [#1753](https://github.com/crypto-org-chain/cronos/pull/1753) Support legacy global AccountNumber. @@ -78,7 +79,6 @@ ### Improvements * [#1712](https://github.com/crypto-org-chain/cronos/pull/1712) Upgrade rocksdb to `v9.8.4`. -* [#1747](https://github.com/crypto-org-chain/cronos/pull/1747) Skip batch initialization and flush when fixdata with dry-run. *Dec 2, 2024*