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

feat(entrypoint): adds create-ssp entrypoint #90

Closed
wants to merge 2 commits into from

Conversation

jpower432
Copy link
Member

@jpower432 jpower432 commented Dec 1, 2023

Description

Adds entrypoint for SSP creation.

Stacked with/Incorporates #103

Type of change

  • New feature (non-breaking change which adds functionality)

How has this been tested?

Run steps locally with the image, if desired:

The steps below are run by the linked end-to-end test.

Note: the trestle workspace must be initialize and the profile my_test_profile and compdef my_comp_def must exist

# Image built from https://github.com/jpower432/trestle-bot/actions/runs/7147045342 or build locally
podman build -f Dockerfile -t localhost/trestlebot:test
podman run --rm --entrypoint trestlebot-create-ssp -v $(pwd):/data -w /data localhost/trestlebot:test --ssp-name test-ssp [email protected] --committer-name myname --profile-name my_test_profile --compdefs my_compdef --branch test --markdown-path markdown/system-security-plans/

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@jpower432 jpower432 changed the title Psce 299 feat: adds create-ssp entrypoint Dec 1, 2023
@jpower432 jpower432 changed the title feat: adds create-ssp entrypoint feat(entrypoint): adds create-ssp entrypoint Dec 4, 2023
@jpower432 jpower432 force-pushed the PSCE-299 branch 2 times, most recently from 26ea697 to f8c9e91 Compare December 6, 2023 22:35
Adds a custom exception and adds a try/except block to each
entrypoint run function to centralize exit error handling to
`handle_exception`.

Signed-off-by: Jennifer Power <[email protected]>
@jpower432
Copy link
Member Author

@beatrizmcouto Closing this for now and will reopen if needed.

@jpower432 jpower432 closed this Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant