Clearly state that actions: read is only required for private repos (#615)

* Update usage.md

* Update docs/usage.md

---------

Co-authored-by: William Woodruff <william@yossarian.net>
This commit is contained in:
vivodi 2025-03-18 23:59:29 +08:00 committed by GitHub
parent 39fb35cb38
commit 28b6266951
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -423,9 +423,8 @@ jobs:
runs-on: ubuntu-latest
permissions:
security-events: write
# required for workflows in private repositories
contents: read
actions: read
contents: read # only needed for private repos
actions: read # only needed for private repos
steps:
- name: Checkout repository
uses: actions/checkout@v4