name: Clone Watch
on:
schedule:
- cron: "17 6 * * *" workflow_dispatch: {}
permissions:
contents: read
issues: write
jobs:
scan:
if: github.repository == 'jhonsferg/gvsn'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Ensure clone-watch label exists
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh label create clone-watch \
--color B60205 \
--description "Possible unauthorized clone/impersonation of this repository" \
--force
- name: Scan for unauthorized clones
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: jhonsferg
REPO_NAME: gvsn
AUTHOR_EMAIL: jhon.fernandez.sg@gmail.com
run: bash .github/scripts/clone-watch.sh