mirror of
https://github.com/vee1e/gittuf.git
synced 2026-09-04 03:37:09 +00:00
25 lines
717 B
Go
25 lines
717 B
Go
// Copyright The gittuf Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package github
|
|
|
|
import (
|
|
"github.com/gittuf/gittuf/internal/cmd/attest/github/dismissapproval"
|
|
"github.com/gittuf/gittuf/internal/cmd/attest/github/pullrequest"
|
|
"github.com/gittuf/gittuf/internal/cmd/attest/github/recordapproval"
|
|
"github.com/gittuf/gittuf/internal/cmd/attest/persistent"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func New(persistent *persistent.Options) *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "github",
|
|
Short: "Tools to attest about GitHub actions and entities",
|
|
}
|
|
|
|
cmd.AddCommand(dismissapproval.New(persistent))
|
|
cmd.AddCommand(pullrequest.New(persistent))
|
|
cmd.AddCommand(recordapproval.New(persistent))
|
|
|
|
return cmd
|
|
}
|