Update/version (#204)

* Create SECURITY.md

* Update version command

* Update CHANGELOG.md
This commit is contained in:
Jay Gabriels 2022-05-29 08:53:47 -07:00 committed by GitHub
parent 7fb445fcdc
commit ce232f0072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 1 deletions

View File

@ -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

18
SECURITY.md Normal file
View File

@ -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)

View File

@ -707,6 +707,7 @@ func PrintConfigs() {
}
colorlog.PrintInfo("* Config Used : " + os.Getenv("GHORG_CONFIG"))
colorlog.PrintInfo("* Ghorg version : " + GetVersion())
colorlog.PrintInfo("*************************************")
}

View File

@ -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
}