Skip to content

Commit

Permalink
Add description for permissions settings (#298)
Browse files Browse the repository at this point in the history
* Add permissions settings to action test

* Add permissions settings to example config
  • Loading branch information
sg0hsmt committed Oct 29, 2021
1 parent f477596 commit 8067f9f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -28,6 +28,9 @@ jobs:
- "v1.37"
- "v1.37.1"
runs-on: ${{ matrix.os }}
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v2
- uses: ./
Expand All @@ -44,6 +47,8 @@ jobs:
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
permissions:
contents: read
steps:
- uses: actions/checkout@v2
- uses: ./
Expand Down
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -27,6 +27,10 @@ on:
- master
- main
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
golangci:
name: lint
Expand Down Expand Up @@ -75,6 +79,10 @@ on:
- master
- main
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read
jobs:
golangci:
strategy:
Expand Down

0 comments on commit 8067f9f

Please sign in to comment.