Skip to content

Commit

Permalink
add now necessary permissions to github action jobs using labels/issues
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Sep 23, 2024
1 parent ffa296e commit 4b830ac
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
schedule:
- cron: "0 0 * * *"

permissions:
contents: read
issues: write

jobs:
security_audit:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/on-pr-review-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ on:
pull_request_review:
types: [submitted]

permissions:
contents: read
pull-requests: write

jobs:
update-labels:
if: github.event.review.state == 'approved'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/on-pr-review-submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ on:
pull_request_review:
types: [submitted]

permissions:
contents: read
pull-requests: write

jobs:
update-labels:
if: github.event.review.state == 'changes_requested'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tag-merged-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
- master
types: [closed]

permissions:
contents: read
pull-requests: write

jobs:
update-labels:
if: ${{ github.event.pull_request.merged }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tag-new-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
- master
types: [opened, reopened, review_requested]

permissions:
contents: read
pull-requests: write

jobs:
update-labels:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4b830ac

Please sign in to comment.