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

build(ios): new XCUITest runner build. #4562

Merged
merged 2 commits into from
Aug 25, 2024
Merged

build(ios): new XCUITest runner build. #4562

merged 2 commits into from
Aug 25, 2024

Conversation

asafkorem
Copy link
Contributor

@asafkorem asafkorem commented Aug 25, 2024

Implemented a more secure and efficient method for generating temporary build artifacts, ensuring only essential files are copied to the XCUITest build directory. Adhering to the principle of least privilege (PoLP).

  • Reduced the XCUITest build artifact size from 73.6 MB to 5 MB (!).
  • Use mktemp and trap to remove all unnecessary artifacts even if the script fails.

Using a more secure and efficient method for creating temporary build artifacts
 before copy only the needed to the XCUITest build dir.
Use `mktemp` and `trap` to remove the intermediate artifacts even if the script fails.
@asafkorem asafkorem self-assigned this Aug 25, 2024
@asafkorem asafkorem merged commit 407d55d into master Aug 25, 2024
6 checks passed
@asafkorem asafkorem deleted the new-xcuitest-build branch August 25, 2024 17:02
@raldred
Copy link

raldred commented Sep 16, 2024

That's a serious reduction! Thanks @asafkorem

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.

2 participants