otm-converter

command module
v0.0.1-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 1 Imported by: 0

README


POC - DO NOT USE


otm-converter

Attempt to build a converter to generate an open threat model based on the the work from IriusRisk


POC - DO NOT USE


Init Project

# initialize the project
go mod init github.com/MChorfa/otm-converter
go mod tidy
# open project in VSCode
code .

Build

# print the version of conveyor
go run main.go --version
conveyor version v0.0.1-alpha

## 
# build the converter CLI in version v0.0.1-alpha
go build -o ./dist/converter -ldflags="-X 'github.com/MChorfa/otm-converter/cmd/converter.version=v0.0.1-alpha'" main.go

# verify version is being set correctly
./dist/converter --version
> converter version v0.0.1-alpha

Run

# converter
go run main.go convert \
--input-path "./test/integration/data/design.json" \
--output-path "./test/integration/data"

Release

# https://goreleaser.com/quick-start/

brew install goreleaser/tap/goreleaser
goreleaser init
goreleaser build --single-target --snapshot --rm-dist
goreleaser release --snapshot --rm-dist

# The minimum permissions the GITHUB_TOKEN should have to run this are write:packages
export GITHUB_TOKEN="YOUR_GH_TOKEN"
git tag -a v0.0.1-alpha -m "Alpha pre-release"
git push origin v0.1.0-alpha
goreleaser release

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL