Adjust workflow permissions (#10963)

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2024-12-13 19:11:53 -05:00
committed by GitHub
parent 44530e0eb0
commit 6145b3b147
2 changed files with 15 additions and 2 deletions

View File

@@ -4,11 +4,12 @@ on:
workflow_dispatch:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # setting GH_TOKEN for the entire workflow
permissions: # Global permissions configuration starts here
permissions:
actions: write
contents: write
packages: write
pull-requests: write # 'write' access to pull requests
pull-requests: write
repository-projects: read
jobs:
setup:
if: ${{ ( github.repository_owner == 'chromebrew' ) && ( github.ref_name != 'master' ) }}
@@ -304,5 +305,11 @@ jobs:
- name: Add Reviewers
env:
GH_TOKEN: ${{ secrets.CREW_PR_TOKEN }}
permissions:
actions: write
contents: write
packages: write
pull-requests: write
repository-projects: read
run: |
gh pr edit ${PR_NUMBER} --add-reviewer chromebrew/active

View File

@@ -6,6 +6,12 @@ on:
workflow_dispatch:
env:
GH_TOKEN: ${{ secrets.CREW_PR_TOKEN }}
permissions:
actions: write
contents: write
packages: write
pull-requests: write
repository-projects: read
jobs:
autocheck:
if: ${{ github.repository_owner == 'chromebrew' }}