Skip to content

Commit

Permalink
adding specific permissions to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkahan committed Aug 21, 2023
1 parent b214ed7 commit aff9d59
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
name: Build
on: [push]

permissions:
actions: write
checks: write
contents: read
deployments: read
issues: write
discussions: write
packages: read
pages: write
pull-requests: write
security-events: write
statuses: write

jobs:
test:
name: Test
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/mutation-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
name: Mutation Test
on: workflow_dispatch

permissions:
actions: write
checks: write
contents: read
deployments: read
issues: write
discussions: write
packages: read
pages: write
pull-requests: write
security-events: write
statuses: write

jobs:
mutation:
name: run mutation test
Expand Down

0 comments on commit aff9d59

Please sign in to comment.