Skip to content

Commit

Permalink
Merge pull request #41 from devops-kung-fu/readme_updates
Browse files Browse the repository at this point in the history
fix: Corrects version info and adds SBoM badge
  • Loading branch information
djschleen authored May 20, 2021
2 parents 26a2aac + d6b3c41 commit 80759d0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# hookz

![GitHub release (latest by date)](https://img.shields.io/github/v/release/devops-kung-fu/hookz) [![Go Report Card](https://goreportcard.com/badge/github.com/devops-kung-fu/hookz)](https://goreportcard.com/report/github.com/devops-kung-fu/hookz) [![codecov](https://codecov.io/gh/devops-kung-fu/hookz/branch/main/graph/badge.svg?token=P9WBOBQTOB)](https://codecov.io/gh/devops-kung-fu/hookz)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/devops-kung-fu/hookz) [![Go Report Card](https://goreportcard.com/badge/github.com/devops-kung-fu/hookz)](https://goreportcard.com/report/github.com/devops-kung-fu/hookz) [![codecov](https://codecov.io/gh/devops-kung-fu/hookz/branch/main/graph/badge.svg?token=P9WBOBQTOB)](https://codecov.io/gh/devops-kung-fu/hookz) [![SBOM](https://img.shields.io/badge/CyloneDX-SBoM-informational)](hookz-sbom.json)

Manages git hooks inside a local git repository based on a configuration.

Expand Down Expand Up @@ -41,8 +41,8 @@ To install ```hookz```, [download the latest release](https://github.com/devops
Linux Example:

```bash
sudo chmod +x hookz-2.2.0-linux-amd64
sudo mv hookz-2.2.0-linux-amd64 /usr/local/bin/hookz
sudo chmod +x hookz-2.2.1-linux-amd64
sudo mv hookz-2.2.1-linux-amd64 /usr/local/bin/hookz
```

## Configuration
Expand All @@ -52,7 +52,7 @@ Hookz uses a configuration file to generate hooks in your local git repository.
### Example Configuration

``` yaml
version: 2.2.0
version: 2.2.1
hooks:
- type: pre-commit
actions:
Expand Down Expand Up @@ -205,7 +205,7 @@ Check out the collection [here](tackle/README.md).
Assumes `terraform` is in your `PATH` for `fmt`.
```yaml
version: 2.2.0
version: 2.2.1
hooks:
- type: pre-commit
actions:
Expand All @@ -228,7 +228,7 @@ hooks:
### NPM

```yaml
version: 2.2.0
version: 2.2.1
hooks:
- type: pre-commit
actions:
Expand All @@ -242,7 +242,7 @@ hooks:
## Software Bill of Materials
```Hookz``` uses the CycloneDx tackle to generate a Software Bill of Materials in CycloneDx format every time a developer commits code to this repository. More information for CycloneDx is available [here](https://cyclonedx.org)
```Hookz``` uses the CycloneDX tackle to generate a Software Bill of Materials in CycloneDX format every time a developer commits code to this repository. More information for CycloneDX is available [here](https://cyclonedx.org)

The current SBoM for ```Hookz``` is available [here](hookz-sbom.json).

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

var (
version = "2.2.0"
version = "2.2.1"
debug bool
verbose bool
rootCmd = &cobra.Command{
Expand Down
12 changes: 6 additions & 6 deletions hookz-sbom.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"bomFormat": "CycloneDX",
"specVersion": "1.2",
"serialNumber": "urn:uuid:b1bf505c-4895-4010-9c1b-8bd0c71bb115",
"serialNumber": "urn:uuid:5a09a775-906a-4b3c-9f7d-c88864115c32",
"version": 1,
"metadata": {
"timestamp": "2021-05-19T14:27:45-06:00",
"timestamp": "2021-05-20T09:58:17-06:00",
"tools": [
{
"vendor": "CycloneDX",
Expand All @@ -31,11 +31,11 @@
}
],
"component": {
"bom-ref": "pkg:golang/github.com/devops-kung-fu/[email protected]20210519141151-dcfca858b1ec",
"bom-ref": "pkg:golang/github.com/devops-kung-fu/[email protected]20210519150311-0306be16fce3",
"type": "application",
"name": "github.com/devops-kung-fu/hookz",
"version": "v0.0.0-20210519141151-dcfca858b1ec",
"purl": "pkg:golang/github.com/devops-kung-fu/[email protected]20210519141151-dcfca858b1ec",
"version": "v0.0.0-20210519150311-0306be16fce3",
"purl": "pkg:golang/github.com/devops-kung-fu/[email protected]20210519150311-0306be16fce3",
"externalReferences": [
{
"url": "https://github.com/devops-kung-fu/hookz",
Expand Down Expand Up @@ -5604,7 +5604,7 @@
"ref": "pkg:golang/rsc.io/[email protected]"
},
{
"ref": "pkg:golang/github.com/devops-kung-fu/[email protected]20210519141151-dcfca858b1ec",
"ref": "pkg:golang/github.com/devops-kung-fu/[email protected]20210519150311-0306be16fce3",
"dependsOn": [
"pkg:golang/github.com/cavaliercoder/[email protected]",
"pkg:golang/github.com/gookit/[email protected]",
Expand Down

0 comments on commit 80759d0

Please sign in to comment.