Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make repo branch configurable #29

Merged
merged 1 commit into from
Aug 23, 2024
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
2 changes: 1 addition & 1 deletion harvest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.
"""The Auditree file collating and reporting tool."""

__version__ = "1.3.0"
__version__ = "1.3.1"
12 changes: 10 additions & 2 deletions harvest/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ def _init_arguments(self):
"or: local - if working exclusively with a local git repo"
),
)
self.add_argument(
"--branch",
help=(
"which branch you wish to retrieve git repo evidence from - "
"default is master"
),
default="master",
)
self.add_argument(
"--repo-path",
help=(
Expand Down Expand Up @@ -140,7 +148,7 @@ def _run(self, args):
collator = Collator(
args.repo,
Config(args.creds) if args.creds else None,
"master",
args.branch,
args.repo_path,
args.no_validate,
include_file_path=args.include_file_path,
Expand Down Expand Up @@ -196,7 +204,7 @@ def _run(self, args):
reporter = self.report(
args.repo,
Config(args.creds) if args.creds else None,
"master",
args.branch,
args.repo_path,
self.template_dir,
args.no_validate,
Expand Down
Loading