Central configuration repository for @shenxianpeng's GitHub account. Contains reusable workflows, default community health files, and shared configuration that applies across repositories.
All workflows under .github/workflows/ are published as reusable workflows (on: workflow_call) and can be called from any repository.
Run pre-commit hooks across all files.
jobs:
pre-commit:
uses: shenxianpeng/.github/.github/workflows/pre-commit.yml@main
with:
commands: "" # optional: extra setup commands to run before pre-commitRun CodeQL static analysis.
jobs:
codeql:
uses: shenxianpeng/.github/.github/workflows/codeql.yml@main
with:
language: python # default: python — also supports c-cpp, csharp, go, java-kotlin, javascript-typescript, ruby, swiftDraft the next release notes as pull requests are merged.
jobs:
release-drafter:
uses: shenxianpeng/.github/.github/workflows/release-drafter.yml@mainAutomatically label pull requests based on branch name and title.
jobs:
label:
uses: shenxianpeng/.github/.github/workflows/pr-labeler.yml@mainClose stale issues and pull requests automatically.
jobs:
stale:
uses: shenxianpeng/.github/.github/workflows/stale.yml@mainBuild and deploy MkDocs documentation to GitHub Pages.
jobs:
docs:
uses: shenxianpeng/.github/.github/workflows/mkdocs.yml@mainBuild and deploy Sphinx documentation to GitHub Pages.
jobs:
docs:
uses: shenxianpeng/.github/.github/workflows/sphinx.yml@main
with:
path-to-doc: docs/_build/html # default: docs/_build/htmlBuild and publish a Python package to PyPI / TestPyPI.
jobs:
publish:
uses: shenxianpeng/.github/.github/workflows/py-publish.yml@main
secrets:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
TEST_PYPI_API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}Scan a Docker image for vulnerabilities with Snyk.
jobs:
snyk:
uses: shenxianpeng/.github/.github/workflows/snyk-container.yml@main
with:
image: myorg/myimage:latest
dockerfile: Dockerfile # default: Dockerfile
severity-threshold: high # default: high
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}The following default community health files apply to all repositories in the account that do not have their own:
| File | Description |
|---|---|
.github/ISSUE_TEMPLATE/bug_report.yml |
Bug report issue form |
.github/ISSUE_TEMPLATE/feature_request.yml |
Feature request issue form |
.github/PULL_REQUEST_TEMPLATE.md |
Pull request template |
CONTRIBUTING.md |
Contribution guidelines |
SECURITY.md |
Security policy and vulnerability reporting |
| File | Description |
|---|---|
.github/FUNDING.yml |
GitHub Sponsors / funding links |
.github/dependabot.yml |
Dependabot version update schedule |
.github/release-drafter.yml |
Release Drafter label categories and template |
.github/stale.yml |
Stale bot configuration (legacy probot) |
.pre-commit-config.yaml |
Pre-commit hooks for this repository |