Skip to content

Commit

Permalink
ci(permissions): provided only the necessary permissions to the `GITH…
Browse files Browse the repository at this point in the history
…UB_TOKEN`
  • Loading branch information
sashashura committed Jan 14, 2023
1 parent e607e23 commit be2e196
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ name: Release
- next
- beta
- "*.x"
permissions:
contents: read # for checkout
jobs:
release:
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
name: release
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
- opened
- synchronize

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
test_matrix:
strategy:
Expand Down

0 comments on commit be2e196

Please sign in to comment.