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

[GHA] Specify permissions when deviating from defaults #2721

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/deploy_on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,7 @@ jobs:
uses: ./.github/workflows/publish_website.yml
with:
new_version: ${{ github.event.release.tag_name }}
secrets: inherit
permissions:
pages: write
id-token: write
contents: write
5 changes: 4 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ jobs:
name: Publish latest website
needs: [tests-and-coverage-nightly, package-test-deploy-pypi]
uses: ./.github/workflows/publish_website.yml
secrets: inherit
permissions:
pages: write
id-token: write
contents: write

run_tutorials:
name: Run tutorials without smoke test on latest PyTorch / GPyTorch / Ax
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish_website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
env:
# `uv pip ...` requires venv by default. This skips that requirement.
UV_SYSTEM_PYTHON: 1
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
Expand Down