Skip to content

Commit

Permalink
ci: add permissions for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
zirkelc committed Aug 18, 2024
1 parent 79697bb commit 505a385
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

permissions:
checks: write
id-token: write # needed for npm publish with provenance
contents: write # needed for github release
pull-requests: write # needed for coverage comment

jobs:
lint:
name: Lint
Expand Down Expand Up @@ -78,9 +84,6 @@ jobs:
runs-on: ubuntu-latest
needs: [lint,test]
if: github.ref == 'refs/heads/main'
permissions:
id-token: write # needed for npm publish with provenance
contents: write # needed for github release

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 505a385

Please sign in to comment.