The Mission Critical Vulnerability Scanner (MCVS) General Action provides automated security and quality checks for your GitHub repository. This composite action runs multiple validation tests to ensure code quality, security standards, and proper Git workflow practices.
-
lint-action: Validates GitHub Actions workflow files for security issues- Uses zizmor to detect security vulnerabilities
- Checks at minimum
lowseverity level
-
lint-commit: Validates commit messages follow Conventional Commits format- Checks all commits in pull request range
- Enforces conventional commit standards (feat, fix, docs, etc.)
- Configuration:
configs/commitlint.config.mjs
-
lint-git: Enforces Git workflow best practices- Ensures the feature branch is up-to-date with the pull request base branch (no commits behind)
- Detects and blocks unwanted merges of the base branch into feature branches
- Compares against the base branch as fetched from the base repository, so the checks cannot be bypassed from a fork
- Identifies fixup/squash commits that should be squashed before merge
-
lint-links: Checks that links in Markdown, HTML and reStructuredText files resolve- Uses lychee
- Also validates
#anchorfragments in link targets, so a link left behind by a renamed heading is caught - Fails the job on a broken link and writes a summary to the job page
-
markdownlint: Validates Markdown formatting- Uses markdownlint
- Configuration:
configs/mcvs.markdownlint.yaml
-
yamllint: Validates YAML file formatting- Checks all YAML files against formatting standards
- Uses hash-pinned dependencies for security
- Configuration:
configs/yamllint.yaml
Create a .github/workflows/general.yml file with the following content:
---
name: general
"on": pull_request
permissions:
contents: read
packages: read
jobs:
mcvs-general-action:
strategy:
matrix:
args:
- testing-type: lint-action
- testing-type: lint-commit
- testing-type: lint-git
- testing-type: lint-links
- testing-type: markdownlint
- testing-type: yamllint
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: schubergphilis/mcvs-general-action@v0.5.1
with:
testing-type: ${{ matrix.args.testing-type }}You can run a single test type instead of using a matrix:
jobs:
commit-lint:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@v6
- uses: schubergphilis/mcvs-general-action@v0.5.1
with:
testing-type: lint-commitThe testing-type values are listed under
Available Testing Types.
| Input | Description | Required | Default |
|---|---|---|---|
| testing-type | Type of test to run | Yes | N/A |
| zizmor-action-advanced-security | Disable advanced security report upload | No | true |
- All GitHub Actions are pinned to commit SHAs for security
- Python dependencies (yamllint) are installed with
--require-hashesfromconfigs/requirements.txt - NPM packages (commitlint) are installed via
npm ciwith package-lock.json for integrity verification - The internal checkout used by
lint-commitandlint-gitruns withpersist-credentials: false, so the workflow token is never written to.git/configin the workspace
See LICENSE file for details.
