Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 2.64 KB

README.md

File metadata and controls

23 lines (16 loc) · 2.64 KB

Hookz Tacklebox

Usage

Each yaml file contains an action that can be used anywhere in your .hookz.yaml file. Simply copy the non-commented lines and insert as an action under the hook type of your choice.

Contributing

If you would like to contribute your own tackle, please follow the contribution guidelines and create a pull request. The pull request should have a yaml file with an action that can be copied and pasted into a .hookz.yaml file, and additions to the tackle section on this page to describe your action.

Tackle

Name Category Action Hook * Notes
add.yaml git Adds any changed files to the commit. Useful if the action pipeline changed anything. pre-commit Best added as the last action in hook.-
pull.yaml git Pull from your remote branch before committing (ensure there are no upstream changes) pre-commit -Best added as the first action in hook.-
errcheck.yaml Go Checks for errors that are not handled in go code pre-commit Requires errcheck (https://github.com/kisielk/errcheck)
errcheck-script.yaml Go Checks for errors that are not handled in go code. This is a script version that can be used to ignore errors pre-commit Requires errcheck (https://github.com/kisielk/errcheck)
gocyclo.yaml Go Outputs cyclomatic complexity of all files. pre-commit Requires gocyclo(https://github.com/fzipp/gocyclo)
nancy.yaml Go/SCM Check for open source component vulnerabilities in go code pre-commit Ensure that nancy is installed using the instructions at https://ossindex.sonatype.org/integration/nancy
cyclonedx.yaml Go Builds a Software Bill of Materials in CycloneDX format pre-commit Ensure that cyclonedx-gomod is installed using the instructions at https://github.com/CycloneDX/cyclonedx-gomod

* The recommended hook type for this action