Skip to content

Commit

Permalink
fix(ci): proper permissions (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchrish authored Aug 8, 2024
1 parent 65d324d commit 26e26dc
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
pull_request:

permissions:
contents: write
pull-requests: write

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -16,8 +20,6 @@ jobs:

docs:
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v4
Expand All @@ -39,8 +41,6 @@ jobs:

build:
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -70,8 +70,6 @@ jobs:

format:
runs-on: ubuntu-latest
permissions:
contents: write
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v4
Expand All @@ -98,9 +96,6 @@ jobs:

release:
name: release
permissions:
contents: write
pull-requests: write
if: ${{ github.ref == 'refs/heads/main' }}
needs:
- docs
Expand All @@ -113,4 +108,3 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple
package-name: zenbones.nvim

0 comments on commit 26e26dc

Please sign in to comment.