A GitHub Action to automatically validate the integrity of the Batect wrapper scripts (batect
and batect.cmd
) in your project.
Add the following to a workflow:
jobs:
validate-batect-wrapper:
name: Validate Batect wrapper scripts
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v4.1.1
- name: Validate Batect wrapper scripts
uses: batect/batect-wrapper-validation-action@v0.4.0
You can also use the action in an existing workflow or existing job.
Batect 0.79.0 or later.
This action exists primarily to detect malicious changes to the wrapper scripts.
If this integrity check was built in to Batect, a maliciously modified wrapper script could incorrectly report that the wrapper was genuine.
This project uses Yarn.
Run yarn test
to run the unit tests.
Run yarn pre-commit
to run the tests, check formatting and run linting.