diff --git a/.gitignore b/.gitignore index 3b7ef40..18ea1e9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ .vscode *.test + +# macOS system files +.DS_Store +._* diff --git a/.whitesource b/.whitesource new file mode 100644 index 0000000..55b922e --- /dev/null +++ b/.whitesource @@ -0,0 +1,12 @@ +{ + "scanSettings": { + "baseBranches": [] + }, + "checkRunSettings": { + "vulnerableCheckRunConclusionLevel": "failure", + "displayMode": "diff" + }, + "issueSettings": { + "minSeverityLevel": "LOW" + } +} \ No newline at end of file diff --git a/go.mod b/go.mod index d064697..5ad0806 100644 --- a/go.mod +++ b/go.mod @@ -7,5 +7,5 @@ require github.com/stretchr/testify v1.6.1 require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index c69ae42..494c4b1 100644 --- a/go.sum +++ b/go.sum @@ -9,5 +9,5 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ= -gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/project.json b/project.json new file mode 100644 index 0000000..916617b --- /dev/null +++ b/project.json @@ -0,0 +1,102 @@ +{ + "name": "repo-repos-gocat", + "root": "repos/gocat", + "projectType": "library", + "targets": { + "status": { + "executor": "nx:run-commands", + "options": { + "command": "git -C repos/gocat status --short || true" + }, + "metadata": { + "supervisorRequired": true + } + }, + "fetch": { + "executor": "nx:run-commands", + "options": { + "command": "git -C repos/gocat fetch --all --prune || true" + }, + "metadata": { + "supervisorRequired": true + } + }, + "log": { + "executor": "nx:run-commands", + "options": { + "command": "git -C repos/gocat log --oneline -10 || true" + }, + "metadata": { + "supervisorRequired": true + } + }, + "manifests": { + "executor": "nx:run-commands", + "options": { + "command": "find repos/gocat \\( -name package.json -o -name pyproject.toml -o -name Cargo.toml -o -name go.mod -o -name setup.py \\) -not -path '*/node_modules/*' -not -path '*/testdata/*' -not -path '*/fixtures/*' -print | sort" + }, + "metadata": { + "supervisorRequired": true + } + }, + "go-test": { + "executor": "nx:run-commands", + "options": { + "command": "sh -lc 'cd repos/gocat && go test ./... || true'" + }, + "metadata": { + "supervisorRequired": true + } + }, + "go-build": { + "executor": "nx:run-commands", + "options": { + "command": "sh -lc 'cd repos/gocat && go build ./... || true'" + }, + "metadata": { + "supervisorRequired": true + } + }, + "go-vet": { + "executor": "nx:run-commands", + "options": { + "command": "sh -lc 'cd repos/gocat && go vet ./... || true'" + }, + "metadata": { + "supervisorRequired": true + } + }, + "go-mod-tidy": { + "executor": "nx:run-commands", + "options": { + "command": "sh -lc 'cd repos/gocat && go mod tidy || true'" + }, + "metadata": { + "supervisorRequired": true + } + }, + "security-go": { + "executor": "nx:run-commands", + "options": { + "command": "sh -lc 'cd repos/gocat && govulncheck ./... || true'" + }, + "metadata": { + "supervisorRequired": true + } + }, + "security": { + "executor": "nx:run-commands", + "options": { + "command": "sh -lc 'printf \"security targets: security-go\\n\"'" + }, + "metadata": { + "supervisorRequired": true + } + } + }, + "tags": [ + "scope:repos", + "type:subrepo", + "lang:go" + ] +} \ No newline at end of file