~welt/libgallery

c1da5af674230cacf761df48451d6d9ca88384f4 — welt 2 months ago 8bb05f5 master
meta: Mirror to GitHub.
2 files changed, 26 insertions(+), 0 deletions(-)

A .builds/mirror.yml
A .github/workflows/lockdown.yml
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 }}