diff --git a/CHANGELOG.md b/CHANGELOG.md index fb5786e..aa57bd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..3088b82 --- /dev/null +++ b/SECURITY.md @@ -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) diff --git a/cmd/clone.go b/cmd/clone.go index 444545f..040c917 100644 --- a/cmd/clone.go +++ b/cmd/clone.go @@ -707,6 +707,7 @@ func PrintConfigs() { } colorlog.PrintInfo("* Config Used : " + os.Getenv("GHORG_CONFIG")) + colorlog.PrintInfo("* Ghorg version : " + GetVersion()) colorlog.PrintInfo("*************************************") } diff --git a/cmd/version.go b/cmd/version.go index 2e4ff0b..dd05621 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -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 +}