Skip to content

Commit

Permalink
chore: update github actions permissions
Browse files Browse the repository at this point in the history
default to contents: read, then get specific in the jobs

Signed-off-by: jmeridth <jmeridth@gmail.com>
  • Loading branch information
jmeridth committed Mar 22, 2024
1 parent aa7177d commit 5105d55
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
github: jmeridth
custom: ['https://www.paypal.me/jmeridth']
4 changes: 4 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: 'Auto Author Assign'
on:
pull_request:
types: [opened, reopened, synchronize]
permissions:
contents: read
jobs:
assign:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: toshimaru/auto-author-assign@v2.1.0
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: "Pull Request Labeler"
on:
pull_request_target:
permissions:
contents: read
jobs:
labeler:
permissions:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ on:
workflow_dispatch:
schedule:
- cron: '30 1 * * *' # https://crontab.guru/#30_1_*_*_* (everyday at 0130)

permissions:
issues: write
pull-requests: write

contents: read
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
Expand Down

0 comments on commit 5105d55

Please sign in to comment.