Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

improved workflow security

daniel31x1314c0d40515ab
diff --git a/.github/workflows/check-branch.yml b/.github/workflows/check-branch.yml
index 68232f24..22ab540c 100644
--- a/.github/workflows/check-branch.yml
+++ b/.github/workflows/check-branch.yml
@@ -11,8 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check branches
+ if: github.head_ref != 'dev' && github.base_ref == 'main'
run: |
- if [ ${{ github.head_ref }} != "dev" ] && [ ${{ github.base_ref }} == "main" ]; then
- echo "Merge requests to main branch are only allowed from dev branch. Please rebase your changes to dev branch."
- exit 1
- fi
+ echo "Merge requests to main branch are only allowed from dev branch. Please rebase your changes to dev branch."
+ exit 1