-
Notifications
You must be signed in to change notification settings - Fork 26
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
Refinement and Documentation of macOS TTPs #60
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, I didn't remember we had that option. I'll update the PR. |
- Updated README to reflect removal of `use_swift` argument. - Modified launchagent.swift to support a generic shell script, rather than just opening Calculator. - Enhanced the YAML to handle the default script creation if not provided. - Streamlined error handling in the Swift code. - Adjusted cleanup logic in the YAML.
…scripts with Swift. - Updated the README to reflect changes and use cases. - Added missing loginitem TTP - Update linting rule to allow unordered nested lists
- Fixed bug with creating the plist file - Updated the README.md file to include a default example with no arguments - Improved error handling and added informative print statements for better debugging.
- Fixed warnings in loginitem.swift - Fixed warnings that were viable to fix in cleanuploginitem.swift - Updated the README.md file to include a default example with no arguments - Improved error handling and added informative print statements for better debugging.
… Handling (facebookincubator#61) * Add missing set -e * Add pre-commit hook to append "Authored-by" to commit messages - Created a new script `.hooks/add-authored-by.sh` which: - Checks if git is installed. - Verifies if the `user.name` and `user.email` git configurations are set. - Appends the "Authored-by" line to the commit message. - Updated `.pre-commit-config.yaml` to include this script as a `commit-msg` stage hook. * Ensure duplicate signatures aren't possible * Add additional error checking Authored-by: Jayson Grace <jayson.e.grace@gmail.com> * Remove unimplemented mage function Authored-by: Jayson Grace <jayson.e.grace@gmail.com> * Removed commented code Authored-by: Jayson Grace <jayson.e.grace@gmail.com> * Update prettier version and add commit-msg hook installation - Bump prettier version from v3.0.2 to v3.0.3 in pre-commit config. - Enhance `magefiles/magefile.go` to: - Import required modules for file path handling and system utilities. - Implement a new `installCommitMsgHook` function that ensures the `commit-msg` hook is set up. - Integrate the `installCommitMsgHook` within the `RunPreCommit` function to automate its execution. Authored-by: Jayson Grace <jayson.e.grace@gmail.com>
- Added expect script back to capture output - Added additional instructions to TTP pre-requisites
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and LGTM!
- Can't have `set -e` in either section, otherwise it will error out.
- Resolves bug in remove-quarantine-attrib TTP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and LGTM!
I accidentally hosed #37, so here's a new one:
Proposed Changes
Related Issue(s)
N/A
Testing
Every TTP was run after changes were made.
Documentation
Added README to every macOS TTP
Screenshots/GIFs (optional)
N/A
Checklist
mage runprecommit
locally and fixed any issues that arose.