Skip to content

Commit

Permalink
Add branch protection to the repo
Browse files Browse the repository at this point in the history
This ensures that the submodules are always on proper branches to avoid orphan commits
  • Loading branch information
borrrden committed Feb 11, 2025
1 parent 170db6e commit b71bd74
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/check_deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2021-Present Couchbase, Inc.
#
# Use of this software is governed by the Business Source License included in
# the file licenses/BSL-Couchbase.txt. As of the Change Date specified in that
# file, in accordance with the Business Source License, use of this software
# will be governed by the Apache License, Version 2.0, included in the file
# licenses/APL2.txt.

name: Check Submodules

on:
pull_request:
branches:
- '**'

jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true # Only need one level for this check
fetch-depth: 0 # Pull all history or else we won't get branch info
- name: Check Submodules
working-directory: ${{github.workspace}}
run: |
pip install termcolor
./vendor/couchbase-lite-core/build_cmake/scripts/check_deps.py $GITHUB_BASE_REF ${{github.workspace}}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
2 changes: 1 addition & 1 deletion vendor/couchbase-lite-core

0 comments on commit b71bd74

Please # to comment.