A .builds/mirror.yml => .builds/mirror.yml +11 -0
@@ 0,0 1,11 @@
+image: alpine/edge
+packages:
+- git
+secrets:
+ - fc015051-8c0f-4ba4-b22c-e216414cb91b
+tasks:
+ - mirror: |
+ git clone --mirror https://git.sr.ht/~welt/libgallery
+ cd libgallery.git
+ export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
+ git push --mirror git@github.com:libgallery/libgallery
A .github/workflows/lockdown.yml => .github/workflows/lockdown.yml +15 -0
@@ 0,0 1,15 @@
+name: 'Lock down repository'
+
+on:
+ issues:
+ types: opened
+ pull_request:
+ types: opened
+
+jobs:
+ lockdown:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: dessant/repo-lockdown@v2
+ with:
+ github-token: ${{ github.token }}