{"id":22865047,"url":"https://github.com/bglezseoane/cpcalendars","last_synced_at":"2026-05-03T02:43:05.360Z","repository":{"id":57634733,"uuid":"323975746","full_name":"bglezseoane/cpcalendars","owner":"bglezseoane","description":"Really simple CLI app to copy Mac OS Calendar.app calendars sources to other location","archived":false,"fork":false,"pushed_at":"2020-12-26T18:02:45.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-03T02:43:04.992Z","etag":null,"topics":["calendars","cli","macos"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bglezseoane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-23T18:33:57.000Z","updated_at":"2021-08-20T04:17:12.000Z","dependencies_parsed_at":"2022-09-26T20:20:41.218Z","dependency_job_id":null,"html_url":"https://github.com/bglezseoane/cpcalendars","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bglezseoane/cpcalendars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bglezseoane%2Fcpcalendars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bglezseoane%2Fcpcalendars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bglezseoane%2Fcpcalendars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bglezseoane%2Fcpcalendars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bglezseoane","download_url":"https://codeload.github.com/bglezseoane/cpcalendars/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bglezseoane%2Fcpcalendars/sbom","scorecard":{"id":236072,"data":{"date":"2025-08-11","repo":{"name":"github.com/bglezseoane/cpcalendars","commit":"ce8fbba0989a62fe11a173206dc5ae324f11dc93"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.1.1 not signed: https://api.github.com/repos/bglezseoane/cpcalendars/releases/35737825","Warn: release artifact 0.1.0 not signed: https://api.github.com/repos/bglezseoane/cpcalendars/releases/35722133","Warn: release artifact 0.1.1 does not have provenance: https://api.github.com/repos/bglezseoane/cpcalendars/releases/35737825","Warn: release artifact 0.1.0 does not have provenance: https://api.github.com/repos/bglezseoane/cpcalendars/releases/35722133"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: RUSTSEC-2021-0139","Warn: Project is vulnerable to: RUSTSEC-2021-0145 / GHSA-g98v-hv3f-hcfr","Warn: Project is vulnerable to: RUSTSEC-2024-0375","Warn: Project is vulnerable to: RUSTSEC-2022-0041 / GHSA-qc84-gqf4-9926","Warn: Project is vulnerable to: RUSTSEC-2024-0370"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T05:47:45.360Z","repository_id":57634733,"created_at":"2025-08-17T05:47:45.360Z","updated_at":"2025-08-17T05:47:45.360Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32556771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T00:31:16.350Z","status":"online","status_checked_at":"2026-05-03T02:00:09.297Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendars","cli","macos"],"created_at":"2024-12-13T11:32:31.725Z","updated_at":"2026-05-03T02:43:05.333Z","avatar_url":"https://github.com/bglezseoane.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"`cpcalendars`\n=============\n\n*Really simple CLI app to copy Mac OS Calendar.app calendars sources to other location.*\n\n![Status](http://www.borja.glezseoane.es/img/project-status-label-development.svg \"Status: development\")\n\nCopy the calendar resources from the Mac OS Calendar app to the specified directory, building a pseudo-ICBU file. This file constitutes a comprehensive backup of your calendars.\n\nIn the first run it will need to be granted permissions for the Calendars app by System Integrity Protection system.\n\n\n\n## Install\n\nThe recommended installation option is use Homebrew with the command:\n\n```sh\nbrew install bglezseoane/tap/cpcalendars\n```\n\nYou can only install the program with Cargo, with the command:\n\n```sh\ncargo install cpcalendars\n```\n\n\n\n## Use\n\nThe normal use of the tool is very simple. You only need to run:\n\n```sh\ncpcalendars \u003cdestination\u003e\n```\n\nA folder named `All Calendars.icbu` will saved into `\u003cdestination\u003e`.\n\n\n### Achieve permissions against Mac OS System Integrity Protection\n\nIf your current **terminal app** has **Calendars.app access** or **full disk access** and you use `cpcalendars` **since it**, the tool will works fine. If you only want to work with `cpcalendars` **since your terminal** or since scripts used by you since your terminal, **the above is sufficient** and the following steps are irrelevant to your use case.\n\nOtherwise, if you want to use the tool since an script routine as **`launchd` agent**, the tool is going to fail due to System Integrity Protection.\n\nMac OS System Integrity Protection block `cpcalendars` because the tool try to access the protected Calendars.app directories and it doesn't inherit permissions —**using it since the terminal, inherit terminal granted ones**—. To achieve permissions, you need to run the following command:\n\n```sh\nopen -a '/usr/local/bin/cpcalendars' --args \"\u003ctmp_destination\u003e\"\n```\n\nWhen run the above command, **a pop up window appear** and you can grant access to your calendars to `cpcalendars`. **Do it** and the next time the tool will work.\n\nThe path `/usr/local/bin/cpcalendars` could be different if you have installed with Cargo. Any case, you can check it with `which cpcalendars`.\n\nIf your agent only needs to run the tool and no more stuff, you can add the following lines to the agent `Info.plist` and it will work (after previously indicated first execution):\n\n```xml\n\u003ckey\u003eProgramArguments\u003c/key\u003e\n    \u003carray\u003e\n      \t\u003cstring\u003e/usr/local/bin/cpcalendars\u003c/string\u003e\n      \t\u003cstring\u003edestination\u003c/string\u003e\n    \u003c/array\u003e\n```\n\nFor any reason, to work with the tool since the `launchd` agent and **integrated in a shell script**, you need to always run it as `open -a '/usr/local/bin/cpcalendars' --args \"\u003cdestination\u003e\"` and not directly as a command (e.g. `/usr/local/bin/cpcalendars \u003cdestination\u003e`). I.e., if you use, e.g., the following agent specification...\n\n```xml\n\u003ckey\u003eProgramArguments\u003c/key\u003e\n    \u003carray\u003e\n      \t\u003cstring\u003e/Users/You/scripts/script_which_calls_cpcalendars.sh\u003c/string\u003e\n    \u003c/array\u003e\n```\n\n... you need to run `cpcalendars` as follows:\n\n```sh\n# 'script_which_calls_cpcalendars.sh'\n# ...\n\nopen -a '/usr/local/bin/cpcalendars' --args \"\u003cdestination\u003e\"\n# And not '/usr/local/bin/cpcalendars \u003cdestination\u003e\n\n# ...\n```\n\nWhen run with `open -a`, the command don't return an error code if the launched application fails, so in order to integrate this step in a well designed script, the next approach is recommended:\n\n```sh\n# ...\n\n# Create temporary file to save the output of the 'open' command\nTMP_OPEN_CPCALENDARS_STDOUT=$(mktemp -t open_cpcalendars)\n\n# Run and wait\nopen -W -a '/usr/local/bin/cpcalendars' \\\n\t--stdout \"$TMP_OPEN_CPCALENDARS_STDOUT\" \\\n\t--stderr \"$TMP_OPEN_CPCALENDARS_STDOUT\" \\\n\t--args \u003cdestination\u003e\n\n# Check and act attending to the process success\nif grep -Fxq 'Error' \"$TMP_OPEN_CPCALENDARS_STDOUT\" \\\n\t|| ! grep -Fxq 'Process finished successfully.' \"$TMP_OPEN_CPCALENDARS_STDOUT\"\nthen\n\t\u003e\u00262 echo \"Error using 'cpcalendars'.\"\n\trm \"$TMP_OPEN_CPCALENDARS_STDOUT\"\n\texit 1 \nfi\n\n# Clean\nrm \"$TMP_OPEN_CPCALENDARS_STDOUT\"\n\n# ...\n```\n\n\n\n## Motivation\n\nOn my Mac OS machine I have some scripts that cannot work as agents because it is prevented by System Integrity Protection, which only allows granting permissions to binary programs. That, coupled with the fact that I wanted to learn the Rust language, motivated me to write this simple program in order to have the conflicting step in a compiled program to authorize it and can maintain my script routine working elegantly —and not pseudo-compiling shell scripts inserted them in a compiled language program—. However, at the end of the day `cpcalendars` is a potentially useful generic purpose program.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbglezseoane%2Fcpcalendars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbglezseoane%2Fcpcalendars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbglezseoane%2Fcpcalendars/lists"}