Skip to content

Commit 7e87cbb

Browse files
skitttpantelis
authored andcommitted
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 <[email protected]>
1 parent d3faa11 commit 7e87cbb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/linting.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ jobs:
4242
- name: Create the bundle and validate it
4343
run: make bundle
4444

45+
check-branch-dependencies:
46+
name: Check branch dependencies
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Check out the repository
50+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
51+
- name: Check that no dependencies include unmerged commits
52+
run: make check-non-release-versions
53+
4554
crds:
4655
name: CRDs up-to-date
4756
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)