Skip to content

Commit

Permalink
Set minimal tokens for auto_approve_pr (#14534)
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Kaj Kjellerup Nacht <[email protected]>
  • Loading branch information
pnacht authored Nov 27, 2023
1 parent 4ddce5f commit 61a0f02
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/auto_approve_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@ on:
pull_request:
types: [opened, reopened]

permissions:
contents: read

jobs:
auto_approve:
name: Auto Approve Pull Request
runs-on: ubuntu-latest

permissions:
pull-requests: write # only given on local PRs, forks run with `read` access

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Auto Approve Pull Request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 61a0f02

Please sign in to comment.