From 5d30c799406201c045f75d7b2e8d6f6f397dc524 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Fri, 15 Nov 2024 11:55:50 -0700 Subject: [PATCH] Check that dependencies don't include unmerged commits This ensures that the project doesn't end up depending on commits that aren't present in the corresponding branch of the dependency. This is useful to prevent merging with pre-rebase commits from cross-project changes; it also ensures that malicious commits from forks can't end up references in the main projects. Signed-off-by: Stephen Kitt --- .github/workflows/linting.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index f3f87d7c..2c414ae5 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -33,6 +33,15 @@ jobs: flags: 'i' error: 'Fixup commits should be squashed into the commits under review' + check-branch-dependencies: + name: Check branch dependencies + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 + - name: Check that no dependencies include unmerged commits + run: make check-non-release-versions + code-gen: name: Mock Code Generation runs-on: ubuntu-latest