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 (#3299)
Summary: ## Context Duplicate of change made in botorch: pytorch/botorch#2721 ## 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: #3299 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: Balandat Differential Revision: D69035808 Pulled By: CristianLara fbshipit-source-id: 1f663e79609ae1e7318d9be9b9b3bb16eee3e835
- Loading branch information