Skip to content

Commit

Permalink
Fix docs build workflow permission (#1639)
Browse files Browse the repository at this point in the history
Summary:
As reported by henrylhtsang , the docs build workflow has been failing since we downgrade the default GITHUB_TOKEN permission to read-only org-wide.  Write permission needs to be granted explicitly by the workflow now.

### Testing

Run the workflow manually with my branch https://github.com/pytorch/torchrec/actions/runs/7574439344

Pull Request resolved: #1639

Reviewed By: henrylhtsang

Differential Revision: D52878961

Pulled By: huydhn

fbshipit-source-id: fbdc96208f7b4788e1abd01071aa6d331095ec1e
  • Loading branch information
huydhn authored and facebook-github-bot committed Jan 18, 2024
1 parent 1e6b49d commit 719f678
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
jobs:
build_docs_job:
runs-on: ${{ matrix.os }}
permissions:
# Grant write permission here so that the doc can be pushed to gh-pages branch
contents: write
strategy:
matrix:
include:
Expand Down

0 comments on commit 719f678

Please sign in to comment.