Skip to content

Commit

Permalink
Update/version (#204)
Browse files Browse the repository at this point in the history
* Create SECURITY.md

* Update version command

* Update CHANGELOG.md
  • Loading branch information
gabrie30 authored May 29, 2022
1 parent 7fb445f commit ce232f0
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## [1.7.15] - 5/29/22
### Added
- CodeQL security analysis action
- Security policy
- Ghorg version in run details output
### Changed
### Deprecated
### Removed
### Fixed
### Security

## [1.7.14] - 5/25/22
### Added
### Changed
Expand Down
18 changes: 18 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Security Policy

## Supported Versions

| Version | Supported |
| ------- | ------------------ |
| 1.7.14+ | :white_check_mark: |

## Reporting a Vulnerability

For both major and minor vulnerabilities please raise a github issue on the repo.

Minor issues feel free to describe it in full detail, if it is a major vulnerability please note only that in the issue and we can work out a way to communicate privately.

## Additional Links

- [Code scanning alerts](https://github.com/gabrie30/ghorg/security/code-scanning)
- [Dependabot alerts](https://github.com/gabrie30/ghorg/security/dependabot)
1 change: 1 addition & 0 deletions cmd/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ func PrintConfigs() {
}

colorlog.PrintInfo("* Config Used : " + os.Getenv("GHORG_CONFIG"))
colorlog.PrintInfo("* Ghorg version : " + GetVersion())

colorlog.PrintInfo("*************************************")
}
Expand Down
12 changes: 11 additions & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,21 @@ import (
"github.com/spf13/cobra"
)

const ghorgVersion = "v1.7.15"

var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version number of Ghorg",
Long: `All software has versions. This is Ghorg's`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("v1.7.14")
PrintVersion()
},
}

func PrintVersion() {
fmt.Println(ghorgVersion)
}

func GetVersion() string {
return ghorgVersion
}

0 comments on commit ce232f0

Please sign in to comment.