Skip to content

Commit

Permalink
Merge pull request #324 from viveksahu26/feature/framing_third_ed_com…
Browse files Browse the repository at this point in the history
…pl_checks

Feature: framing third edition compliance checks
  • Loading branch information
riteshnoronha authored Oct 29, 2024
2 parents 4d452a2 + e7bfb05 commit ec4dafd
Show file tree
Hide file tree
Showing 41 changed files with 4,159 additions and 680 deletions.
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

0 comments on commit ec4dafd

Please sign in to comment.