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

Skeletonize #46

Merged
merged 553 commits into from
Mar 2, 2022
Merged

Skeletonize #46

merged 553 commits into from
Mar 2, 2022

Conversation

jsf9k
Copy link
Member

@jsf9k jsf9k commented Jan 28, 2022

🗣 Description

This pull request skeletonizes this repository and brings it into line with the analogous changes that were made to cisagov/trustymail_reporter.

💭 Motivation and context

This repository deserves to get Lineage updates too!

This pull request also resolves #8.

🧪 Testing

I built a new Docker image with these changes and successfully used it to perform a full run of the BOD 18-01 scanning.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All future TODOs are captured in issues, which are referenced in code comments.
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated to reflect the changes in this PR.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

✅ Post-merge checklist

  • Add a tag.

mcdonnnj and others added 30 commits October 22, 2020 13:54
Change repo for the prettier pre-commit hook
⚠️ CONFLICT! Lineage pull request for: skeleton
These changes are based on the "complete workflow" from
https://github.com/docker/build-push-action

Additionally it adds support for the new "workflow_dispatch" event type.
Needed to check tests written in Python.
This additional clause must remain at the _end_ of the CODEOWNERS file
so that it cannot be overridden by a later clause.

We want to make it so that all the .github files including CODEOWNERS
are protected so only code owners (the dev team) can approve
modifications to them.

This will prevent configuration changes from breaking Actions and
other management-type functions that the files in this directory
control. By setting the .github files/folder to require code owner
approval for changes, workflow and management changes will require dev
team review and checking.

Resolves #56.
Thanks to @dav3r and @mcdonnnj for the suggestion.
Add some additional comments in case anyone is confused about the nature of the solidus and its place within our tagging system.

Co-authored-by: Shane Frasier <[email protected]>
There is no need to run python code to determine the python version.
Resolves #58.

See here for details:
https://github.com/actions/setup-python/blob/main/action.yml#L14-L16
Group related pre-commit hooks together. Make sure that hooks are
alphabetically sorted within those groups.
…gihub-dir

Ensure that the cisagov devs are the owners of the .github directory
…re-simply

Use the python version output by actions/setup-python
Add Python Version Missing from actions/cache Key
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval intensifies

Copy link
Member

@mcdonnnj mcdonnnj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another slew of Python 3 changes for the most part: Using f-strings and removing object from class descriptions. I did have a question about a repeated line of code and a request about the docopt definition for the generate_https_scan_report.py file. Thanks again for putting up with all of my nitpicky requests.

tests/conftest.py Outdated Show resolved Hide resolved
tests/container_test.py Outdated Show resolved Hide resolved
src/report.sh Show resolved Hide resolved
src/report/create_all_reports.py Outdated Show resolved Hide resolved
src/report/create_all_reports.py Outdated Show resolved Hide resolved
src/report/graphs.py Outdated Show resolved Hide resolved
src/report/graphs.py Outdated Show resolved Hide resolved
src/report/graphs.py Outdated Show resolved Hide resolved
src/report/graphs.py Outdated Show resolved Hide resolved
src/report/graphs.py Outdated Show resolved Hide resolved
This commit fixes a few paths that are still referring to the old
/home/reporter path.  Such references should instead be referring to
/home/cisa.
Cursor.count() has been deprecated for some time, and is now
disallowed.
@jsf9k jsf9k requested review from mcdonnnj and dav3r February 23, 2022 04:20
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work! 💪

@jsf9k
Copy link
Member Author

jsf9k commented Feb 23, 2022

I have confirmed via a full BOD 18-01 reporting run that this code - with the reversion described here - functions as expected.

This reverts commit 61cf660.

This change was rejected at runtime since the code in src/report does
not constitute a Python package.  See also issue #50.
Copy link
Member

@mcdonnnj mcdonnnj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some last little suggestions. Really strong work getting this into a more modern state!

Dockerfile Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/report/generate_https_scan_report.py Outdated Show resolved Hide resolved
src/report/generate_https_scan_report.py Outdated Show resolved Hide resolved
@jsf9k jsf9k merged commit 0fee977 into develop Mar 2, 2022
@jsf9k jsf9k deleted the skeletonize branch March 2, 2022 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement This issue or pull request will add or improve functionality, maintainability, or ease of use version bump This issue or pull request increments the version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use the --no-cache-dir flag with pip
4 participants