Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ">=1.20"
go-version-file: go.mod
cache: false

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
Expand Down
8 changes: 8 additions & 0 deletions cmd/compliance.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ var complianceCmd = &cobra.Command{

# Check a OpenChain Telco compliance against a SBOM in a JSON output
sbomqs compliance --oct --json samples/sbomqs-spdx-syft.json

# Check a V3 Framing document compliance against a SBOM in a table output
sbomqs compliance --fsct <sbom>

# Check a V3 Framing document compliance against a SBOM in a JSON output
sbomqs compliance --fsct -j <sbom>
`,
Args: func(cmd *cobra.Command, args []string) error {
if err := cobra.ExactArgs(1)(cmd, args); err != nil {
Expand Down Expand Up @@ -75,6 +81,7 @@ func setupEngineParams(cmd *cobra.Command, args []string) *engine.Params {
// engParams.Ntia, _ = cmd.Flags().GetBool("ntia")
engParams.Bsi, _ = cmd.Flags().GetBool("bsi")
engParams.Oct, _ = cmd.Flags().GetBool("oct")
engParams.Fsct, _ = cmd.Flags().GetBool("fsct")

engParams.Debug, _ = cmd.Flags().GetBool("debug")

Expand All @@ -101,4 +108,5 @@ func init() {
complianceCmd.Flags().BoolP("bsi", "c", false, "BSI TR-03183-2 v1.1 compliance")
// complianceCmd.MarkFlagsMutuallyExclusive("ntia", "cra")
complianceCmd.Flags().BoolP("oct", "t", false, "OpenChainTelco compliance")
complianceCmd.Flags().BoolP("fsct", "f", false, "V3 Framing document compliance")
}
1 change: 0 additions & 1 deletion golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ linters:
- stylecheck
- staticcheck
- unconvert
- whitespace

linters-settings:
unparam:
Expand Down
Loading