Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

CI: check that git dependencies come from storytold

aiongg6401cfdbe18a
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ba8243353..07f54982a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -50,6 +50,11 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
+ - name: Git dependencies come from storytold
+ run: |
+ if grep -E '^source = "git\+' Cargo.lock | grep -v '"git+https://github.com/storytold/'; then
+ echo "Cargo.lock has a git dependency outside github.com/storytold"; exit 1
+ fi
- id: pick
env:
EVENT: ${{ github.event_name }}