mirror of
https://github.com/gabrie30/ghorg.git
synced 2025-08-06 06:17:09 +02:00
Update/version (#204)
* Create SECURITY.md * Update version command * Update CHANGELOG.md
This commit is contained in:
parent
7fb445fcdc
commit
ce232f0072
11
CHANGELOG.md
11
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/)
|
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
|
## [1.7.14] - 5/25/22
|
||||||
### Added
|
### Added
|
||||||
### Changed
|
### Changed
|
||||||
|
18
SECURITY.md
Normal file
18
SECURITY.md
Normal 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)
|
@ -707,6 +707,7 @@ func PrintConfigs() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
colorlog.PrintInfo("* Config Used : " + os.Getenv("GHORG_CONFIG"))
|
colorlog.PrintInfo("* Config Used : " + os.Getenv("GHORG_CONFIG"))
|
||||||
|
colorlog.PrintInfo("* Ghorg version : " + GetVersion())
|
||||||
|
|
||||||
colorlog.PrintInfo("*************************************")
|
colorlog.PrintInfo("*************************************")
|
||||||
}
|
}
|
||||||
|
@ -6,11 +6,21 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const ghorgVersion = "v1.7.15"
|
||||||
|
|
||||||
var versionCmd = &cobra.Command{
|
var versionCmd = &cobra.Command{
|
||||||
Use: "version",
|
Use: "version",
|
||||||
Short: "Print the version number of Ghorg",
|
Short: "Print the version number of Ghorg",
|
||||||
Long: `All software has versions. This is Ghorg's`,
|
Long: `All software has versions. This is Ghorg's`,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
fmt.Println("v1.7.14")
|
PrintVersion()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func PrintVersion() {
|
||||||
|
fmt.Println(ghorgVersion)
|
||||||
|
}
|
||||||
|
|
||||||
|
func GetVersion() string {
|
||||||
|
return ghorgVersion
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user