Skip to content

Commit

Permalink
add workflow permissions (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
robandpdx authored Nov 21, 2024
1 parent 7b9fb60 commit 5463b45
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- opened
- synchronize

permissions:
contents: read
pull-requests: write

jobs:
run-tests:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/review-probot-prs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: Review Probot PRs

on:
pull_request:
types: [opened, reopened]

permissions:
contents: read
pull-requests: write

jobs:
bot:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: Main Tests

on:
push:
branches:
- main

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5463b45

Please sign in to comment.