From 60fdbd044f1f3c076a8220014cabc5f4a68e7142 Mon Sep 17 00:00:00 2001 From: Elias Naur <103319121+elias-orijtech@users.noreply.github.com> Date: Sun, 27 Nov 2022 05:49:30 -0600 Subject: [PATCH] ci: add workflow for reporting possible state-changing diffs (#13774) The workflow uses the new github.com/orijtech/statediff tool that builds a callgraph from a set of root methods and functions, and checks whether a patch touches it. Fixes #13518 Signed-off-by: Elias Naur Signed-off-by: Elias Naur Co-authored-by: Marko --- .github/workflows/statediff.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/statediff.yml diff --git a/.github/workflows/statediff.yml b/.github/workflows/statediff.yml new file mode 100644 index 000000000000..226a0acbb052 --- /dev/null +++ b/.github/workflows/statediff.yml @@ -0,0 +1,19 @@ +name: "Warn about consensus code changes" + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + main: + permissions: + pull-requests: write # For reading the PR and posting comment + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: orijtech/statediff@main + with: + roots: 'github.com/cosmos/cosmos-sdk/baseapp.BaseApp.DeliverTx,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.BeginBlock,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.EndBlock,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.Commit'