Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify permissions when deviating from defaults (#2721)
Summary: ## Motivation The `publish_website.yml` workflow requires write permissions to 1. create new docusaurus versions by pushing a commit to `docusaurus-versions` branch 2. push new website to gh-pages This was not an issue in the fork that introduced these changes because Meta's organization / the official repo has more restrictive permissions than the defaults. More restrictive default permissions are definitely the way to go, here we elevate permissions only when necessary. Pull Request resolved: #2721 Test Plan: I made the default permissions in my fork more restrictive such that the same workflows would fail then verified that this change results in successful workflow runs. https://github.com/CristianLara/botorch/actions/runs/13107635487/job/36565023833 Reviewed By: saitcakmak, Balandat Differential Revision: D69035745 Pulled By: CristianLara fbshipit-source-id: 03a0d26169604e242a775ddc3e5964526d461308
- Loading branch information